Passed
Branch master (3e0baa)
by y
03:29
created
src/DB/Record.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -64,19 +64,19 @@  discard block
 block discarded – undo
64 64
      */
65 65
     const SCALARS = [
66 66
         'bool' => 'bool',
67
-        'boolean' => 'bool',    // gettype()
68
-        'double' => 'float',    // gettype()
69
-        'false' => 'bool',      // @var
67
+        'boolean' => 'bool', // gettype()
68
+        'double' => 'float', // gettype()
69
+        'false' => 'bool', // @var
70 70
         'float' => 'float',
71 71
         'int' => 'int',
72
-        'integer' => 'int',     // gettype()
73
-        'NULL' => 'string',     // gettype()
74
-        'number' => 'string',   // @var
75
-        'scalar' => 'string',   // @var
72
+        'integer' => 'int', // gettype()
73
+        'NULL' => 'string', // gettype()
74
+        'number' => 'string', // @var
75
+        'scalar' => 'string', // @var
76 76
         'string' => 'string',
77
-        'String' => 'String',   // @var
78
-        'STRING' => 'STRING',   // @var
79
-        'true' => 'bool',       // @var
77
+        'String' => 'String', // @var
78
+        'STRING' => 'STRING', // @var
79
+        'true' => 'bool', // @var
80 80
     ];
81 81
 
82 82
     /**
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      */
488 488
     public function load(int $id)
489 489
     {
490
-        $statement = $this->cache(__FUNCTION__, function () {
490
+        $statement = $this->cache(__FUNCTION__, function() {
491 491
             return $this->select()->where('id = ?')->prepare();
492 492
         });
493 493
         $values = $statement([$id])->fetch();
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
      */
509 509
     public function loadAll()
510 510
     {
511
-        return $this->select()->setFetcher(function (Statement $statement) {
511
+        return $this->select()->setFetcher(function(Statement $statement) {
512 512
             yield from $this->fetchEach($statement);
513 513
         });
514 514
     }
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
      */
568 568
     protected function saveInsert(EntityInterface $entity): void
569 569
     {
570
-        $statement = $this->cache(__FUNCTION__, function () {
570
+        $statement = $this->cache(__FUNCTION__, function() {
571 571
             $slots = $this->db->slots(array_keys($this->columns));
572 572
             unset($slots['id']);
573 573
             $columns = implode(',', array_keys($slots));
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
      */
588 588
     protected function saveUpdate(EntityInterface $entity): void
589 589
     {
590
-        $statement = $this->cache(__FUNCTION__, function () {
590
+        $statement = $this->cache(__FUNCTION__, function() {
591 591
             $slots = $this->db->slotsEqual(array_keys($this->columns));
592 592
             unset($slots['id']);
593 593
             $slots = implode(', ', $slots);
Please login to merge, or discard this patch.