Completed
Pull Request — master (#198)
by Alex
24:54
created
src/Models/ModelReflectionHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $fileName = $method->getFileName();
36 36
 
37 37
         $file = new SplFileObject($fileName);
38
-        $file->seek($method->getStartLine() - 1);
38
+        $file->seek($method->getStartLine()-1);
39 39
         $code = '';
40 40
         while ($file->key() < $method->getEndLine()) {
41 41
             $code .= $file->current();
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $code  = preg_replace('/\s\s+/', '', $code);
46 46
         $begin = strpos($code, 'function(');
47
-        $code  = substr($code, (int)$begin, strrpos($code, '}') - $begin + 1);
47
+        $code  = substr($code, (int) $begin, strrpos($code, '}')-$begin+1);
48 48
         return $code;
49 49
     }
50 50
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 ) {
85 85
                     continue;
86 86
                 }
87
-                $relationships[]= $method;
87
+                $relationships[] = $method;
88 88
             }
89 89
         }
90 90
         return $relationships;
Please login to merge, or discard this patch.
src/Models/ObjectMap/Entities/Associations/AssociationStubBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
 
207 207
         $isOk = true;
208 208
         $isOk &= $required == $requireResult;
209
-        $isOk &= (null === $this->targType) === (null ===  $this->foreignFieldName);
209
+        $isOk &= (null === $this->targType) === (null === $this->foreignFieldName);
210 210
         $isOk &= count($this->throughFieldChain) >= 2;
211 211
 
212 212
         return boolval($isOk);
Please login to merge, or discard this patch.
src/Models/ObjectMap/Entities/EntityGubbins.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
     public function setFields(array $fields): void
123 123
     {
124 124
         if (0 == count($fields)) {
125
-            $msg = 'Fields array must not be empty for '.$this->getClassName();
125
+            $msg = 'Fields array must not be empty for ' . $this->getClassName();
126 126
             throw new \Exception($msg);
127 127
         }
128 128
         $keys = [];
129 129
         foreach ($fields as $propName => $field) {
130 130
             if (!$field instanceof EntityField) {
131
-                $msg = 'Fields array must only have EntityField objects for '.$this->getClassName();
131
+                $msg = 'Fields array must only have EntityField objects for ' . $this->getClassName();
132 132
                 throw new \Exception($msg);
133 133
             }
134 134
             if ($field->getIsKeyField()) {
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             }
137 137
         }
138 138
         if (0 == count($keys)) {
139
-            $msg = 'No key field supplied in fields array for '.$this->getClassName();
139
+            $msg = 'No key field supplied in fields array for ' . $this->getClassName();
140 140
             throw new \Exception($msg);
141 141
         }
142 142
         $this->fields    = $fields;
Please login to merge, or discard this patch.
src/Serialisers/SerialiseDepWrapperTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,8 +188,8 @@
 block discarded – undo
188 188
      */
189 189
     protected function updateLightStack(int $newCount) : void
190 190
     {
191
-        $this->lightStack[$newCount - 1]['count']--;
192
-        if (0 == $this->lightStack[$newCount - 1]['count']) {
191
+        $this->lightStack[$newCount-1]['count']--;
192
+        if (0 == $this->lightStack[$newCount-1]['count']) {
193 193
             array_pop($this->lightStack);
194 194
         }
195 195
     }
Please login to merge, or discard this patch.