Completed
Pull Request — master (#219)
by Christopher
08:26 queued 03:44
created
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.