Skip to content

Commit

Permalink
Reduce common control flows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Oct 14, 2024
1 parent 17aeca1 commit 7c0c971
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Command/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,14 @@ private function dumpSerializerDataForClass(InputInterface $input, OutputInterfa
];
}

$io->section($title);

if (!$rows) {
$io->section($title);
$io->text('No Serializer data were found for this class.');

return;
}

$io->section($title);

$table = new Table($output);
$table->setHeaders(['Property', 'Options']);
$table->setRows($rows);
Expand Down

0 comments on commit 7c0c971

Please sign in to comment.