Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ public function getPackageMeta(modTransportPackage $package, array $packageArray
{
$metadata = $packageArray['metadata'];
if (!empty($metadata)) {
foreach ($metadata as $row) {
if (!empty($row['name']) && $row['name'] === 'description') {
$packageArray['readme'] = nl2br($row['text']);
foreach ($metadata as $k => $v) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even although it might be obvious what the variables mean I would still prefer them to be a bit more descriptive.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$k/$v -> $metaKey/$metaValue

if ($k === 'description') {
$packageArray['readme'] = nl2br($v);
break;
}
}
Expand Down