@@ -186,8 +186,8 @@ |
||
| 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 | } |
@@ -63,7 +63,7 @@ |
||
| 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 | } |
@@ -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 | } |
@@ -54,8 +54,9 @@ |
||
| 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'])}()); |