Passed
Branch dev (f56f10)
by Wilmer
04:41 queued 01:34
created
src/TestSupport/TestQueryTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
         $result = (new Query($db))->from('customer')
551 551
             ->select(['name', 'id'])
552 552
             ->orderBy(['id' => SORT_DESC])
553
-            ->indexBy(function ($row) {
553
+            ->indexBy(function($row) {
554 554
                 return $row['id'] * 2;
555 555
             })
556 556
             ->column();
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
         );
815 815
 
816 816
         /* Connection cache */
817
-        $db->cache(function (ConnectionInterface $db) use ($query, $update) {
817
+        $db->cache(function(ConnectionInterface $db) use ($query, $update) {
818 818
             $this->assertEquals(
819 819
                 'user2',
820 820
                 $query->where(['id' => 2])->scalar(),
@@ -829,7 +829,7 @@  discard block
 block discarded – undo
829 829
                 'Query does NOT reflect DB changes when wrapped in connection caching'
830 830
             );
831 831
 
832
-            $db->noCache(function () use ($query) {
832
+            $db->noCache(function() use ($query) {
833 833
                 $this->assertEquals(
834 834
                     'user22',
835 835
                     $query->where(['id' => 2])->scalar(),
@@ -846,7 +846,7 @@  discard block
 block discarded – undo
846 846
 
847 847
         $this->queryCache->setEnable(false);
848 848
 
849
-        $db->cache(function () use ($query, $update) {
849
+        $db->cache(function() use ($query, $update) {
850 850
             $this->assertEquals(
851 851
                 'user22',
852 852
                 $query->where(['id' => 2])->scalar(),
@@ -877,7 +877,7 @@  discard block
 block discarded – undo
877 877
             'When Query has disabled cache, we get actual data'
878 878
         );
879 879
 
880
-        $db->cache(function () use ($query) {
880
+        $db->cache(function() use ($query) {
881 881
             $this->assertEquals('user1', $query->noCache()->where(['id' => 1])->scalar());
882 882
             $this->assertEquals('user11', $query->cache()->where(['id' => 1])->scalar());
883 883
         }, 10);
Please login to merge, or discard this patch.
src/TestSupport/IsOneOfAssert.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function toString(): string
32 32
     {
33
-        $allowedValues = array_map(static function ($value) {
33
+        $allowedValues = array_map(static function($value) {
34 34
             return VarDumper::create($value)->asString();
35 35
         }, $this->allowedValues);
36 36
 
Please login to merge, or discard this patch.
src/Schema/Schema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
      */
490 490
     protected function loadTableTypeMetadata(string $type, string $name): Constraint|array|TableSchema|null
491 491
     {
492
-        return match ($type) {
492
+        return match($type) {
493 493
             self::SCHEMA => $this->loadTableSchema($name),
494 494
             self::PRIMARY_KEY => $this->loadTablePrimaryKey($name),
495 495
             self::UNIQUES => $this->loadTableUniques($name),
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
         string $name,
516 516
         bool $refresh = false
517 517
     ): Constraint|array|null|TableSchema {
518
-        return match ($type) {
518
+        return match($type) {
519 519
             self::SCHEMA => $this->getTableSchema($name, $refresh),
520 520
             self::PRIMARY_KEY => $this->getTablePrimaryKey($name, $refresh),
521 521
             self::UNIQUES => $this->getTableUniques($name, $refresh),
Please login to merge, or discard this patch.