@@ -56,12 +56,12 @@ |
||
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 | /** |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Cache\Logging; |
7 | 7 |
@@ -58,8 +58,8 @@ |
||
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( |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Tools\Console\Command; |
6 | 6 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | ->getMetadataDriverImpl() |
47 | 47 | ->getAllClassNames(); |
48 | 48 | |
49 | - if (!$entityClassNames) { |
|
49 | + if ( ! $entityClassNames) { |
|
50 | 50 | throw new \Exception( |
51 | 51 | 'You do not have any mapped Doctrine ORM entities according to the current configuration. '. |
52 | 52 | 'If you have entities or mapping files you should check your mapping configuration for errors.' |
@@ -242,17 +242,17 @@ |
||
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 | /** |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 |
@@ -67,7 +67,7 @@ |
||
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(); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Mapping; |
7 | 7 |
@@ -620,7 +620,7 @@ |
||
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 |
@@ -742,9 +742,9 @@ |
||
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); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * A query object is in CLEAN state when it has NO unparsed/unprocessed DQL parts. |
28 | 28 | */ |
29 | - const STATE_CLEAN = 1; |
|
29 | + const STATE_CLEAN = 1; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * A query object is in state DIRTY when it has DQL parts that have not yet been |
@@ -717,11 +717,11 @@ discard block |
||
717 | 717 | ->getName(); |
718 | 718 | |
719 | 719 | return md5( |
720 | - $this->getDQL() . serialize($this->hints) . |
|
721 | - '&platform=' . $platform . |
|
722 | - ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : '') . |
|
723 | - '&firstResult=' . $this->firstResult . '&maxResult=' . $this->maxResults . |
|
724 | - '&hydrationMode=' . $this->hydrationMode . '&types=' . serialize($this->parsedTypes) . 'DOCTRINE_QUERY_CACHE_SALT' |
|
720 | + $this->getDQL().serialize($this->hints). |
|
721 | + '&platform='.$platform. |
|
722 | + ($this->em->hasFilters() ? $this->em->getFilters()->getHash() : ''). |
|
723 | + '&firstResult='.$this->firstResult.'&maxResult='.$this->maxResults. |
|
724 | + '&hydrationMode='.$this->hydrationMode.'&types='.serialize($this->parsedTypes).'DOCTRINE_QUERY_CACHE_SALT' |
|
725 | 725 | ); |
726 | 726 | } |
727 | 727 | |
@@ -730,7 +730,7 @@ discard block |
||
730 | 730 | */ |
731 | 731 | protected function getHash() |
732 | 732 | { |
733 | - return sha1(parent::getHash(). '-'. $this->firstResult . '-' . $this->maxResults); |
|
733 | + return sha1(parent::getHash().'-'.$this->firstResult.'-'.$this->maxResults); |
|
734 | 734 | } |
735 | 735 | |
736 | 736 | /** |
@@ -57,7 +57,7 @@ |
||
57 | 57 | /** |
58 | 58 | * Constructor. |
59 | 59 | * |
60 | - * @param Query|QueryBuilder $query A Doctrine ORM query or query builder. |
|
60 | + * @param Query $query A Doctrine ORM query or query builder. |
|
61 | 61 | * @param boolean $fetchJoinCollection Whether the query joins a collection (true by default). |
62 | 62 | */ |
63 | 63 | public function __construct($query, $fetchJoinCollection = true) |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Tools\Pagination; |
6 | 6 |
@@ -38,7 +38,6 @@ |
||
38 | 38 | * Dequeue an exception for a specific method invocation |
39 | 39 | * |
40 | 40 | * @param string $method |
41 | - * @param mixed $default |
|
42 | 41 | * |
43 | 42 | * @return mixed |
44 | 43 | */ |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Tests\Mocks; |
6 | 6 |
@@ -29,6 +29,9 @@ |
||
29 | 29 | */ |
30 | 30 | public $tokens; |
31 | 31 | |
32 | + /** |
|
33 | + * @param string $name |
|
34 | + */ |
|
32 | 35 | public function __construct($name) |
33 | 36 | { |
34 | 37 | $this->name = $name; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Tests\Models\Cache; |
6 | 6 |
@@ -51,6 +51,9 @@ |
||
51 | 51 | */ |
52 | 52 | public $complexAction; |
53 | 53 | |
54 | + /** |
|
55 | + * @param string $token |
|
56 | + */ |
|
54 | 57 | public function __construct($token, Client $client = null) |
55 | 58 | { |
56 | 59 | $this->logins = new ArrayCollection(); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Tests\Models\Cache; |
6 | 6 |