Passed
Push — dbal ( 004b3e...950c73 )
by Greg
33:52 queued 19:34
created
app/DB/Table.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
     /** @var array<int,ForeignKey> */
46 46
     private array $foreign_keys;
47 47
 
48
-    public function __construct(private readonly string $name, Column|Index|UniqueIndex|ForeignKey|PrimaryKey ...$components)
48
+    public function __construct(private readonly string $name, Column | Index | UniqueIndex | ForeignKey | PrimaryKey ...$components)
49 49
     {
50
-        $column_filter       = static fn (Column|Index|UniqueIndex|ForeignKey|PrimaryKey $component): bool => $component instanceof Column;
51
-        $foreign_key_filter  = static fn (Column|Index|UniqueIndex|ForeignKey|PrimaryKey $component): bool => $component instanceof ForeignKey;
52
-        $index_filter        = static fn (Column|Index|UniqueIndex|ForeignKey|PrimaryKey $component): bool => $component instanceof Index;
53
-        $primary_key_filter  = static fn (Column|Index|UniqueIndex|ForeignKey|PrimaryKey $component): bool => $component instanceof PrimaryKey;
54
-        $unique_index_filter = static fn (Column|Index|UniqueIndex|ForeignKey|PrimaryKey $component): bool => $component instanceof UniqueIndex;
50
+        $column_filter       = static fn (Column | Index | UniqueIndex | ForeignKey | PrimaryKey $component): bool => $component instanceof Column;
51
+        $foreign_key_filter  = static fn (Column | Index | UniqueIndex | ForeignKey | PrimaryKey $component): bool => $component instanceof ForeignKey;
52
+        $index_filter        = static fn (Column | Index | UniqueIndex | ForeignKey | PrimaryKey $component): bool => $component instanceof Index;
53
+        $primary_key_filter  = static fn (Column | Index | UniqueIndex | ForeignKey | PrimaryKey $component): bool => $component instanceof PrimaryKey;
54
+        $unique_index_filter = static fn (Column | Index | UniqueIndex | ForeignKey | PrimaryKey $component): bool => $component instanceof UniqueIndex;
55 55
 
56 56
         $this->columns        = array_values(array: array_filter(array: $components, callback: $column_filter));
57 57
         $this->foreign_keys   = array_values(array: array_filter(array: $components, callback: $foreign_key_filter));
@@ -73,21 +73,21 @@  discard block
 block discarded – undo
73 73
         );
74 74
     }
75 75
 
76
-    private function namedIndex(Index &$index, int|string $n): void
76
+    private function namedIndex(Index & $index, int | string $n): void
77 77
     {
78 78
         $n     = 1 + (int) $n;
79 79
         $name  = DB::prefix($this->name . '_ix' . $n);
80 80
         $index = $index->name($name);
81 81
     }
82 82
 
83
-    private function namedUniqueIndex(UniqueIndex &$unique_index, int|string $n): void
83
+    private function namedUniqueIndex(UniqueIndex & $unique_index, int | string $n): void
84 84
     {
85 85
         $n            = 1 + (int) $n;
86 86
         $name         = DB::prefix($this->name . '_ux' . $n);
87 87
         $unique_index = $unique_index->name($name);
88 88
     }
89 89
 
90
-    private function namedForeignKey(ForeignKey &$foreign_key, int|string $n): void
90
+    private function namedForeignKey(ForeignKey & $foreign_key, int | string $n): void
91 91
     {
92 92
         $n           = 1 + (int) $n;
93 93
         $name        = DB::prefix($this->name . '_fk' . $n);
Please login to merge, or discard this patch.
resources/lang/en-US/messages.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -3,19 +3,19 @@
 block discarded – undo
3 3
 declare(strict_types=1);
4 4
 
5 5
 return array (
6
-  '%H:%i:%s' => '%g:%i:%s %a',
7
-  '%j %F %Y' => '%F %j, %Y',
8
-  'Asunción, Paraguay' => 'Asuncion, Paraguay',
9
-  'Bogotá, Colombia' => 'Bogota, Colombia',
10
-  'Ciudad Juárez, Mexico' => 'Ciudad Juarez, Mexico',
11
-  'Colonia Juárez, Mexico' => 'Colonia Juarez, Mexico',
12
-  'Curaçao' => 'Curacao',
13
-  'Córdoba, Argentina' => 'Cordoba, Argentina',
14
-  'Côte d’Ivoire' => 'Cote d’Ivoire',
15
-  'Réunion' => 'Reunion',
16
-  'Saint Barthélemy' => 'Saint Barthelemy',
17
-  'San José, Costa Rica' => 'San Jose, Costa Rica',
18
-  'São Paulo, Brazil' => 'Sao Paulo, Brazil',
19
-  'Tuxtla Gutiérrez, Mexico' => 'Tuxtla Gutierrez, Mexico',
20
-  'Åland Islands' => 'Aland Islands',
6
+    '%H:%i:%s' => '%g:%i:%s %a',
7
+    '%j %F %Y' => '%F %j, %Y',
8
+    'Asunción, Paraguay' => 'Asuncion, Paraguay',
9
+    'Bogotá, Colombia' => 'Bogota, Colombia',
10
+    'Ciudad Juárez, Mexico' => 'Ciudad Juarez, Mexico',
11
+    'Colonia Juárez, Mexico' => 'Colonia Juarez, Mexico',
12
+    'Curaçao' => 'Curacao',
13
+    'Córdoba, Argentina' => 'Cordoba, Argentina',
14
+    'Côte d’Ivoire' => 'Cote d’Ivoire',
15
+    'Réunion' => 'Reunion',
16
+    'Saint Barthélemy' => 'Saint Barthelemy',
17
+    'San José, Costa Rica' => 'San Jose, Costa Rica',
18
+    'São Paulo, Brazil' => 'Sao Paulo, Brazil',
19
+    'Tuxtla Gutiérrez, Mexico' => 'Tuxtla Gutierrez, Mexico',
20
+    'Åland Islands' => 'Aland Islands',
21 21
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 declare(strict_types=1);
4 4
 
5
-return array (
5
+return array(
6 6
   '%H:%i:%s' => '%g:%i:%s %a',
7 7
   '%j %F %Y' => '%F %j, %Y',
8 8
   'Asunción, Paraguay' => 'Asuncion, Paraguay',
Please login to merge, or discard this patch.
app/Arr.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      *
75 75
      * @return TValue|null
76 76
      */
77
-    public function first(Closure|null $closure = null): mixed
77
+    public function first(Closure | null $closure = null): mixed
78 78
     {
79 79
         foreach ($this->getArrayCopy() as $value) {
80 80
             if ($closure === null || $closure($value)) {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return TValue|null
92 92
      */
93
-    public function last(Closure|null $closure = null): mixed
93
+    public function last(Closure | null $closure = null): mixed
94 94
     {
95 95
         return $this->reverse()->first(closure: $closure);
96 96
     }
Please login to merge, or discard this patch.