Completed
Pull Request — master (#219)
by Christopher
08:26 queued 03:44
created
src/Serialisers/SerialiseDepWrapperTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -186,8 +186,8 @@
 block discarded – undo
186 186
      */
187 187
     protected function updateLightStack(int $newCount)
188 188
     {
189
-        $this->lightStack[$newCount - 1]['count']--;
190
-        if (0 == $this->lightStack[$newCount - 1]['count']) {
189
+        $this->lightStack[$newCount-1]['count']--;
190
+        if (0 == $this->lightStack[$newCount-1]['count']) {
191 191
             array_pop($this->lightStack);
192 192
         }
193 193
     }
Please login to merge, or discard this patch.
src/Providers/MetadataBaseProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     {
64 64
         $class = __CLASS__;
65 65
         if (!isset($classMap[$class])) {
66
-            throw new \Exception(sprintf('%s was not found in autoload class map, this usually indicates you '.
66
+            throw new \Exception(sprintf('%s was not found in autoload class map, this usually indicates you ' .
67 67
             'need to dump an optimised autoloader (`composer dump-autoload -o`)', $class));
68 68
         }
69 69
     }
Please login to merge, or discard this patch.
src/Models/MetadataKeyMethodNamesTrait.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
         }
55 55
     }
56 56
 
57
-    protected function polyglotThroughKey(Relation $rel){
58
-        if(! $rel instanceof HasManyThrough){
57
+    protected function polyglotThroughKey(Relation $rel) {
58
+        if (!$rel instanceof HasManyThrough) {
59 59
             return null;
60 60
         }
61 61
         $segments = explode('.', $rel->{$this->checkMethodNameList($rel, ['getThroughKey', 'getQualifiedFirstKeyName'])}());
@@ -91,6 +91,6 @@  discard block
 block discarded – undo
91 91
             }
92 92
         }
93 93
         $msg = 'Expected at least 1 element in related-key list, got 0 for relation %s';
94
-        throw new InvalidOperationException(sprintf($msg,get_class($foo)));
94
+        throw new InvalidOperationException(sprintf($msg, get_class($foo)));
95 95
     }
96 96
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,9 @@
 block discarded – undo
54 54
         }
55 55
     }
56 56
 
57
-    protected function polyglotThroughKey(Relation $rel){
58
-        if(! $rel instanceof HasManyThrough){
57
+    protected function polyglotThroughKey(Relation $rel)
58
+    {
59
+        if(! $rel instanceof HasManyThrough) {
59 60
             return null;
60 61
         }
61 62
         $segments = explode('.', $rel->{$this->checkMethodNameList($rel, ['getThroughKey', 'getQualifiedFirstKeyName'])}());
Please login to merge, or discard this patch.