Skip to content

Commit

Permalink
Issue #136: Fix warnings & formatting in 'Projects' command.
Browse files Browse the repository at this point in the history
  • Loading branch information
bugfolder authored Mar 22, 2021
1 parent f80ddc9 commit 39ac4f9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions commands/projects.bee.inc
Original file line number Diff line number Diff line change
Expand Up @@ -581,23 +581,23 @@ function projects_bee_show_project($project) {
);
$rows[] = array(
array('value' => bt('Description')),
array('value' => $module->info['description']),
array('value' => !empty($module->info['description']) ? $module->info['description'] : ''),
);
$rows[] = array(
array('value' => bt('Configure')),
array('value' => $module->info['configure']),
array('value' => !empty($module->info['configure']) ? $module->info['configure'] : ''),
);
$rows[] = array(
array('value' => bt('Package')),
array('value' => $module->info['package']),
array('value' => !empty($module->info['package']) ? $module->info['package'] : ''),
);
$rows[] = array(
array('value' => bt('Tags')),
array('value' => !empty($module->info['tags']) ? implode(', ', $module->info['tags']) : ''),
);
$rows[] = array(
array('value' => bt('Version')),
array('value' => $module->info['version']),
array('value' => !empty($module->info['version']) ? $module->info['version'] : ''),
);
$rows[] = array(
array('value' => bt('Path')),
Expand All @@ -609,11 +609,11 @@ function projects_bee_show_project($project) {
);
$rows[] = array(
array('value' => bt('Requires')),
array('value' => !empty($module->requires) ? implode(', ', $module->requires) : ''),
array('value' => !empty($module->requires) ? implode(', ', array_keys($module->requires)) : ''),
);
$rows[] = array(
array('value' => bt('Required by')),
array('value' => !empty($module->required_by) ? implode(', ', $module->required_by) : ''),
array('value' => !empty($module->required_by) ? implode(', ', array_keys($module->required_by)) : ''),
);

break;
Expand All @@ -630,11 +630,11 @@ function projects_bee_show_project($project) {
);
$rows[] = array(
array('value' => bt('Description')),
array('value' => $theme->info['description']),
array('value' => !empty($theme->info['description']) ? $theme->info['description'] : ''),
);
$rows[] = array(
array('value' => bt('Version')),
array('value' => $theme->info['version']),
array('value' => !empty($theme->info['version']) ? $theme->info['version'] : ''),
);
$rows[] = array(
array('value' => bt('Path')),
Expand Down

0 comments on commit 39ac4f9

Please sign in to comment.