Completed
Push — master ( 7a03a0...c6c06a )
by Karsten
03:59
created
src/Slumber/Data/EntityRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * Date: 06.01.17
6 6
  * Time: 11:50
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace PeekAndPoke\Component\Slumber\Data;
11 11
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function insert($subject)
73 73
     {
74
-        if ($subject === null || ! is_object($subject)) {
74
+        if ($subject === null || !is_object($subject)) {
75 75
             return null;
76 76
         }
77 77
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function save($subject)
91 91
     {
92
-        if ($subject === null || ! is_object($subject)) {
92
+        if ($subject === null || !is_object($subject)) {
93 93
             return null;
94 94
         }
95 95
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
         $isOk = is_object($subject) && $subject instanceof $entityClassName;
175 175
 
176
-        if (! $isOk) {
176
+        if (!$isOk) {
177 177
             throw new SlumberRuntimeException(
178 178
                 'Repository ' . get_class($this) . ' can only store objects of type ' . $entityClassName .
179 179
                 ' but a ' . get_class($subject) . ' was given!'
Please login to merge, or discard this patch.
src/Slumber/Data/EntityPoolImpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         $search = $cls->name . '@';
112 112
 
113 113
         $this->pool = Psi::it($this->pool)
114
-            ->filterKey(function ($k) use ($search) {
114
+            ->filterKey(function($k) use ($search) {
115 115
                 return strpos($k, $search) !== 0;
116 116
             })
117 117
             ->toArray();
Please login to merge, or discard this patch.