@@ -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 | } |
@@ -187,8 +187,7 @@ |
||
| 187 | 187 | $keyName = $this->polyglotFkKey($relation); |
| 188 | 188 | $localName = $this->polyglotRkKey($relation); |
| 189 | 189 | $thruName = $relation instanceof HasManyThrough ? |
| 190 | - $this->polyglotThroughKey($relation) : |
|
| 191 | - null; |
|
| 190 | + $this->polyglotThroughKey($relation) : null; |
|
| 192 | 191 | |
| 193 | 192 | $first = $keyName; |
| 194 | 193 | $last = $localName; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | switch (true) { |
| 24 | 24 | case $rel instanceof BelongsTo: |
| 25 | - $key = $rel->{$this->checkMethodNameList($rel, ['getForeignKeyName', 'getForeignKey'])}(); |
|
| 25 | + $key = $rel->{$this->checkMethodNameList($rel, ['getForeignKeyName', 'getForeignKey'])}(); |
|
| 26 | 26 | break; |
| 27 | 27 | case $rel instanceof BelongsToMany: |
| 28 | 28 | $key = $rel->getForeignPivotKeyName(); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $key = $rel->getForeignKeyName(); |
| 32 | 32 | break; |
| 33 | 33 | case $rel instanceof HasManyThrough: |
| 34 | - $key = $rel->getQualifiedFarKeyName(); |
|
| 34 | + $key = $rel->getQualifiedFarKeyName(); |
|
| 35 | 35 | break; |
| 36 | 36 | default: |
| 37 | 37 | $msg = sprintf('Unknown Relationship Type %s', get_class($rel)); |