@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | return new Expr\Orx($expressionList); |
97 | 97 | |
98 | 98 | default: |
99 | - throw new RuntimeException('Unknown composite ' . $expr->getType()); |
|
99 | + throw new RuntimeException('Unknown composite '.$expr->getType()); |
|
100 | 100 | } |
101 | 101 | } |
102 | 102 | |
@@ -105,14 +105,14 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function walkComparison(Comparison $comparison) |
107 | 107 | { |
108 | - if (! isset($this->queryAliases[0])) { |
|
108 | + if ( ! isset($this->queryAliases[0])) { |
|
109 | 109 | throw new QueryException('No aliases are set before invoking walkComparison().'); |
110 | 110 | } |
111 | 111 | |
112 | - $field = $this->queryAliases[0] . '.' . $comparison->getField(); |
|
112 | + $field = $this->queryAliases[0].'.'.$comparison->getField(); |
|
113 | 113 | |
114 | 114 | foreach ($this->queryAliases as $alias) { |
115 | - if (strpos($comparison->getField() . '.', $alias . '.') === 0) { |
|
115 | + if (strpos($comparison->getField().'.', $alias.'.') === 0) { |
|
116 | 116 | $field = $comparison->getField(); |
117 | 117 | break; |
118 | 118 | } |
@@ -123,13 +123,13 @@ discard block |
||
123 | 123 | |
124 | 124 | foreach ($this->parameters as $parameter) { |
125 | 125 | if ($parameter->getName() === $parameterName) { |
126 | - $parameterName .= '_' . $parameterCount; |
|
126 | + $parameterName .= '_'.$parameterCount; |
|
127 | 127 | break; |
128 | 128 | } |
129 | 129 | } |
130 | 130 | |
131 | 131 | $parameter = new Parameter($parameterName, $this->walkValue($comparison->getValue())); |
132 | - $placeholder = ':' . $parameterName; |
|
132 | + $placeholder = ':'.$parameterName; |
|
133 | 133 | |
134 | 134 | switch ($comparison->getOperator()) { |
135 | 135 | case Comparison::IN: |
@@ -156,17 +156,17 @@ discard block |
||
156 | 156 | |
157 | 157 | return $this->expr->neq($field, $placeholder); |
158 | 158 | case Comparison::CONTAINS: |
159 | - $parameter->setValue('%' . $parameter->getValue() . '%', $parameter->getType()); |
|
159 | + $parameter->setValue('%'.$parameter->getValue().'%', $parameter->getType()); |
|
160 | 160 | $this->parameters[] = $parameter; |
161 | 161 | |
162 | 162 | return $this->expr->like($field, $placeholder); |
163 | 163 | case Comparison::STARTS_WITH: |
164 | - $parameter->setValue($parameter->getValue() . '%', $parameter->getType()); |
|
164 | + $parameter->setValue($parameter->getValue().'%', $parameter->getType()); |
|
165 | 165 | $this->parameters[] = $parameter; |
166 | 166 | |
167 | 167 | return $this->expr->like($field, $placeholder); |
168 | 168 | case Comparison::ENDS_WITH: |
169 | - $parameter->setValue('%' . $parameter->getValue(), $parameter->getType()); |
|
169 | + $parameter->setValue('%'.$parameter->getValue(), $parameter->getType()); |
|
170 | 170 | $this->parameters[] = $parameter; |
171 | 171 | |
172 | 172 | return $this->expr->like($field, $placeholder); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | ); |
183 | 183 | } |
184 | 184 | |
185 | - throw new RuntimeException('Unknown comparison operator: ' . $comparison->getOperator()); |
|
185 | + throw new RuntimeException('Unknown comparison operator: '.$comparison->getOperator()); |
|
186 | 186 | } |
187 | 187 | } |
188 | 188 |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | { |
294 | 294 | $query = new Query($this); |
295 | 295 | |
296 | - if (! empty($dql)) { |
|
296 | + if ( ! empty($dql)) { |
|
297 | 297 | $query->setDQL($dql); |
298 | 298 | } |
299 | 299 | |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | $this->checkLockRequirements($lockMode, $class); |
385 | 385 | } |
386 | 386 | |
387 | - if (! is_array($id)) { |
|
387 | + if ( ! is_array($id)) { |
|
388 | 388 | if ($class->isIdentifierComposite()) { |
389 | 389 | throw ORMInvalidArgumentException::invalidCompositeIdentifier(); |
390 | 390 | } |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | $sortedId = []; |
406 | 406 | |
407 | 407 | foreach ($class->identifier as $identifier) { |
408 | - if (! isset($id[$identifier])) { |
|
408 | + if ( ! isset($id[$identifier])) { |
|
409 | 409 | throw MissingIdentifierField::fromFieldAndClass($identifier, $className); |
410 | 410 | } |
411 | 411 | |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | // Check identity map first |
423 | 423 | $entity = $unitOfWork->tryGetById($sortedId, $class->getRootClassName()); |
424 | 424 | if ($entity !== false) { |
425 | - if (! ($entity instanceof $className)) { |
|
425 | + if ( ! ($entity instanceof $className)) { |
|
426 | 426 | return null; |
427 | 427 | } |
428 | 428 | |
@@ -467,7 +467,7 @@ discard block |
||
467 | 467 | $class = $this->metadataFactory->getMetadataFor(ltrim($entityName, '\\')); |
468 | 468 | $className = $class->getClassName(); |
469 | 469 | |
470 | - if (! is_array($id)) { |
|
470 | + if ( ! is_array($id)) { |
|
471 | 471 | if ($class->isIdentifierComposite()) { |
472 | 472 | throw ORMInvalidArgumentException::invalidCompositeIdentifier(); |
473 | 473 | } |
@@ -492,7 +492,7 @@ discard block |
||
492 | 492 | $sortedId = []; |
493 | 493 | |
494 | 494 | foreach ($class->identifier as $identifier) { |
495 | - if (! isset($scalarId[$identifier])) { |
|
495 | + if ( ! isset($scalarId[$identifier])) { |
|
496 | 496 | throw MissingIdentifierField::fromFieldAndClass($identifier, $className); |
497 | 497 | } |
498 | 498 | |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | $class = $this->metadataFactory->getMetadataFor(ltrim($entityName, '\\')); |
534 | 534 | $className = $class->getClassName(); |
535 | 535 | |
536 | - if (! is_array($id)) { |
|
536 | + if ( ! is_array($id)) { |
|
537 | 537 | if ($class->isIdentifierComposite()) { |
538 | 538 | throw ORMInvalidArgumentException::invalidCompositeIdentifier(); |
539 | 539 | } |
@@ -554,7 +554,7 @@ discard block |
||
554 | 554 | $sortedId = []; |
555 | 555 | |
556 | 556 | foreach ($class->identifier as $identifier) { |
557 | - if (! isset($id[$identifier])) { |
|
557 | + if ( ! isset($id[$identifier])) { |
|
558 | 558 | throw MissingIdentifierField::fromFieldAndClass($identifier, $className); |
559 | 559 | } |
560 | 560 | |
@@ -626,7 +626,7 @@ discard block |
||
626 | 626 | */ |
627 | 627 | public function persist($entity) |
628 | 628 | { |
629 | - if (! is_object($entity)) { |
|
629 | + if ( ! is_object($entity)) { |
|
630 | 630 | throw ORMInvalidArgumentException::invalidObject('EntityManager#persist()', $entity); |
631 | 631 | } |
632 | 632 | |
@@ -648,7 +648,7 @@ discard block |
||
648 | 648 | */ |
649 | 649 | public function remove($entity) |
650 | 650 | { |
651 | - if (! is_object($entity)) { |
|
651 | + if ( ! is_object($entity)) { |
|
652 | 652 | throw ORMInvalidArgumentException::invalidObject('EntityManager#remove()', $entity); |
653 | 653 | } |
654 | 654 | |
@@ -668,7 +668,7 @@ discard block |
||
668 | 668 | */ |
669 | 669 | public function refresh($entity) |
670 | 670 | { |
671 | - if (! is_object($entity)) { |
|
671 | + if ( ! is_object($entity)) { |
|
672 | 672 | throw ORMInvalidArgumentException::invalidObject('EntityManager#refresh()', $entity); |
673 | 673 | } |
674 | 674 | |
@@ -823,7 +823,7 @@ discard block |
||
823 | 823 | */ |
824 | 824 | public static function create($connection, Configuration $config, ?EventManager $eventManager = null) |
825 | 825 | { |
826 | - if (! $config->getMetadataDriverImpl()) { |
|
826 | + if ( ! $config->getMetadataDriverImpl()) { |
|
827 | 827 | throw MissingMappingDriverImplementation::create(); |
828 | 828 | } |
829 | 829 | |
@@ -850,12 +850,12 @@ discard block |
||
850 | 850 | return DriverManager::getConnection($connection, $config, $eventManager ?: new EventManager()); |
851 | 851 | } |
852 | 852 | |
853 | - if (! $connection instanceof Connection) { |
|
853 | + if ( ! $connection instanceof Connection) { |
|
854 | 854 | throw new InvalidArgumentException( |
855 | 855 | sprintf( |
856 | 856 | 'Invalid $connection argument of type %s given%s.', |
857 | 857 | is_object($connection) ? get_class($connection) : gettype($connection), |
858 | - is_object($connection) ? '' : ': "' . $connection . '"' |
|
858 | + is_object($connection) ? '' : ': "'.$connection.'"' |
|
859 | 859 | ) |
860 | 860 | ); |
861 | 861 | } |
@@ -903,13 +903,13 @@ discard block |
||
903 | 903 | { |
904 | 904 | switch ($lockMode) { |
905 | 905 | case LockMode::OPTIMISTIC: |
906 | - if (! $class->isVersioned()) { |
|
906 | + if ( ! $class->isVersioned()) { |
|
907 | 907 | throw OptimisticLockException::notVersioned($class->getClassName()); |
908 | 908 | } |
909 | 909 | break; |
910 | 910 | case LockMode::PESSIMISTIC_READ: |
911 | 911 | case LockMode::PESSIMISTIC_WRITE: |
912 | - if (! $this->getConnection()->isTransactionActive()) { |
|
912 | + if ( ! $this->getConnection()->isTransactionActive()) { |
|
913 | 913 | throw TransactionRequiredException::transactionRequired(); |
914 | 914 | } |
915 | 915 | } |
@@ -100,7 +100,7 @@ |
||
100 | 100 | */ |
101 | 101 | private function assertValidField($field) |
102 | 102 | { |
103 | - if (! isset($this->entityChangeSet[$field])) { |
|
103 | + if ( ! isset($this->entityChangeSet[$field])) { |
|
104 | 104 | throw new InvalidArgumentException(sprintf( |
105 | 105 | 'Field "%s" is not a valid field of the entity "%s" in PreUpdateEventArgs.', |
106 | 106 | $field, |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | if ($property instanceof AssociationMetadata) { |
56 | 56 | throw new RuntimeException( |
57 | - 'Paginating an entity with foreign key as identifier only works when using the Output Walkers. ' . |
|
57 | + 'Paginating an entity with foreign key as identifier only works when using the Output Walkers. '. |
|
58 | 58 | 'Call Paginator#setUseOutputWalkers(true) before iterating the paginator.' |
59 | 59 | ); |
60 | 60 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $AST->selectClause->selectExpressions = [new SelectExpression($pathExpression, '_dctrn_id')]; |
73 | 73 | $AST->selectClause->isDistinct = true; |
74 | 74 | |
75 | - if (! isset($AST->orderByClause)) { |
|
75 | + if ( ! isset($AST->orderByClause)) { |
|
76 | 76 | return; |
77 | 77 | } |
78 | 78 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | if ($item->expression instanceof PathExpression) { |
81 | 81 | $AST->selectClause->selectExpressions[] = new SelectExpression( |
82 | 82 | $this->createSelectExpressionItem($item->expression), |
83 | - '_dctrn_ord' . $this->aliasCounter++ |
|
83 | + '_dctrn_ord'.$this->aliasCounter++ |
|
84 | 84 | ); |
85 | 85 | |
86 | 86 | continue; |
@@ -191,13 +191,13 @@ discard block |
||
191 | 191 | |
192 | 192 | $innerSql = $this->getInnerSQL($AST); |
193 | 193 | $sqlIdentifier = $this->getSQLIdentifier($AST); |
194 | - $sqlAliasIdentifier = array_map(static function ($info) { |
|
194 | + $sqlAliasIdentifier = array_map(static function($info) { |
|
195 | 195 | return $info['alias']; |
196 | 196 | }, $sqlIdentifier); |
197 | 197 | |
198 | 198 | if ($hasOrderBy) { |
199 | - $orderGroupBy = ' GROUP BY ' . implode(', ', $sqlAliasIdentifier); |
|
200 | - $sqlPiece = 'MIN(' . $this->walkResultVariable('dctrn_rownum') . ') AS dctrn_minrownum'; |
|
199 | + $orderGroupBy = ' GROUP BY '.implode(', ', $sqlAliasIdentifier); |
|
200 | + $sqlPiece = 'MIN('.$this->walkResultVariable('dctrn_rownum').') AS dctrn_minrownum'; |
|
201 | 201 | |
202 | 202 | $sqlAliasIdentifier[] = $sqlPiece; |
203 | 203 | $sqlIdentifier[] = [ |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | $sql = sprintf('SELECT DISTINCT %s FROM (%s) dctrn_result', implode(', ', $sqlAliasIdentifier), $innerSql); |
211 | 211 | |
212 | 212 | if ($hasOrderBy) { |
213 | - $sql .= $orderGroupBy . $outerOrderBy; |
|
213 | + $sql .= $orderGroupBy.$outerOrderBy; |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | // Apply the limit and offset. |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | |
255 | 255 | $innerSql = $this->getInnerSQL($AST); |
256 | 256 | $sqlIdentifier = $this->getSQLIdentifier($AST); |
257 | - $sqlAliasIdentifier = array_map(static function ($info) { |
|
257 | + $sqlAliasIdentifier = array_map(static function($info) { |
|
258 | 258 | return $info['alias']; |
259 | 259 | }, $sqlIdentifier); |
260 | 260 | |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | $idVar = $pathExpression->identificationVariable; |
312 | 312 | $field = $pathExpression->field; |
313 | 313 | |
314 | - if (! isset($selects[$idVar])) { |
|
314 | + if ( ! isset($selects[$idVar])) { |
|
315 | 315 | $selects[$idVar] = []; |
316 | 316 | } |
317 | 317 | |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | if ($selectExpression instanceof SelectExpression) { |
325 | 325 | $idVar = $selectExpression->expression; |
326 | 326 | |
327 | - if (! is_string($idVar)) { |
|
327 | + if ( ! is_string($idVar)) { |
|
328 | 328 | continue; |
329 | 329 | } |
330 | 330 | |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | ?OrderByClause $orderByClause |
360 | 360 | ) : string { |
361 | 361 | // If the sql statement has an order by clause, we need to wrap it in a new select distinct statement |
362 | - if (! $orderByClause) { |
|
362 | + if ( ! $orderByClause) { |
|
363 | 363 | return $sql; |
364 | 364 | } |
365 | 365 | |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | $orderByItems[] = $orderByItemString; |
398 | 398 | $identifier = substr($orderByItemString, 0, strrpos($orderByItemString, ' ')); |
399 | 399 | |
400 | - if (! in_array($identifier, $identifiers, true)) { |
|
400 | + if ( ! in_array($identifier, $identifiers, true)) { |
|
401 | 401 | $identifiers[] = $identifier; |
402 | 402 | } |
403 | 403 | } |
@@ -550,7 +550,7 @@ discard block |
||
550 | 550 | */ |
551 | 551 | public function walkPathExpression($pathExpr) |
552 | 552 | { |
553 | - if (! $this->inSubSelect && ! $this->platformSupportsRowNumber() && ! in_array($pathExpr, $this->orderByPathExpressions, true)) { |
|
553 | + if ( ! $this->inSubSelect && ! $this->platformSupportsRowNumber() && ! in_array($pathExpr, $this->orderByPathExpressions, true)) { |
|
554 | 554 | $this->orderByPathExpressions[] = $pathExpr; |
555 | 555 | } |
556 | 556 |
@@ -51,9 +51,9 @@ discard block |
||
51 | 51 | protected function configure() |
52 | 52 | { |
53 | 53 | $this->setName('orm:mapping:describe') |
54 | - ->addArgument('entityName', InputArgument::REQUIRED, 'Full or partial name of entity') |
|
55 | - ->setDescription('Display information about mapped objects') |
|
56 | - ->setHelp(<<<'EOT' |
|
54 | + ->addArgument('entityName', InputArgument::REQUIRED, 'Full or partial name of entity') |
|
55 | + ->setDescription('Display information about mapped objects') |
|
56 | + ->setHelp(<<<'EOT' |
|
57 | 57 | The %command.full_name% command describes the metadata for the given full or partial entity class name. |
58 | 58 | |
59 | 59 | <info>%command.full_name%</info> My\Namespace\Entity\MyEntity |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | <info>%command.full_name%</info> MyEntity |
64 | 64 | EOT |
65 | - ); |
|
65 | + ); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -139,8 +139,8 @@ discard block |
||
139 | 139 | private function getMappedEntities(EntityManagerInterface $entityManager) |
140 | 140 | { |
141 | 141 | $entityClassNames = $entityManager->getConfiguration() |
142 | - ->getMetadataDriverImpl() |
|
143 | - ->getAllClassNames(); |
|
142 | + ->getMetadataDriverImpl() |
|
143 | + ->getAllClassNames(); |
|
144 | 144 | |
145 | 145 | if (! $entityClassNames) { |
146 | 146 | throw new InvalidArgumentException( |
@@ -142,9 +142,9 @@ discard block |
||
142 | 142 | ->getMetadataDriverImpl() |
143 | 143 | ->getAllClassNames(); |
144 | 144 | |
145 | - if (! $entityClassNames) { |
|
145 | + if ( ! $entityClassNames) { |
|
146 | 146 | throw new InvalidArgumentException( |
147 | - 'You do not have any mapped Doctrine ORM entities according to the current configuration. ' . |
|
147 | + 'You do not have any mapped Doctrine ORM entities according to the current configuration. '. |
|
148 | 148 | 'If you have entities or mapping files you should check your mapping configuration for errors.' |
149 | 149 | ); |
150 | 150 | } |
@@ -169,12 +169,12 @@ discard block |
||
169 | 169 | |
170 | 170 | $matches = array_filter( |
171 | 171 | $this->getMappedEntities($entityManager), |
172 | - static function ($mappedEntity) use ($entityName) { |
|
173 | - return preg_match('{' . preg_quote($entityName) . '}', $mappedEntity); |
|
172 | + static function($mappedEntity) use ($entityName) { |
|
173 | + return preg_match('{'.preg_quote($entityName).'}', $mappedEntity); |
|
174 | 174 | } |
175 | 175 | ); |
176 | 176 | |
177 | - if (! $matches) { |
|
177 | + if ( ! $matches) { |
|
178 | 178 | throw new InvalidArgumentException(sprintf( |
179 | 179 | 'Could not find any mapped Entity classes matching "%s"', |
180 | 180 | $entityName |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | |
227 | 227 | $output[] = $this->formatField( |
228 | 228 | sprintf(' %s', $parentClass->getParent()), |
229 | - ($parentClass->isRootEntity() ? '(Root) ' : '') . $this->formatValue($attributes) |
|
229 | + ($parentClass->isRootEntity() ? '(Root) ' : '').$this->formatValue($attributes) |
|
230 | 230 | ); |
231 | 231 | } |
232 | 232 | |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | } |
252 | 252 | |
253 | 253 | if (is_bool($value)) { |
254 | - return '<comment>' . ($value ? 'True' : 'False') . '</comment>'; |
|
254 | + return '<comment>'.($value ? 'True' : 'False').'</comment>'; |
|
255 | 255 | } |
256 | 256 | |
257 | 257 | if (empty($value)) { |
@@ -57,19 +57,19 @@ |
||
57 | 57 | $destPath = $em->getConfiguration()->getProxyDir(); |
58 | 58 | } |
59 | 59 | |
60 | - if (! is_dir($destPath)) { |
|
60 | + if ( ! is_dir($destPath)) { |
|
61 | 61 | mkdir($destPath, 0775, true); |
62 | 62 | } |
63 | 63 | |
64 | 64 | $destPath = realpath($destPath); |
65 | 65 | |
66 | - if (! file_exists($destPath)) { |
|
66 | + if ( ! file_exists($destPath)) { |
|
67 | 67 | throw new InvalidArgumentException( |
68 | 68 | sprintf("Proxies destination directory '<info>%s</info>' does not exist.", $em->getConfiguration()->getProxyDir()) |
69 | 69 | ); |
70 | 70 | } |
71 | 71 | |
72 | - if (! is_writable($destPath)) { |
|
72 | + if ( ! is_writable($destPath)) { |
|
73 | 73 | throw new InvalidArgumentException( |
74 | 74 | sprintf("Proxies destination directory '<info>%s</info>' does not have write permissions.", $destPath) |
75 | 75 | ); |
@@ -59,14 +59,14 @@ discard block |
||
59 | 59 | |
60 | 60 | $depth = $input->getOption('depth'); |
61 | 61 | |
62 | - if (! is_numeric($depth)) { |
|
62 | + if ( ! is_numeric($depth)) { |
|
63 | 63 | throw new LogicException("Option 'depth' must contain an integer value"); |
64 | 64 | } |
65 | 65 | |
66 | 66 | $hydrationModeName = $input->getOption('hydrate'); |
67 | - $hydrationMode = 'Doctrine\ORM\Query::HYDRATE_' . strtoupper(str_replace('-', '_', $hydrationModeName)); |
|
67 | + $hydrationMode = 'Doctrine\ORM\Query::HYDRATE_'.strtoupper(str_replace('-', '_', $hydrationModeName)); |
|
68 | 68 | |
69 | - if (! defined($hydrationMode)) { |
|
69 | + if ( ! defined($hydrationMode)) { |
|
70 | 70 | throw new RuntimeException(sprintf( |
71 | 71 | "Hydration mode '%s' does not exist. It should be either: object. array, scalar or single-scalar.", |
72 | 72 | $hydrationModeName |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $firstResult = $input->getOption('first-result'); |
78 | 78 | |
79 | 79 | if ($firstResult !== null) { |
80 | - if (! is_numeric($firstResult)) { |
|
80 | + if ( ! is_numeric($firstResult)) { |
|
81 | 81 | throw new LogicException("Option 'first-result' must contain an integer value"); |
82 | 82 | } |
83 | 83 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $maxResult = $input->getOption('max-result'); |
88 | 88 | |
89 | 89 | if ($maxResult !== null) { |
90 | - if (! is_numeric($maxResult)) { |
|
90 | + if ( ! is_numeric($maxResult)) { |
|
91 | 91 | throw new LogicException("Option 'max-result' must contain an integer value"); |
92 | 92 | } |
93 | 93 |
@@ -73,18 +73,18 @@ |
||
73 | 73 | $entityId = $input->getArgument('entity-id'); |
74 | 74 | $cache = $em->getCache(); |
75 | 75 | |
76 | - if (! $cache instanceof Cache) { |
|
76 | + if ( ! $cache instanceof Cache) { |
|
77 | 77 | throw new InvalidArgumentException('No second-level cache is configured on the given EntityManager.'); |
78 | 78 | } |
79 | 79 | |
80 | - if (! $entityClass && ! $input->getOption('all')) { |
|
80 | + if ( ! $entityClass && ! $input->getOption('all')) { |
|
81 | 81 | throw new InvalidArgumentException('Invalid argument "--entity-class"'); |
82 | 82 | } |
83 | 83 | |
84 | 84 | if ($input->getOption('flush')) { |
85 | 85 | $entityRegion = $cache->getEntityCacheRegion($entityClass); |
86 | 86 | |
87 | - if (! $entityRegion instanceof DefaultRegion) { |
|
87 | + if ( ! $entityRegion instanceof DefaultRegion) { |
|
88 | 88 | throw new InvalidArgumentException(sprintf( |
89 | 89 | 'The option "--flush" expects a "Doctrine\ORM\Cache\Region\DefaultRegion", but got "%s".', |
90 | 90 | is_object($entityRegion) ? get_class($entityRegion) : gettype($entityRegion) |