| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\Model; | 
| 6 | 6 | |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\Model; | 
| 6 | 6 | |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\Model; | 
| 6 | 6 | |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\Model; | 
| 6 | 6 | |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\Model; | 
| 6 | 6 | |
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\Model; | 
| 6 | 6 | |
| @@ -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 Chubbyphp\Model\Cache; | 
| 6 | 6 | |
| @@ -9,7 +9,7 @@ discard block | ||
| 9 | 9 | /** | 
| 10 | 10 | * @var array | 
| 11 | 11 | */ | 
| 12 | - private $cache = []; | |
| 12 | + private $cache = [ ]; | |
| 13 | 13 | |
| 14 | 14 | /** | 
| 15 | 15 | * @param string $id | 
| @@ -19,7 +19,7 @@ discard block | ||
| 19 | 19 | */ | 
| 20 | 20 | public function set(string $id, array $entry): ModelCacheInterface | 
| 21 | 21 |      { | 
| 22 | - $this->cache[$id] = $entry; | |
| 22 | + $this->cache[ $id ] = $entry; | |
| 23 | 23 | |
| 24 | 24 | return $this; | 
| 25 | 25 | } | 
| @@ -47,7 +47,7 @@ discard block | ||
| 47 | 47 | throw EntryNotFoundException::fromId($id); | 
| 48 | 48 | } | 
| 49 | 49 | |
| 50 | - return $this->cache[$id]; | |
| 50 | + return $this->cache[ $id ]; | |
| 51 | 51 | } | 
| 52 | 52 | |
| 53 | 53 | /** | 
| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 | */ | 
| 58 | 58 | public function remove(string $id): ModelCacheInterface | 
| 59 | 59 |      { | 
| 60 | - unset($this->cache[$id]); | |
| 60 | + unset($this->cache[ $id ]); | |
| 61 | 61 | |
| 62 | 62 | return $this; | 
| 63 | 63 | } | 
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -declare(strict_types=1); | |
| 3 | +declare(strict_types = 1); | |
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\Model; | 
| 6 | 6 | |
| @@ -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 Chubbyphp\Model; | 
| 6 | 6 | |
| @@ -77,7 +77,7 @@ discard block | ||
| 77 | 77 | */ | 
| 78 | 78 | public function lazyFind(string $modelClass, string $id): \Closure | 
| 79 | 79 |      { | 
| 80 | -        return function () use ($modelClass, $id) { | |
| 80 | +        return function() use ($modelClass, $id) { | |
| 81 | 81 | return $this->find($modelClass, $id); | 
| 82 | 82 | }; | 
| 83 | 83 | } | 
| @@ -90,7 +90,7 @@ discard block | ||
| 90 | 90 | */ | 
| 91 | 91 | public function lazyFindOneBy(string $modelClass, array $criteria): \Closure | 
| 92 | 92 |      { | 
| 93 | -        return function () use ($modelClass, $criteria) { | |
| 93 | +        return function() use ($modelClass, $criteria) { | |
| 94 | 94 | return $this->findOneBy($modelClass, $criteria); | 
| 95 | 95 | }; | 
| 96 | 96 | } | 
| @@ -111,7 +111,7 @@ discard block | ||
| 111 | 111 | int $limit = null, | 
| 112 | 112 | int $offset = null | 
| 113 | 113 |      ): \Closure { | 
| 114 | -        return function () use ($modelClass, $criteria, $orderBy, $limit, $offset) { | |
| 114 | +        return function() use ($modelClass, $criteria, $orderBy, $limit, $offset) { | |
| 115 | 115 | return $this->findBy($modelClass, $criteria, $orderBy, $limit, $offset); | 
| 116 | 116 | }; | 
| 117 | 117 | } | 
| @@ -139,10 +139,10 @@ discard block | ||
| 139 | 139 | */ | 
| 140 | 140 | private function getRepositoryByClass(string $modelClass): RepositoryInterface | 
| 141 | 141 |      { | 
| 142 | -        if (!isset($this->mapping[$modelClass])) { | |
| 142 | +        if (!isset($this->mapping[ $modelClass ])) { | |
| 143 | 143 | throw MissingRepositoryException::create($modelClass); | 
| 144 | 144 | } | 
| 145 | 145 | |
| 146 | - return $this->container->get($this->mapping[$modelClass]); | |
| 146 | + return $this->container->get($this->mapping[ $modelClass ]); | |
| 147 | 147 | } | 
| 148 | 148 | } |