@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | } |
296 | 296 | |
297 | 297 | //Syncing pivot data values |
298 | - $command->onComplete(function (ContextualCommandInterface $command) use ($record) { |
|
298 | + $command->onComplete(function(ContextualCommandInterface $command) use ($record) { |
|
299 | 299 | //Now when we are done we can sync our values with current data |
300 | 300 | $this->pivotData->offsetSet( |
301 | 301 | $record, |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | ContextualCommandInterface $outerCommand |
343 | 343 | ) { |
344 | 344 | //Parent record dependency |
345 | - $parentCommand->onExecute(function ($parentCommand) use ($pivotCommand, $parent) { |
|
345 | + $parentCommand->onExecute(function($parentCommand) use ($pivotCommand, $parent) { |
|
346 | 346 | $pivotCommand->addContext( |
347 | 347 | $this->key(Record::THOUGHT_INNER_KEY), |
348 | 348 | $this->lookupKey(Record::INNER_KEY, $parent, $parentCommand) |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | }); |
351 | 351 | |
352 | 352 | //Outer record dependency |
353 | - $outerCommand->onExecute(function ($outerCommand) use ($pivotCommand, $outer) { |
|
353 | + $outerCommand->onExecute(function($outerCommand) use ($pivotCommand, $outer) { |
|
354 | 354 | $pivotCommand->addContext( |
355 | 355 | $this->key(Record::THOUGHT_OUTER_KEY), |
356 | 356 | $this->lookupKey(Record::OUTER_KEY, $outer, $outerCommand) |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | $loader, |
427 | 427 | [ |
428 | 428 | 'alias' => $table->getName(), |
429 | - 'pivotAlias' => $table->getName() . '_pivot', |
|
429 | + 'pivotAlias' => $table->getName().'_pivot', |
|
430 | 430 | 'method' => RelationLoader::POSTLOAD |
431 | 431 | ] |
432 | 432 | ); |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | $query = $loader->configureQuery($query, true, [$innerKey]); |
437 | 437 | |
438 | 438 | //Additional pivot conditions |
439 | - $pivotDecorator = new AliasDecorator($query, 'onWhere', $table->getName() . '_pivot'); |
|
439 | + $pivotDecorator = new AliasDecorator($query, 'onWhere', $table->getName().'_pivot'); |
|
440 | 440 | $pivotDecorator->where($this->schema[Record::WHERE_PIVOT]); |
441 | 441 | |
442 | 442 | $decorator = new AliasDecorator($query, 'where', 'root'); |
@@ -509,7 +509,7 @@ discard block |
||
509 | 509 | { |
510 | 510 | if ($diff = array_diff(array_keys($pivotData), $this->schema[Record::PIVOT_COLUMNS])) { |
511 | 511 | throw new RelationException( |
512 | - "Invalid pivot data, undefined columns found: " . join(', ', $diff) |
|
512 | + "Invalid pivot data, undefined columns found: ".join(', ', $diff) |
|
513 | 513 | ); |
514 | 514 | } |
515 | 515 | } |