Test Failed
Push — develop ( 10da16...c19264 )
by Luís
63:31
created
lib/Doctrine/ORM/Cache/DefaultQueryCache.php 4 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
38 38
  */
39 39
 class DefaultQueryCache implements QueryCache
40 40
 {
41
-     /**
42
-     * @var \Doctrine\ORM\EntityManagerInterface
43
-     */
41
+        /**
42
+         * @var \Doctrine\ORM\EntityManagerInterface
43
+         */
44 44
     private $em;
45 45
 
46 46
     /**
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -336,7 +336,6 @@
 block discarded – undo
336 336
 
337 337
     /**
338 338
      * @param \Doctrine\ORM\Cache\QueryCacheKey $key
339
-     * @param AssociationMetadata               $assoc
340 339
      * @param mixed                             $assocValue
341 340
      *
342 341
      * @return array|null
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -22,14 +22,11 @@
 block discarded – undo
22 22
 
23 23
 namespace Doctrine\ORM\Cache;
24 24
 
25
-use Doctrine\Common\Collections\ArrayCollection;
26 25
 use Doctrine\ORM\Cache\Persister\CachedPersister;
27 26
 use Doctrine\ORM\EntityManagerInterface;
28 27
 use Doctrine\ORM\Mapping\AssociationMetadata;
29 28
 use Doctrine\ORM\Mapping\ToOneAssociationMetadata;
30 29
 use Doctrine\ORM\Query\ResultSetMapping;
31
-use Doctrine\ORM\Mapping\ClassMetadata;
32
-use Doctrine\ORM\PersistentCollection;
33 30
 use Doctrine\Common\Proxy\Proxy;
34 31
 use Doctrine\ORM\Cache;
35 32
 use Doctrine\ORM\Query;
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * <http://www.doctrine-project.org>.
19 19
  */
20 20
 
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace Doctrine\ORM\Cache;
24 24
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         $cm = $this->em->getClassMetadata($entityName);
119 119
 
120
-        $generateKeys = function (array $entry) use ($cm): EntityCacheKey {
120
+        $generateKeys = function(array $entry) use ($cm): EntityCacheKey {
121 121
             return new EntityCacheKey($cm->getRootClassName(), $entry['identifier']);
122 122
         };
123 123
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                     continue;
189 189
                 }
190 190
 
191
-                $generateKeys = function ($id) use ($assocMetadata): EntityCacheKey {
191
+                $generateKeys = function($id) use ($assocMetadata): EntityCacheKey {
192 192
                     return new EntityCacheKey($assocMetadata->getRootClassName(), $id);
193 193
                 };
194 194
 
@@ -352,9 +352,9 @@  discard block
 block discarded – undo
352 352
             $assocIdentifier = $this->uow->getEntityIdentifier($assocValue);
353 353
             $entityKey       = new EntityCacheKey($assocMetadata->getRootClassName(), $assocIdentifier);
354 354
 
355
-            if ((! $assocValue instanceof Proxy && ($key->cacheMode & Cache::MODE_REFRESH)) || ! $assocRegion->contains($entityKey)) {
355
+            if (( ! $assocValue instanceof Proxy && ($key->cacheMode & Cache::MODE_REFRESH)) || ! $assocRegion->contains($entityKey)) {
356 356
                 // Entity put fail
357
-                if (! $assocPersister->storeEntityCache($assocValue, $entityKey)) {
357
+                if ( ! $assocPersister->storeEntityCache($assocValue, $entityKey)) {
358 358
                     return null;
359 359
                 }
360 360
             }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Logging/CacheLogger.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,12 +56,12 @@
 block discarded – undo
56 56
      */
57 57
     public function entityCacheMiss($regionName, EntityCacheKey $key);
58 58
 
59
-     /**
60
-     * Log an entity put into second level cache.
61
-     *
62
-     * @param string                                 $regionName The name of the cache region.
63
-     * @param \Doctrine\ORM\Cache\CollectionCacheKey $key        The cache key of the collection.
64
-     */
59
+        /**
60
+         * Log an entity put into second level cache.
61
+         *
62
+         * @param string                                 $regionName The name of the cache region.
63
+         * @param \Doctrine\ORM\Cache\CollectionCacheKey $key        The cache key of the collection.
64
+         */
65 65
     public function collectionCachePut($regionName, CollectionCacheKey $key);
66 66
 
67 67
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * <http://www.doctrine-project.org>.
19 19
  */
20 20
 
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace Doctrine\ORM\Cache\Logging;
24 24
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/EntityRepositoryGenerator.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
         $code = $this->generateEntityRepositoryClass($fullClassName);
144 144
 
145 145
         $path = $outputDirectory . DIRECTORY_SEPARATOR
146
-              . str_replace('\\', \DIRECTORY_SEPARATOR, $fullClassName) . '.php';
146
+                . str_replace('\\', \DIRECTORY_SEPARATOR, $fullClassName) . '.php';
147 147
         $dir = dirname($path);
148 148
 
149 149
         if ( ! is_dir($dir)) {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * <http://www.doctrine-project.org>.
18 18
  */
19 19
 
20
-declare(strict_types=1);
20
+declare(strict_types = 1);
21 21
 
22 22
 namespace Doctrine\ORM\Tools;
23 23
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     {
116 116
         $namespace = $this->getClassNamespace($fullClassName);
117 117
 
118
-        return $namespace ? 'namespace ' . $namespace . ';' : '';
118
+        return $namespace ? 'namespace '.$namespace.';' : '';
119 119
     }
120 120
 
121 121
     /**
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $repositoryName = $this->repositoryName ?: EntityRepository::class;
131 131
 
132 132
         if ($namespace && $repositoryName[0] !== '\\') {
133
-            $repositoryName = '\\' . $repositoryName;
133
+            $repositoryName = '\\'.$repositoryName;
134 134
         }
135 135
 
136 136
         return $repositoryName;
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
     {
147 147
         $code = $this->generateEntityRepositoryClass($fullClassName);
148 148
 
149
-        $path = $outputDirectory . DIRECTORY_SEPARATOR
150
-              . str_replace('\\', \DIRECTORY_SEPARATOR, $fullClassName) . '.php';
149
+        $path = $outputDirectory.DIRECTORY_SEPARATOR
150
+              . str_replace('\\', \DIRECTORY_SEPARATOR, $fullClassName).'.php';
151 151
         $dir = dirname($path);
152 152
 
153 153
         if ( ! is_dir($dir)) {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@
 block discarded – undo
58 58
         $entityManager = $this->getHelper('em')->getEntityManager();
59 59
 
60 60
         $entityClassNames = $entityManager->getConfiguration()
61
-                                          ->getMetadataDriverImpl()
62
-                                          ->getAllClassNames();
61
+                                            ->getMetadataDriverImpl()
62
+                                            ->getAllClassNames();
63 63
 
64 64
         if (!$entityClassNames) {
65 65
             throw new \Exception(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * <http://www.doctrine-project.org>.
18 18
  */
19 19
 
20
-declare(strict_types=1);
20
+declare(strict_types = 1);
21 21
 
22 22
 namespace Doctrine\ORM\Tools\Console\Command;
23 23
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                                           ->getMetadataDriverImpl()
64 64
                                           ->getAllClassNames();
65 65
 
66
-        if (!$entityClassNames) {
66
+        if ( ! $entityClassNames) {
67 67
             throw new \Exception(
68 68
                 'You do not have any mapped Doctrine ORM entities according to the current configuration. '.
69 69
                 'If you have entities or mapping files you should check your mapping configuration for errors.'
Please login to merge, or discard this patch.
lib/Doctrine/ORM/EntityManagerInterface.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -242,17 +242,17 @@
 block discarded – undo
242 242
     public function getUnitOfWork();
243 243
 
244 244
     /**
245
-    * Gets a hydrator for the given hydration mode.
246
-    *
247
-    * This method caches the hydrator instances which is used for all queries that don't
248
-    * selectively iterate over the result.
249
-    *
250
-    * @deprecated
251
-    *
252
-    * @param int $hydrationMode
253
-    *
254
-    * @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator
255
-    */
245
+     * Gets a hydrator for the given hydration mode.
246
+     *
247
+     * This method caches the hydrator instances which is used for all queries that don't
248
+     * selectively iterate over the result.
249
+     *
250
+     * @deprecated
251
+     *
252
+     * @param int $hydrationMode
253
+     *
254
+     * @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator
255
+     */
256 256
     public function getHydrator($hydrationMode);
257 257
 
258 258
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  * <http://www.doctrine-project.org>.
18 18
  */
19 19
 
20
-declare(strict_types=1);
20
+declare(strict_types = 1);
21 21
 
22 22
 namespace Doctrine\ORM;
23 23
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/DefaultEntityListenerResolver.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     public function resolve($className)
68 68
     {
69 69
         if (isset($this->instances[$className = trim($className, '\\')])) {
70
-           return $this->instances[$className];
70
+            return $this->instances[$className];
71 71
         }
72 72
 
73 73
         return $this->instances[$className] = new $className();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * <http://www.doctrine-project.org>.
19 19
  */
20 20
 
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace Doctrine\ORM\Mapping;
24 24
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Configuration.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -918,7 +918,7 @@
 block discarded – undo
918 918
      * @since 2.5
919 919
      *
920 920
      * @param string $name  The name of the hint.
921
-     * @param mixed  $value The value of the hint.
921
+     * @param string  $value The value of the hint.
922 922
      */
923 923
     public function setDefaultQueryHint($name, $value)
924 924
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * <http://www.doctrine-project.org>.
18 18
  */
19 19
 
20
-declare(strict_types=1);
20
+declare(strict_types = 1);
21 21
 
22 22
 namespace Doctrine\ORM;
23 23
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function newDefaultAnnotationDriver($paths = [])
152 152
     {
153
-        AnnotationRegistry::registerFile(__DIR__ . '/Annotation/DoctrineAnnotations.php');
153
+        AnnotationRegistry::registerFile(__DIR__.'/Annotation/DoctrineAnnotations.php');
154 154
 
155 155
         $reader = new CachedReader(new AnnotationReader(), new ArrayCache());
156 156
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -620,7 +620,7 @@
 block discarded – undo
620 620
      * Executes the query and returns an IterableResult that can be used to incrementally
621 621
      * iterated over the result.
622 622
      *
623
-     * @param ArrayCollection|array|null $parameters    The query parameters.
623
+     * @param null|ArrayCollection $parameters    The query parameters.
624 624
      * @param integer                    $hydrationMode The hydration mode to use.
625 625
      *
626 626
      * @return \Doctrine\ORM\Internal\Hydration\IterableResult
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
26 26
 use Doctrine\ORM\Query\Parser;
27 27
 use Doctrine\ORM\Query\ParserResult;
28 28
 use Doctrine\ORM\Query\QueryException;
29
-use Doctrine\ORM\Mapping\ClassMetadata;
30 29
 use Doctrine\ORM\Query\ParameterTypeInferer;
31 30
 use Doctrine\Common\Collections\ArrayCollection;
32 31
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -742,9 +742,9 @@
 block discarded – undo
742 742
         );
743 743
     }
744 744
 
745
-     /**
746
-     * {@inheritdoc}
747
-     */
745
+        /**
746
+         * {@inheritdoc}
747
+         */
748 748
     protected function getHash()
749 749
     {
750 750
         return sha1(parent::getHash(). '-'. $this->firstResult . '-' . $this->maxResults);
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * <http://www.doctrine-project.org>.
18 18
  */
19 19
 
20
-declare(strict_types=1);
20
+declare(strict_types = 1);
21 21
 
22 22
 namespace Doctrine\ORM;
23 23
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * A query object is in CLEAN state when it has NO unparsed/unprocessed DQL parts.
45 45
      */
46
-    const STATE_CLEAN  = 1;
46
+    const STATE_CLEAN = 1;
47 47
 
48 48
     /**
49 49
      * A query object is in state DIRTY when it has DQL parts that have not yet been
@@ -734,11 +734,11 @@  discard block
 block discarded – undo
734 734
             ->getName();
735 735
 
736 736
         return md5(
737
-            $this->getDQL() . serialize($this->hints) .
738
-            '&platform=' . $platform .
739
-            ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '') .
740
-            '&firstResult=' . $this->firstResult . '&maxResult=' . $this->maxResults .
741
-            '&hydrationMode=' . $this->hydrationMode . '&types=' . serialize($this->parsedTypes) . 'DOCTRINE_QUERY_CACHE_SALT'
737
+            $this->getDQL().serialize($this->hints).
738
+            '&platform='.$platform.
739
+            ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '').
740
+            '&firstResult='.$this->firstResult.'&maxResult='.$this->maxResults.
741
+            '&hydrationMode='.$this->hydrationMode.'&types='.serialize($this->parsedTypes).'DOCTRINE_QUERY_CACHE_SALT'
742 742
         );
743 743
     }
744 744
 
@@ -747,7 +747,7 @@  discard block
 block discarded – undo
747 747
      */
748 748
     protected function getHash()
749 749
     {
750
-        return sha1(parent::getHash(). '-'. $this->firstResult . '-' . $this->maxResults);
750
+        return sha1(parent::getHash().'-'.$this->firstResult.'-'.$this->maxResults);
751 751
     }
752 752
 
753 753
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/Expr.php 2 patches
Doc Comments   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * Creates an ASCending order expression.
77 77
      *
78
-     * @param mixed $expr
78
+     * @param string $expr
79 79
      *
80 80
      * @return Expr\OrderBy
81 81
      */
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * Creates a DESCending order expression.
89 89
      *
90
-     * @param mixed $expr
90
+     * @param string $expr
91 91
      *
92 92
      * @return Expr\OrderBy
93 93
      */
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
      *     // u.id <> ?1
126 126
      *     $q->where($q->expr()->neq('u.id', '?1'));
127 127
      *
128
-     * @param mixed $x Left expression.
129
-     * @param mixed $y Right expression.
128
+     * @param string $x Left expression.
129
+     * @param string $y Right expression.
130 130
      *
131 131
      * @return Expr\Comparison
132 132
      */
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     /**
215 215
      * Creates an instance of AVG() function, with the given argument.
216 216
      *
217
-     * @param mixed $x Argument to be used in AVG() function.
217
+     * @param string $x Argument to be used in AVG() function.
218 218
      *
219 219
      * @return Expr\Func
220 220
      */
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     /**
227 227
      * Creates an instance of MAX() function, with the given argument.
228 228
      *
229
-     * @param mixed $x Argument to be used in MAX() function.
229
+     * @param string $x Argument to be used in MAX() function.
230 230
      *
231 231
      * @return Expr\Func
232 232
      */
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     /**
239 239
      * Creates an instance of MIN() function, with the given argument.
240 240
      *
241
-     * @param mixed $x Argument to be used in MIN() function.
241
+     * @param string $x Argument to be used in MIN() function.
242 242
      *
243 243
      * @return Expr\Func
244 244
      */
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     /**
251 251
      * Creates an instance of COUNT() function, with the given argument.
252 252
      *
253
-     * @param mixed $x Argument to be used in COUNT() function.
253
+     * @param string $x Argument to be used in COUNT() function.
254 254
      *
255 255
      * @return Expr\Func
256 256
      */
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     /**
263 263
      * Creates an instance of COUNT(DISTINCT) function, with the given argument.
264 264
      *
265
-     * @param mixed $x Argument to be used in COUNT(DISTINCT) function.
265
+     * @param string $x Argument to be used in COUNT(DISTINCT) function.
266 266
      *
267 267
      * @return string
268 268
      */
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     /**
275 275
      * Creates an instance of EXISTS() function, with the given DQL Subquery.
276 276
      *
277
-     * @param mixed $subquery DQL Subquery to be used in EXISTS() function.
277
+     * @param \Doctrine\ORM\QueryBuilder $subquery DQL Subquery to be used in EXISTS() function.
278 278
      *
279 279
      * @return Expr\Func
280 280
      */
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     /**
299 299
      * Creates a SOME() function expression with the given DQL subquery.
300 300
      *
301
-     * @param mixed $subquery DQL Subquery to be used in SOME() function.
301
+     * @param \Doctrine\ORM\QueryBuilder $subquery DQL Subquery to be used in SOME() function.
302 302
      *
303 303
      * @return Expr\Func
304 304
      */
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
     /**
311 311
      * Creates an ANY() function expression with the given DQL subquery.
312 312
      *
313
-     * @param mixed $subquery DQL Subquery to be used in ANY() function.
313
+     * @param \Doctrine\ORM\QueryBuilder $subquery DQL Subquery to be used in ANY() function.
314 314
      *
315 315
      * @return Expr\Func
316 316
      */
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
     /**
335 335
      * Creates an ABS() function expression with the given argument.
336 336
      *
337
-     * @param mixed $x Argument to be used in ABS() function.
337
+     * @param integer $x Argument to be used in ABS() function.
338 338
      *
339 339
      * @return Expr\Func
340 340
      */
@@ -353,8 +353,8 @@  discard block
 block discarded – undo
353 353
      *     // u.salary * u.percentAnnualSalaryIncrease
354 354
      *     $q->expr()->prod('u.salary', 'u.percentAnnualSalaryIncrease')
355 355
      *
356
-     * @param mixed $x Left expression.
357
-     * @param mixed $y Right expression.
356
+     * @param integer $x Left expression.
357
+     * @param integer $y Right expression.
358 358
      *
359 359
      * @return Expr\Math
360 360
      */
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
      *     // u.monthlySubscriptionCount - 1
373 373
      *     $q->expr()->diff('u.monthlySubscriptionCount', '1')
374 374
      *
375
-     * @param mixed $x Left expression.
375
+     * @param integer $x Left expression.
376 376
      * @param mixed $y Right expression.
377 377
      *
378 378
      * @return Expr\Math
@@ -391,8 +391,8 @@  discard block
 block discarded – undo
391 391
      *     // u.numChildren + 1
392 392
      *     $q->expr()->sum('u.numChildren', '1')
393 393
      *
394
-     * @param mixed $x Left expression.
395
-     * @param mixed $y Right expression.
394
+     * @param integer $x Left expression.
395
+     * @param integer $y Right expression.
396 396
      *
397 397
      * @return Expr\Math
398 398
      */
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
      *     $expr->quot('u.total', 'u.period')
412 412
      *
413 413
      * @param mixed $x Left expression.
414
-     * @param mixed $y Right expression.
414
+     * @param integer $y Right expression.
415 415
      *
416 416
      * @return Expr\Math
417 417
      */
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
     /**
424 424
      * Creates a SQRT() function expression with the given argument.
425 425
      *
426
-     * @param mixed $x Argument to be used in SQRT() function.
426
+     * @param integer $x Argument to be used in SQRT() function.
427 427
      *
428 428
      * @return Expr\Func
429 429
      */
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
      * Creates a LIKE() comparison expression with the given arguments.
503 503
      *
504 504
      * @param string $x Field in string format to be inspected by LIKE() comparison.
505
-     * @param mixed  $y Argument to be used in LIKE() comparison.
505
+     * @param string  $y Argument to be used in LIKE() comparison.
506 506
      *
507 507
      * @return Expr\Comparison
508 508
      */
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
      * Creates a NOT LIKE() comparison expression with the given arguments.
516 516
      *
517 517
      * @param string $x Field in string format to be inspected by LIKE() comparison.
518
-     * @param mixed  $y Argument to be used in LIKE() comparison.
518
+     * @param string  $y Argument to be used in LIKE() comparison.
519 519
      *
520 520
      * @return Expr\Comparison
521 521
      */
@@ -527,8 +527,8 @@  discard block
 block discarded – undo
527 527
     /**
528 528
      * Creates a CONCAT() function expression with the given arguments.
529 529
      *
530
-     * @param mixed $x First argument to be used in CONCAT() function.
531
-     * @param mixed $y,... Other arguments to be used in CONCAT() function.
530
+     * @param string $x First argument to be used in CONCAT() function.
531
+     * @param string $y
532 532
      *
533 533
      * @return Expr\Func
534 534
      */
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
     /**
541 541
      * Creates a SUBSTRING() function expression with the given arguments.
542 542
      *
543
-     * @param mixed    $x    Argument to be used as string to be cropped by SUBSTRING() function.
543
+     * @param string    $x    Argument to be used as string to be cropped by SUBSTRING() function.
544 544
      * @param int      $from Initial offset to start cropping string. May accept negative values.
545 545
      * @param int|null $len  Length of crop. May accept negative values.
546 546
      *
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
     /**
560 560
      * Creates a LOWER() function expression with the given argument.
561 561
      *
562
-     * @param mixed $x Argument to be used in LOWER() function.
562
+     * @param string $x Argument to be used in LOWER() function.
563 563
      *
564 564
      * @return Expr\Func A LOWER function expression.
565 565
      */
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
     /**
572 572
      * Creates an UPPER() function expression with the given argument.
573 573
      *
574
-     * @param mixed $x Argument to be used in UPPER() function.
574
+     * @param string $x Argument to be used in UPPER() function.
575 575
      *
576 576
      * @return Expr\Func An UPPER function expression.
577 577
      */
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
     /**
584 584
      * Creates a LENGTH() function expression with the given argument.
585 585
      *
586
-     * @param mixed $x Argument to be used as argument of LENGTH() function.
586
+     * @param string $x Argument to be used as argument of LENGTH() function.
587 587
      *
588 588
      * @return Expr\Func A LENGTH function expression.
589 589
      */
@@ -625,11 +625,11 @@  discard block
 block discarded – undo
625 625
     /**
626 626
      * Creates an instance of BETWEEN() function, with the given argument.
627 627
      *
628
-     * @param mixed   $val Valued to be inspected by range values.
628
+     * @param string   $val Valued to be inspected by range values.
629 629
      * @param integer $x   Starting range value to be used in BETWEEN() function.
630 630
      * @param integer $y   End point value to be used in BETWEEN() function.
631 631
      *
632
-     * @return Expr\Func A BETWEEN expression.
632
+     * @return string A BETWEEN expression.
633 633
      */
634 634
     public function between($val, $x, $y)
635 635
     {
@@ -639,7 +639,7 @@  discard block
 block discarded – undo
639 639
     /**
640 640
      * Creates an instance of TRIM() function, with the given argument.
641 641
      *
642
-     * @param mixed $x Argument to be used as argument of TRIM() function.
642
+     * @param string $x Argument to be used as argument of TRIM() function.
643 643
      *
644 644
      * @return Expr\Func a TRIM expression.
645 645
      */
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * <http://www.doctrine-project.org>.
18 18
  */
19 19
 
20
-declare(strict_types=1);
20
+declare(strict_types = 1);
21 21
 
22 22
 namespace Doctrine\ORM\Query;
23 23
 
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      */
271 271
     public function countDistinct($x)
272 272
     {
273
-        return 'COUNT(DISTINCT ' . implode(', ', func_get_args()) . ')';
273
+        return 'COUNT(DISTINCT '.implode(', ', func_get_args()).')';
274 274
     }
275 275
 
276 276
     /**
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
             }
453 453
         }
454 454
 
455
-        return new Expr\Func($x . ' IN', (array) $y);
455
+        return new Expr\Func($x.' IN', (array) $y);
456 456
     }
457 457
 
458 458
     /**
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
             }
474 474
         }
475 475
 
476
-        return new Expr\Func($x . ' NOT IN', (array) $y);
476
+        return new Expr\Func($x.' NOT IN', (array) $y);
477 477
     }
478 478
 
479 479
     /**
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
      */
486 486
     public function isNull($x)
487 487
     {
488
-        return $x . ' IS NULL';
488
+        return $x.' IS NULL';
489 489
     }
490 490
 
491 491
     /**
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
      */
498 498
     public function isNotNull($x)
499 499
     {
500
-        return $x . ' IS NOT NULL';
500
+        return $x.' IS NOT NULL';
501 501
     }
502 502
 
503 503
     /**
@@ -615,12 +615,12 @@  discard block
 block discarded – undo
615 615
      */
616 616
     private function quoteLiteral($literal)
617 617
     {
618
-        if (is_numeric($literal) && !is_string($literal)) {
618
+        if (is_numeric($literal) && ! is_string($literal)) {
619 619
             return (string) $literal;
620 620
         } else if (is_bool($literal)) {
621 621
             return $literal ? "true" : "false";
622 622
         } else {
623
-            return "'" . str_replace("'", "''", $literal) . "'";
623
+            return "'".str_replace("'", "''", $literal)."'";
624 624
         }
625 625
     }
626 626
 
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
      */
636 636
     public function between($val, $x, $y)
637 637
     {
638
-        return $val . ' BETWEEN ' . $x . ' AND ' . $y;
638
+        return $val.' BETWEEN '.$x.' AND '.$y;
639 639
     }
640 640
 
641 641
     /**
Please login to merge, or discard this patch.