@@ -241,8 +241,8 @@ discard block |
||
| 241 | 241 | ): AbstractTable { |
| 242 | 242 | $driver = $this->manager->database($database)->getDriver(); |
| 243 | 243 | |
| 244 | - if (isset($this->tables[$driver->getName() . '.' . $table])) { |
|
| 245 | - $schema = $this->tables[$driver->getName() . '.' . $table]; |
|
| 244 | + if (isset($this->tables[$driver->getName().'.'.$table])) { |
|
| 245 | + $schema = $this->tables[$driver->getName().'.'.$table]; |
|
| 246 | 246 | |
| 247 | 247 | if ($unique) { |
| 248 | 248 | throw new DoubleReferenceException( |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | } |
| 252 | 252 | } else { |
| 253 | 253 | $schema = $this->manager->database($database)->table($table)->getSchema(); |
| 254 | - $this->tables[$driver->getName() . '.' . $table] = $schema; |
|
| 254 | + $this->tables[$driver->getName().'.'.$table] = $schema; |
|
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | $schema = clone $schema; |
@@ -473,10 +473,10 @@ discard block |
||
| 473 | 473 | //We have to make sure that local table name is used |
| 474 | 474 | $table = substr($schema->getName(), strlen($schema->getPrefix())); |
| 475 | 475 | |
| 476 | - if (empty($this->tables[$schema->getDriver()->getName() . '.' . $table])) { |
|
| 476 | + if (empty($this->tables[$schema->getDriver()->getName().'.'.$table])) { |
|
| 477 | 477 | throw new SchemaException("AbstractTable must be requested before pushing back"); |
| 478 | 478 | } |
| 479 | 479 | |
| 480 | - $this->tables[$schema->getDriver()->getName() . '.' . $table] = $schema; |
|
| 480 | + $this->tables[$schema->getDriver()->getName().'.'.$table] = $schema; |
|
| 481 | 481 | } |
| 482 | 482 | } |
| 483 | 483 | \ No newline at end of file |
@@ -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, [$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 | } |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | |
| 201 | 201 | if (!$this->isSynced($this->parent, $instance)) { |
| 202 | 202 | //Delayed linking |
| 203 | - $parentCommand->onExecute(function ($outerCommand) use ($innerCommand) { |
|
| 203 | + $parentCommand->onExecute(function($outerCommand) use ($innerCommand) { |
|
| 204 | 204 | $innerCommand->addContext( |
| 205 | 205 | $this->key(Record::OUTER_KEY), |
| 206 | 206 | $this->lookupKey(Record::INNER_KEY, $this->parent, $outerCommand) |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | if (!empty($this->key(Record::MORPH_KEY))) { |
| 258 | 258 | //Morph key |
| 259 | 259 | $decorator->where( |
| 260 | - '{@}.' . $this->key(Record::MORPH_KEY), |
|
| 260 | + '{@}.'.$this->key(Record::MORPH_KEY), |
|
| 261 | 261 | $this->orm->define(get_class($this->parent), ORMInterface::R_ROLE_NAME) |
| 262 | 262 | ); |
| 263 | 263 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | $args[0] = $this->prepare($args[0]); |
| 132 | 132 | |
| 133 | 133 | //Routing where |
| 134 | - call_user_func_array([$this->query, 'and' . ucfirst($this->target)], $args); |
|
| 134 | + call_user_func_array([$this->query, 'and'.ucfirst($this->target)], $args); |
|
| 135 | 135 | |
| 136 | 136 | return $this; |
| 137 | 137 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $args[0] = $this->prepare($args[0]); |
| 161 | 161 | |
| 162 | 162 | //Routing where |
| 163 | - call_user_func_array([$this->query, 'or' . ucfirst($this->target)], $args); |
|
| 163 | + call_user_func_array([$this->query, 'or'.ucfirst($this->target)], $args); |
|
| 164 | 164 | |
| 165 | 165 | return $this; |
| 166 | 166 | } |