@@ -42,9 +42,9 @@ discard block |
||
42 | 42 | protected function configure() |
43 | 43 | { |
44 | 44 | $this->setName('orm:mapping:describe') |
45 | - ->addArgument('entityName', InputArgument::REQUIRED, 'Full or partial name of entity') |
|
46 | - ->setDescription('Display information about mapped objects') |
|
47 | - ->setHelp(<<<EOT |
|
45 | + ->addArgument('entityName', InputArgument::REQUIRED, 'Full or partial name of entity') |
|
46 | + ->setDescription('Display information about mapped objects') |
|
47 | + ->setHelp(<<<EOT |
|
48 | 48 | The %command.full_name% command describes the metadata for the given full or partial entity class name. |
49 | 49 | |
50 | 50 | <info>%command.full_name%</info> My\Namespace\Entity\MyEntity |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | <info>%command.full_name%</info> MyEntity |
55 | 55 | EOT |
56 | - ); |
|
56 | + ); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -134,8 +134,8 @@ discard block |
||
134 | 134 | private function getMappedEntities(EntityManagerInterface $entityManager) |
135 | 135 | { |
136 | 136 | $entityClassNames = $entityManager->getConfiguration() |
137 | - ->getMetadataDriverImpl() |
|
138 | - ->getAllClassNames(); |
|
137 | + ->getMetadataDriverImpl() |
|
138 | + ->getAllClassNames(); |
|
139 | 139 | |
140 | 140 | if ( ! $entityClassNames) { |
141 | 141 | throw new \InvalidArgumentException( |
@@ -165,8 +165,8 @@ discard block |
||
165 | 165 | |
166 | 166 | $matches = array_filter( |
167 | 167 | $this->getMappedEntities($entityManager), |
168 | - function ($mappedEntity) use ($entityName) { |
|
169 | - return preg_match('{' . preg_quote($entityName) . '}', $mappedEntity); |
|
168 | + function($mappedEntity) use ($entityName) { |
|
169 | + return preg_match('{'.preg_quote($entityName).'}', $mappedEntity); |
|
170 | 170 | } |
171 | 171 | ); |
172 | 172 | |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | } |
206 | 206 | |
207 | 207 | if (is_bool($value)) { |
208 | - return '<comment>' . ($value ? 'True' : 'False') . '</comment>'; |
|
208 | + return '<comment>'.($value ? 'True' : 'False').'</comment>'; |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | if (empty($value)) { |