Passed
Push — master ( 3e0baa...bd73b6 )
by y
02:44
created
src/DB/Record.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -70,19 +70,19 @@  discard block
 block discarded – undo
70 70
      */
71 71
     protected const SCALARS = [
72 72
         'bool' => 'bool',
73
-        'boolean' => 'bool',    // gettype()
74
-        'double' => 'float',    // gettype()
75
-        'false' => 'bool',      // @var
73
+        'boolean' => 'bool', // gettype()
74
+        'double' => 'float', // gettype()
75
+        'false' => 'bool', // @var
76 76
         'float' => 'float',
77 77
         'int' => 'int',
78
-        'integer' => 'int',     // gettype()
79
-        'NULL' => 'string',     // gettype()
80
-        'number' => 'string',   // @var
81
-        'scalar' => 'string',   // @var
78
+        'integer' => 'int', // gettype()
79
+        'NULL' => 'string', // gettype()
80
+        'number' => 'string', // @var
81
+        'scalar' => 'string', // @var
82 82
         'string' => 'string',
83
-        'String' => 'String',   // @var
84
-        'STRING' => 'STRING',   // @var
85
-        'true' => 'bool',       // @var
83
+        'String' => 'String', // @var
84
+        'STRING' => 'STRING', // @var
85
+        'true' => 'bool', // @var
86 86
     ];
87 87
 
88 88
     /**
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
      */
494 494
     public function load(int $id)
495 495
     {
496
-        $statement = $this->cache(__FUNCTION__, function () {
496
+        $statement = $this->cache(__FUNCTION__, function() {
497 497
             return $this->select()->where('id = ?')->prepare();
498 498
         });
499 499
         $values = $statement([$id])->fetch();
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
      */
515 515
     public function loadAll()
516 516
     {
517
-        return $this->select()->setFetcher(function (Statement $statement) {
517
+        return $this->select()->setFetcher(function(Statement $statement) {
518 518
             yield from $this->fetchEach($statement);
519 519
         });
520 520
     }
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
      */
574 574
     protected function saveInsert(EntityInterface $entity): void
575 575
     {
576
-        $statement = $this->cache(__FUNCTION__, function () {
576
+        $statement = $this->cache(__FUNCTION__, function() {
577 577
             $slots = $this->db->slots(array_keys($this->columns));
578 578
             unset($slots['id']);
579 579
             $columns = implode(',', array_keys($slots));
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
      */
594 594
     protected function saveUpdate(EntityInterface $entity): void
595 595
     {
596
-        $statement = $this->cache(__FUNCTION__, function () {
596
+        $statement = $this->cache(__FUNCTION__, function() {
597 597
             $slots = $this->db->slotsEqual(array_keys($this->columns));
598 598
             unset($slots['id']);
599 599
             $slots = implode(', ', $slots);
Please login to merge, or discard this patch.