@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | { |
| 121 | 121 | if (empty($matched = $this->matchOne($record))) { |
| 122 | 122 | throw new RelationException( |
| 123 | - "Unable to get pivotData for non linked record" . ($this->autoload ? '' : " (partial on)") |
|
| 123 | + "Unable to get pivotData for non linked record".($this->autoload ? '' : " (partial on)") |
|
| 124 | 124 | ); |
| 125 | 125 | } |
| 126 | 126 | |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | //Syncing pivot data values |
| 255 | - $command->onComplete(function (ContextualCommandInterface $command) use ($record) { |
|
| 255 | + $command->onComplete(function(ContextualCommandInterface $command) use ($record) { |
|
| 256 | 256 | //Now when we are done we can sync our values with current data |
| 257 | 257 | $this->pivotData->offsetSet($record, $command->getContext()); |
| 258 | 258 | }); |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | $loader, |
| 333 | 333 | [ |
| 334 | 334 | 'alias' => $table->getName(), |
| 335 | - 'pivotAlias' => $table->getName() . '_pivot', |
|
| 335 | + 'pivotAlias' => $table->getName().'_pivot', |
|
| 336 | 336 | 'method' => RelationLoader::POSTLOAD |
| 337 | 337 | ] |
| 338 | 338 | ); |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | $query = $loader->configureQuery($query, [$innerKey]); |
| 343 | 343 | |
| 344 | 344 | //Additional pivot conditions |
| 345 | - $pivotDecorator = new WhereDecorator($query, 'onWhere', $table->getName() . '_pivot'); |
|
| 345 | + $pivotDecorator = new WhereDecorator($query, 'onWhere', $table->getName().'_pivot'); |
|
| 346 | 346 | $pivotDecorator->where($this->schema[Record::WHERE_PIVOT]); |
| 347 | 347 | |
| 348 | 348 | //Additional where conditions! |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | ContextualCommandInterface $outerCommand |
| 430 | 430 | ) { |
| 431 | 431 | //Parent record dependency |
| 432 | - $parentCommand->onExecute(function ($parentCommand) use ($pivotCommand, $parent) { |
|
| 432 | + $parentCommand->onExecute(function($parentCommand) use ($pivotCommand, $parent) { |
|
| 433 | 433 | $pivotCommand->addContext( |
| 434 | 434 | $this->key(Record::THOUGHT_INNER_KEY), |
| 435 | 435 | $this->lookupKey(Record::INNER_KEY, $parent, $parentCommand) |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | }); |
| 438 | 438 | |
| 439 | 439 | //Outer record dependency |
| 440 | - $outerCommand->onExecute(function ($outerCommand) use ($pivotCommand, $outer) { |
|
| 440 | + $outerCommand->onExecute(function($outerCommand) use ($pivotCommand, $outer) { |
|
| 441 | 441 | $pivotCommand->addContext( |
| 442 | 442 | $this->key(Record::THOUGHT_OUTER_KEY), |
| 443 | 443 | $this->lookupKey(Record::OUTER_KEY, $outer, $outerCommand) |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | { |
| 475 | 475 | if ($diff = array_diff(array_keys($pivotData), $this->schema[Record::PIVOT_COLUMNS])) { |
| 476 | 476 | throw new RelationException( |
| 477 | - "Invalid pivot data, undefined columns found: " . join(', ', $diff) |
|
| 477 | + "Invalid pivot data, undefined columns found: ".join(', ', $diff) |
|
| 478 | 478 | ); |
| 479 | 479 | } |
| 480 | 480 | } |