Skip to content

Commit cd4c31e

Browse files
[make:entity] Consistent output formatting (#1232)
1 parent 9b78302 commit cd4c31e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Maker/MakeEntity.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,10 @@ private function printAvailableTypes(ConsoleStyle $io): void
502502
$io->writeln('');
503503
};
504504

505-
$io->writeln('<info>Main types</info>');
505+
$io->writeln('<info>Main Types</info>');
506506
$printSection($typesTable['main']);
507507

508-
$io->writeln('<info>Relationships / Associations</info>');
508+
$io->writeln('<info>Relationships/Associations</info>');
509509
$printSection($typesTable['relation']);
510510

511511
$io->writeln('<info>Array/Object Types</info>');
@@ -765,17 +765,17 @@ private function askRelationType(ConsoleStyle $io, string $entityClass, string $
765765
$rows = [];
766766
$rows[] = [
767767
EntityRelation::MANY_TO_ONE,
768-
sprintf("Each <comment>%s</comment> relates to (has) <info>one</info> <comment>%s</comment>.\nEach <comment>%s</comment> can relate to (can have) <info>many</info> <comment>%s</comment> objects", $originalEntityShort, $targetEntityShort, $targetEntityShort, $originalEntityShort),
768+
sprintf("Each <comment>%s</comment> relates to (has) <info>one</info> <comment>%s</comment>.\nEach <comment>%s</comment> can relate to (can have) <info>many</info> <comment>%s</comment> objects.", $originalEntityShort, $targetEntityShort, $targetEntityShort, $originalEntityShort),
769769
];
770770
$rows[] = ['', ''];
771771
$rows[] = [
772772
EntityRelation::ONE_TO_MANY,
773-
sprintf("Each <comment>%s</comment> can relate to (can have) <info>many</info> <comment>%s</comment> objects.\nEach <comment>%s</comment> relates to (has) <info>one</info> <comment>%s</comment>", $originalEntityShort, $targetEntityShort, $targetEntityShort, $originalEntityShort),
773+
sprintf("Each <comment>%s</comment> can relate to (can have) <info>many</info> <comment>%s</comment> objects.\nEach <comment>%s</comment> relates to (has) <info>one</info> <comment>%s</comment>.", $originalEntityShort, $targetEntityShort, $targetEntityShort, $originalEntityShort),
774774
];
775775
$rows[] = ['', ''];
776776
$rows[] = [
777777
EntityRelation::MANY_TO_MANY,
778-
sprintf("Each <comment>%s</comment> can relate to (can have) <info>many</info> <comment>%s</comment> objects.\nEach <comment>%s</comment> can also relate to (can also have) <info>many</info> <comment>%s</comment> objects", $originalEntityShort, $targetEntityShort, $targetEntityShort, $originalEntityShort),
778+
sprintf("Each <comment>%s</comment> can relate to (can have) <info>many</info> <comment>%s</comment> objects.\nEach <comment>%s</comment> can also relate to (can also have) <info>many</info> <comment>%s</comment> objects.", $originalEntityShort, $targetEntityShort, $targetEntityShort, $originalEntityShort),
779779
];
780780
$rows[] = ['', ''];
781781
$rows[] = [

0 commit comments

Comments
 (0)