Completed
Push — master ( 1d6a11...94f321 )
by Dominik
01:49
created
src/ModelInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Model;
6 6
 
Please login to merge, or discard this patch.
src/Cache/ModelCacheInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Model;
6 6
 
Please login to merge, or discard this patch.
src/RepositoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Model;
6 6
 
Please login to merge, or discard this patch.
src/Collection/ModelCollectionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Model;
6 6
 
Please login to merge, or discard this patch.
src/ResolverInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Model;
6 6
 
Please login to merge, or discard this patch.
src/Cache/EntryNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Model;
6 6
 
Please login to merge, or discard this patch.
src/Cache/ModelCache.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/MissingRepositoryException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Model;
6 6
 
Please login to merge, or discard this patch.
src/Resolver.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.