Passed
Push — master ( 4898bc...2803f9 )
by y
01:59
created
src/DB/Record.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
      */
351 351
     public function load($id)
352 352
     {
353
-        $statement = $this->cache(__FUNCTION__, function () {
353
+        $statement = $this->cache(__FUNCTION__, function() {
354 354
             return $this->select()->where('id = ?')->prepare();
355 355
         });
356 356
         if ($id instanceof EntityInterface) {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
      */
378 378
     public function loadAll()
379 379
     {
380
-        return $this->select()->setFetcher(function (Statement $statement) {
380
+        return $this->select()->setFetcher(function(Statement $statement) {
381 381
             yield from $this->fetchEach($statement);
382 382
         });
383 383
     }
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
      */
437 437
     protected function saveInsert(EntityInterface $entity): void
438 438
     {
439
-        $statement = $this->cache(__FUNCTION__, function () {
439
+        $statement = $this->cache(__FUNCTION__, function() {
440 440
             $slots = $this->db->slots(array_keys($this->columns));
441 441
             unset($slots['id']);
442 442
             $columns = implode(',', array_keys($slots));
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
      */
457 457
     protected function saveUpdate(EntityInterface $entity): void
458 458
     {
459
-        $statement = $this->cache(__FUNCTION__, function () {
459
+        $statement = $this->cache(__FUNCTION__, function() {
460 460
             $slots = $this->db->slots(array_keys($this->columns));
461 461
             foreach ($slots as $column => $slot) {
462 462
                 $slots[$column] = "{$column} = {$slot}";
Please login to merge, or discard this patch.