diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/package2composer.sh | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/bin/package2composer.sh b/bin/package2composer.sh index 165018d2f..cb43644e7 100755 --- a/bin/package2composer.sh +++ b/bin/package2composer.sh @@ -54,18 +54,17 @@ if ($package->license) { } if ($package->lead) { - $data['authors'][] = array( - 'name' => strval($package->lead->name), - 'email' => strval($package->lead->email), - 'role' => 'Lead', - ); + foreach ($package->lead as $lead) { + $data['authors'][] = array( + 'name' => strval($lead->name), + 'email' => strval($lead->email), + 'role' => 'Lead', + ); + } } if ($devs = $package->developer) { - if (!is_array($devs)) { - $devs = array($package->developer); - } - foreach ($devs as $dev) { + foreach ($package->developer as $dev) { $data['authors'][] = array( 'name' => strval($dev->name), 'email' => strval($dev->email), |