@@ -99,8 +99,8 @@ discard block |
||
99 | 99 | * |
100 | 100 | * @see Record::INDEXES |
101 | 101 | */ |
102 | - const INDEX = 1000; //Default index type |
|
103 | - const UNIQUE = 2000; //Unique index definition |
|
102 | + const INDEX = 1000; //Default index type |
|
103 | + const UNIQUE = 2000; //Unique index definition |
|
104 | 104 | |
105 | 105 | /* |
106 | 106 | * ================================================ |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | $this->dispatch('insert', new RecordEvent($this, $command)); |
355 | 355 | |
356 | 356 | //Executed when transaction successfully completed |
357 | - $command->onComplete(function (InsertCommand $command) { |
|
357 | + $command->onComplete(function(InsertCommand $command) { |
|
358 | 358 | $this->handleInsert($command); |
359 | 359 | }); |
360 | 360 | |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | ); |
375 | 375 | |
376 | 376 | if (!empty($this->insertCommand)) { |
377 | - $this->insertCommand->onExecute(function (InsertCommand $insert) use ($command) { |
|
377 | + $this->insertCommand->onExecute(function(InsertCommand $insert) use ($command) { |
|
378 | 378 | //Sync primary key values |
379 | 379 | $command->setWhere([$this->primaryColumn() => $insert->getInsertID()]); |
380 | 380 | }); |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | $this->dispatch('update', new RecordEvent($this)); |
386 | 386 | |
387 | 387 | //Executed when transaction successfully completed |
388 | - $command->onComplete(function (UpdateCommand $command) { |
|
388 | + $command->onComplete(function(UpdateCommand $command) { |
|
389 | 389 | $this->handleUpdate($command); |
390 | 390 | }); |
391 | 391 | |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | ); |
404 | 404 | |
405 | 405 | if (!empty($this->insertCommand)) { |
406 | - $this->insertCommand->onExecute(function (InsertCommand $insert) use ($command) { |
|
406 | + $this->insertCommand->onExecute(function(InsertCommand $insert) use ($command) { |
|
407 | 407 | //Sync primary key values |
408 | 408 | $command->setWhere([$this->primaryColumn() => $insert->getInsertID()]); |
409 | 409 | }); |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | $this->dispatch('delete', new RecordEvent($this)); |
415 | 415 | |
416 | 416 | //Executed when transaction successfully completed |
417 | - $command->onComplete(function (DeleteCommand $command) { |
|
417 | + $command->onComplete(function(DeleteCommand $command) { |
|
418 | 418 | $this->handleDelete($command); |
419 | 419 | }); |
420 | 420 |