@@ -1344,9 +1344,9 @@ discard block |
||
| 1344 | 1344 | private function getDQLForDelete() |
| 1345 | 1345 | { |
| 1346 | 1346 | return 'DELETE' |
| 1347 | - . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', ']) |
|
| 1348 | - . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
| 1349 | - . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
| 1347 | + . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', ']) |
|
| 1348 | + . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
| 1349 | + . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
| 1350 | 1350 | } |
| 1351 | 1351 | |
| 1352 | 1352 | /** |
@@ -1355,10 +1355,10 @@ discard block |
||
| 1355 | 1355 | private function getDQLForUpdate() |
| 1356 | 1356 | { |
| 1357 | 1357 | return 'UPDATE' |
| 1358 | - . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', ']) |
|
| 1359 | - . $this->getReducedDQLQueryPart('set', ['pre' => ' SET ', 'separator' => ', ']) |
|
| 1360 | - . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
| 1361 | - . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
| 1358 | + . $this->getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', ']) |
|
| 1359 | + . $this->getReducedDQLQueryPart('set', ['pre' => ' SET ', 'separator' => ', ']) |
|
| 1360 | + . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
| 1361 | + . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
| 1362 | 1362 | } |
| 1363 | 1363 | |
| 1364 | 1364 | /** |
@@ -1367,8 +1367,8 @@ discard block |
||
| 1367 | 1367 | private function getDQLForSelect() |
| 1368 | 1368 | { |
| 1369 | 1369 | $dql = 'SELECT' |
| 1370 | - . ($this->dqlParts['distinct']===true ? ' DISTINCT' : '') |
|
| 1371 | - . $this->getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']); |
|
| 1370 | + . ($this->dqlParts['distinct']===true ? ' DISTINCT' : '') |
|
| 1371 | + . $this->getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']); |
|
| 1372 | 1372 | |
| 1373 | 1373 | $fromParts = $this->getDQLPart('from'); |
| 1374 | 1374 | $joinParts = $this->getDQLPart('join'); |
@@ -1392,10 +1392,10 @@ discard block |
||
| 1392 | 1392 | } |
| 1393 | 1393 | |
| 1394 | 1394 | $dql .= implode(', ', $fromClauses) |
| 1395 | - . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
| 1396 | - . $this->getReducedDQLQueryPart('groupBy', ['pre' => ' GROUP BY ', 'separator' => ', ']) |
|
| 1397 | - . $this->getReducedDQLQueryPart('having', ['pre' => ' HAVING ']) |
|
| 1398 | - . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
| 1395 | + . $this->getReducedDQLQueryPart('where', ['pre' => ' WHERE ']) |
|
| 1396 | + . $this->getReducedDQLQueryPart('groupBy', ['pre' => ' GROUP BY ', 'separator' => ', ']) |
|
| 1397 | + . $this->getReducedDQLQueryPart('having', ['pre' => ' HAVING ']) |
|
| 1398 | + . $this->getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']); |
|
| 1399 | 1399 | |
| 1400 | 1400 | return $dql; |
| 1401 | 1401 | } |
@@ -1415,8 +1415,8 @@ discard block |
||
| 1415 | 1415 | } |
| 1416 | 1416 | |
| 1417 | 1417 | return ($options['pre'] ?? '') |
| 1418 | - . (is_array($queryPart) ? implode($options['separator'], $queryPart) : $queryPart) |
|
| 1419 | - . ($options['post'] ?? ''); |
|
| 1418 | + . (is_array($queryPart) ? implode($options['separator'], $queryPart) : $queryPart) |
|
| 1419 | + . ($options['post'] ?? ''); |
|
| 1420 | 1420 | } |
| 1421 | 1421 | |
| 1422 | 1422 | /** |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | { |
| 418 | 418 | $aliases = $this->getRootAliases(); |
| 419 | 419 | |
| 420 | - if (! isset($aliases[0])) { |
|
| 420 | + if ( ! isset($aliases[0])) { |
|
| 421 | 421 | throw new RuntimeException('No alias was set before invoking getRootAlias().'); |
| 422 | 422 | } |
| 423 | 423 | |
@@ -600,7 +600,7 @@ discard block |
||
| 600 | 600 | public function getParameter($key) |
| 601 | 601 | { |
| 602 | 602 | $filteredParameters = $this->parameters->filter( |
| 603 | - static function (Query\Parameter $parameter) use ($key) : bool { |
|
| 603 | + static function(Query\Parameter $parameter) use ($key) : bool { |
|
| 604 | 604 | $parameterName = $parameter->getName(); |
| 605 | 605 | |
| 606 | 606 | return $key === $parameterName || (string) $key === (string) $parameterName; |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | { |
| 677 | 677 | if ($append && ($dqlPartName === 'where' || $dqlPartName === 'having')) { |
| 678 | 678 | throw new InvalidArgumentException( |
| 679 | - "Using \$append = true does not have an effect with 'where' or 'having' " . |
|
| 679 | + "Using \$append = true does not have an effect with 'where' or 'having' ". |
|
| 680 | 680 | 'parts. See QueryBuilder#andWhere() for an example for correct usage.' |
| 681 | 681 | ); |
| 682 | 682 | } |
@@ -817,7 +817,7 @@ discard block |
||
| 817 | 817 | { |
| 818 | 818 | $this->type = self::DELETE; |
| 819 | 819 | |
| 820 | - if (! $delete) { |
|
| 820 | + if ( ! $delete) { |
|
| 821 | 821 | return $this; |
| 822 | 822 | } |
| 823 | 823 | |
@@ -844,7 +844,7 @@ discard block |
||
| 844 | 844 | { |
| 845 | 845 | $this->type = self::UPDATE; |
| 846 | 846 | |
| 847 | - if (! $update) { |
|
| 847 | + if ( ! $update) { |
|
| 848 | 848 | return $this; |
| 849 | 849 | } |
| 850 | 850 | |
@@ -899,7 +899,7 @@ discard block |
||
| 899 | 899 | { |
| 900 | 900 | $rootAliases = $this->getRootAliases(); |
| 901 | 901 | |
| 902 | - if (! in_array($alias, $rootAliases, true)) { |
|
| 902 | + if ( ! in_array($alias, $rootAliases, true)) { |
|
| 903 | 903 | throw new Query\QueryException( |
| 904 | 904 | sprintf('Specified root alias %s must be set before invoking indexBy().', $alias) |
| 905 | 905 | ); |
@@ -1060,7 +1060,7 @@ discard block |
||
| 1060 | 1060 | */ |
| 1061 | 1061 | public function where($predicates) |
| 1062 | 1062 | { |
| 1063 | - if (! (func_num_args() === 1 && $predicates instanceof Expr\Composite)) { |
|
| 1063 | + if ( ! (func_num_args() === 1 && $predicates instanceof Expr\Composite)) { |
|
| 1064 | 1064 | $predicates = new Expr\Andx(func_get_args()); |
| 1065 | 1065 | } |
| 1066 | 1066 | |
@@ -1179,7 +1179,7 @@ discard block |
||
| 1179 | 1179 | */ |
| 1180 | 1180 | public function having($having) |
| 1181 | 1181 | { |
| 1182 | - if (! (func_num_args() === 1 && ($having instanceof Expr\Andx || $having instanceof Expr\Orx))) { |
|
| 1182 | + if ( ! (func_num_args() === 1 && ($having instanceof Expr\Andx || $having instanceof Expr\Orx))) { |
|
| 1183 | 1183 | $having = new Expr\Andx(func_get_args()); |
| 1184 | 1184 | } |
| 1185 | 1185 | |
@@ -1277,7 +1277,7 @@ discard block |
||
| 1277 | 1277 | public function addCriteria(Criteria $criteria) |
| 1278 | 1278 | { |
| 1279 | 1279 | $allAliases = $this->getAllAliases(); |
| 1280 | - if (! isset($allAliases[0])) { |
|
| 1280 | + if ( ! isset($allAliases[0])) { |
|
| 1281 | 1281 | throw new Query\QueryException('No aliases are set before invoking addCriteria().'); |
| 1282 | 1282 | } |
| 1283 | 1283 | |
@@ -1295,14 +1295,14 @@ discard block |
||
| 1295 | 1295 | foreach ($criteria->getOrderings() as $sort => $order) { |
| 1296 | 1296 | $hasValidAlias = false; |
| 1297 | 1297 | foreach ($allAliases as $alias) { |
| 1298 | - if (strpos($sort . '.', $alias . '.') === 0) { |
|
| 1298 | + if (strpos($sort.'.', $alias.'.') === 0) { |
|
| 1299 | 1299 | $hasValidAlias = true; |
| 1300 | 1300 | break; |
| 1301 | 1301 | } |
| 1302 | 1302 | } |
| 1303 | 1303 | |
| 1304 | - if (! $hasValidAlias) { |
|
| 1305 | - $sort = $allAliases[0] . '.' . $sort; |
|
| 1304 | + if ( ! $hasValidAlias) { |
|
| 1305 | + $sort = $allAliases[0].'.'.$sort; |
|
| 1306 | 1306 | } |
| 1307 | 1307 | |
| 1308 | 1308 | $this->addOrderBy($sort, $order); |
@@ -1376,7 +1376,7 @@ discard block |
||
| 1376 | 1376 | private function getDQLForSelect() |
| 1377 | 1377 | { |
| 1378 | 1378 | $dql = 'SELECT' |
| 1379 | - . ($this->dqlParts['distinct']===true ? ' DISTINCT' : '') |
|
| 1379 | + . ($this->dqlParts['distinct'] === true ? ' DISTINCT' : '') |
|
| 1380 | 1380 | . $this->getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']); |
| 1381 | 1381 | |
| 1382 | 1382 | $fromParts = $this->getDQLPart('from'); |
@@ -1384,7 +1384,7 @@ discard block |
||
| 1384 | 1384 | $fromClauses = []; |
| 1385 | 1385 | |
| 1386 | 1386 | // Loop through all FROM clauses |
| 1387 | - if (! empty($fromParts)) { |
|
| 1387 | + if ( ! empty($fromParts)) { |
|
| 1388 | 1388 | $dql .= ' FROM '; |
| 1389 | 1389 | |
| 1390 | 1390 | foreach ($fromParts as $from) { |
@@ -1392,7 +1392,7 @@ discard block |
||
| 1392 | 1392 | |
| 1393 | 1393 | if ($from instanceof Expr\From && isset($joinParts[$from->getAlias()])) { |
| 1394 | 1394 | foreach ($joinParts[$from->getAlias()] as $join) { |
| 1395 | - $fromClause .= ' ' . ((string) $join); |
|
| 1395 | + $fromClause .= ' '.((string) $join); |
|
| 1396 | 1396 | } |
| 1397 | 1397 | } |
| 1398 | 1398 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $this->em->flush(); |
| 47 | 47 | |
| 48 | 48 | $asset->getAttributes() |
| 49 | - ->removeElement($attribute1); |
|
| 49 | + ->removeElement($attribute1); |
|
| 50 | 50 | |
| 51 | 51 | $idToBeRemoved = $attribute1->id; |
| 52 | 52 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $this->em->clear(); |
| 40 | 40 | |
| 41 | 41 | $history = $this->em->createQuery('SELECT h FROM ' . __NAMESPACE__ . '\\DDC1250ClientHistory h WHERE h.id = ?1') |
| 42 | - ->setParameter(1, $c2->id)->getSingleResult(); |
|
| 42 | + ->setParameter(1, $c2->id)->getSingleResult(); |
|
| 43 | 43 | |
| 44 | 44 | self::assertInstanceOf(DDC1250ClientHistory::class, $history); |
| 45 | 45 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | $this->em->flush(); |
| 37 | 37 | $this->em->clear(); |
| 38 | 38 | |
| 39 | - $history = $this->em->createQuery('SELECT h FROM ' . __NAMESPACE__ . '\\DDC1250ClientHistory h WHERE h.id = ?1') |
|
| 39 | + $history = $this->em->createQuery('SELECT h FROM '.__NAMESPACE__.'\\DDC1250ClientHistory h WHERE h.id = ?1') |
|
| 40 | 40 | ->setParameter(1, $c2->id)->getSingleResult(); |
| 41 | 41 | |
| 42 | 42 | self::assertInstanceOf(DDC1250ClientHistory::class, $history); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | foreach ($props as $name => $prop) { |
| 52 | 52 | $ident += 4; |
| 53 | 53 | $str .= str_repeat(' ', $ident) . '"' . $name . '": ' |
| 54 | - . $this->dump($prop) . ',' . PHP_EOL; |
|
| 54 | + . $this->dump($prop) . ',' . PHP_EOL; |
|
| 55 | 55 | $ident -= 4; |
| 56 | 56 | } |
| 57 | 57 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | foreach ($obj as $k => $v) { |
| 65 | 65 | $str .= PHP_EOL . str_repeat(' ', $ident) . '"' |
| 66 | - . $k . '" => ' . $this->dump($v) . ','; |
|
| 66 | + . $k . '" => ' . $this->dump($v) . ','; |
|
| 67 | 67 | $some = true; |
| 68 | 68 | } |
| 69 | 69 | |
@@ -54,32 +54,32 @@ |
||
| 54 | 54 | $str = ''; |
| 55 | 55 | |
| 56 | 56 | if ($obj instanceof Node) { |
| 57 | - $str .= get_class($obj) . '(' . PHP_EOL; |
|
| 57 | + $str .= get_class($obj).'('.PHP_EOL; |
|
| 58 | 58 | $props = get_object_vars($obj); |
| 59 | 59 | |
| 60 | 60 | foreach ($props as $name => $prop) { |
| 61 | 61 | $ident += 4; |
| 62 | - $str .= str_repeat(' ', $ident) . '"' . $name . '": ' |
|
| 63 | - . $this->dump($prop) . ',' . PHP_EOL; |
|
| 62 | + $str .= str_repeat(' ', $ident).'"'.$name.'": ' |
|
| 63 | + . $this->dump($prop).','.PHP_EOL; |
|
| 64 | 64 | $ident -= 4; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - $str .= str_repeat(' ', $ident) . ')'; |
|
| 67 | + $str .= str_repeat(' ', $ident).')'; |
|
| 68 | 68 | } elseif (is_array($obj)) { |
| 69 | 69 | $ident += 4; |
| 70 | 70 | $str .= 'array('; |
| 71 | 71 | $some = false; |
| 72 | 72 | |
| 73 | 73 | foreach ($obj as $k => $v) { |
| 74 | - $str .= PHP_EOL . str_repeat(' ', $ident) . '"' |
|
| 75 | - . $k . '" => ' . $this->dump($v) . ','; |
|
| 74 | + $str .= PHP_EOL.str_repeat(' ', $ident).'"' |
|
| 75 | + . $k.'" => '.$this->dump($v).','; |
|
| 76 | 76 | $some = true; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | $ident -= 4; |
| 80 | - $str .= ($some ? PHP_EOL . str_repeat(' ', $ident) : '') . ')'; |
|
| 80 | + $str .= ($some ? PHP_EOL . str_repeat(' ', $ident) : '').')'; |
|
| 81 | 81 | } elseif (is_object($obj)) { |
| 82 | - $str .= 'instanceof(' . get_class($obj) . ')'; |
|
| 82 | + $str .= 'instanceof('.get_class($obj).')'; |
|
| 83 | 83 | } else { |
| 84 | 84 | $str .= var_export($obj, true); |
| 85 | 85 | } |
@@ -21,13 +21,13 @@ discard block |
||
| 21 | 21 | protected function configure() |
| 22 | 22 | { |
| 23 | 23 | $this->setName('orm:info') |
| 24 | - ->setDescription('Show basic information about all mapped entities') |
|
| 25 | - ->setHelp(<<<'EOT' |
|
| 24 | + ->setDescription('Show basic information about all mapped entities') |
|
| 25 | + ->setHelp(<<<'EOT' |
|
| 26 | 26 | The <info>%command.name%</info> shows basic information about which |
| 27 | 27 | entities exist and possibly if their mapping information contains errors or |
| 28 | 28 | not. |
| 29 | 29 | EOT |
| 30 | - ); |
|
| 30 | + ); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | $entityManager = $this->getHelper('em')->getEntityManager(); |
| 42 | 42 | |
| 43 | 43 | $entityClassNames = $entityManager->getConfiguration() |
| 44 | - ->getMetadataDriverImpl() |
|
| 45 | - ->getAllClassNames(); |
|
| 44 | + ->getMetadataDriverImpl() |
|
| 45 | + ->getAllClassNames(); |
|
| 46 | 46 | |
| 47 | 47 | if (! $entityClassNames) { |
| 48 | 48 | $ui->caution( |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | ->getMetadataDriverImpl() |
| 48 | 48 | ->getAllClassNames(); |
| 49 | 49 | |
| 50 | - if (! $entityClassNames) { |
|
| 50 | + if ( ! $entityClassNames) { |
|
| 51 | 51 | $ui->caution( |
| 52 | 52 | [ |
| 53 | 53 | 'You do not have any mapped Doctrine ORM entities according to the current configuration.', |
@@ -26,8 +26,8 @@ |
||
| 26 | 26 | { |
| 27 | 27 | $qb = $this->em->createQueryBuilder(); |
| 28 | 28 | $qb->select('p', 'r') |
| 29 | - ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 30 | - ->leftJoin('p.roles', 'r'); |
|
| 29 | + ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 30 | + ->leftJoin('p.roles', 'r'); |
|
| 31 | 31 | |
| 32 | 32 | self::assertSQLEquals( |
| 33 | 33 | 'SELECT t0."privilegeID" AS c0, t0."name" AS c1, t1."roleID" AS c2, t1."name" AS c3, t1."shortName" AS c4 FROM "Privileges" t0 LEFT JOIN "RolePrivileges" t2 ON t0."privilegeID" = t2."privilegeID" LEFT JOIN "Roles" t1 ON t1."roleID" = t2."roleID"', |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | $qb = $this->em->createQueryBuilder(); |
| 29 | 29 | $qb->select('p', 'r') |
| 30 | - ->from(__NAMESPACE__ . '\DDC698Privilege', 'p') |
|
| 30 | + ->from(__NAMESPACE__.'\DDC698Privilege', 'p') |
|
| 31 | 31 | ->leftJoin('p.roles', 'r'); |
| 32 | 32 | |
| 33 | 33 | self::assertSQLEquals( |
@@ -88,18 +88,18 @@ discard block |
||
| 88 | 88 | { |
| 89 | 89 | $q = $this->em->createQuery('select a from Doctrine\Tests\Models\CMS\CmsArticle a'); |
| 90 | 90 | $q2 = $q->expireQueryCache(true) |
| 91 | - ->setQueryCacheLifetime(3600) |
|
| 92 | - ->setQueryCacheDriver(null) |
|
| 93 | - ->expireResultCache(true) |
|
| 94 | - ->setHint('foo', 'bar') |
|
| 95 | - ->setHint('bar', 'baz') |
|
| 96 | - ->setParameter(1, 'bar') |
|
| 97 | - ->setParameters(new ArrayCollection([new Parameter(2, 'baz')])) |
|
| 98 | - ->setResultCacheDriver(null) |
|
| 99 | - ->setResultCacheId('foo') |
|
| 100 | - ->setDQL('foo') |
|
| 101 | - ->setFirstResult(10) |
|
| 102 | - ->setMaxResults(10); |
|
| 91 | + ->setQueryCacheLifetime(3600) |
|
| 92 | + ->setQueryCacheDriver(null) |
|
| 93 | + ->expireResultCache(true) |
|
| 94 | + ->setHint('foo', 'bar') |
|
| 95 | + ->setHint('bar', 'baz') |
|
| 96 | + ->setParameter(1, 'bar') |
|
| 97 | + ->setParameters(new ArrayCollection([new Parameter(2, 'baz')])) |
|
| 98 | + ->setResultCacheDriver(null) |
|
| 99 | + ->setResultCacheId('foo') |
|
| 100 | + ->setDQL('foo') |
|
| 101 | + ->setFirstResult(10) |
|
| 102 | + ->setMaxResults(10); |
|
| 103 | 103 | |
| 104 | 104 | self::assertSame($q2, $q); |
| 105 | 105 | } |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | $this->em->getConfiguration()->setResultCacheImpl(new ArrayCache()); |
| 257 | 257 | |
| 258 | 258 | $query = $this->em->createQuery('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u') |
| 259 | - ->useResultCache(true); |
|
| 259 | + ->useResultCache(true); |
|
| 260 | 260 | |
| 261 | 261 | /** @var DriverConnectionMock $driverConnectionMock */ |
| 262 | 262 | $driverConnectionMock = $this->em->getConnection() |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | */ |
| 315 | 315 | public function testGetParameterTypeJuggling() : void |
| 316 | 316 | { |
| 317 | - $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id = ?0'); |
|
| 317 | + $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id = ?0'); |
|
| 318 | 318 | |
| 319 | 319 | $query->setParameter(0, 0); |
| 320 | 320 | |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | */ |
| 329 | 329 | public function testSetParameterWithNameZeroIsNotOverridden() : void |
| 330 | 330 | { |
| 331 | - $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
| 331 | + $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
| 332 | 332 | |
| 333 | 333 | $query->setParameter(0, 0); |
| 334 | 334 | $query->setParameter('name', 'Doctrine'); |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | */ |
| 344 | 344 | public function testSetParameterWithNameZeroDoesNotOverrideAnotherParameter() : void |
| 345 | 345 | { |
| 346 | - $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
| 346 | + $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
| 347 | 347 | |
| 348 | 348 | $query->setParameter('name', 'Doctrine'); |
| 349 | 349 | $query->setParameter(0, 0); |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | */ |
| 359 | 359 | public function testSetParameterWithTypeJugglingWorks() : void |
| 360 | 360 | { |
| 361 | - $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
| 361 | + $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
| 362 | 362 | |
| 363 | 363 | $query->setParameter('0', 1); |
| 364 | 364 | $query->setParameter('name', 'Doctrine'); |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | { |
| 379 | 379 | $this->em->getConfiguration()->setResultCacheImpl(new ArrayCache()); |
| 380 | 380 | |
| 381 | - $query = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u'); |
|
| 381 | + $query = $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u'); |
|
| 382 | 382 | $query->useResultCache(true); |
| 383 | 383 | $query->setResultCacheProfile(); |
| 384 | 384 | |
@@ -86,8 +86,8 @@ |
||
| 86 | 86 | $this->em = $this->getTestEntityManager(); |
| 87 | 87 | $this->region = $this->createRegion(); |
| 88 | 88 | $this->collectionPersister = $this->getMockBuilder(CollectionPersister::class) |
| 89 | - ->setMethods($this->collectionPersisterMockMethods) |
|
| 90 | - ->getMock(); |
|
| 89 | + ->setMethods($this->collectionPersisterMockMethods) |
|
| 90 | + ->getMock(); |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
@@ -103,8 +103,8 @@ |
||
| 103 | 103 | $this->em = $this->getTestEntityManager(); |
| 104 | 104 | $this->region = $this->createRegion(); |
| 105 | 105 | $this->entityPersister = $this->getMockBuilder(EntityPersister::class) |
| 106 | - ->setMethods($this->entityPersisterMockMethods) |
|
| 107 | - ->getMock(); |
|
| 106 | + ->setMethods($this->entityPersisterMockMethods) |
|
| 107 | + ->getMock(); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |