@@ -54,8 +54,8 @@ discard block |
||
| 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 |
||
| 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 | } |