Passed
Push — dbal ( 63f901...af27f8 )
by Greg
20:19 queued 09:42
created
app/Cli/Commands/UserList.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,11 +72,11 @@
 block discarded – undo
72 72
                 $user->realName(),
73 73
                 $user->email(),
74 74
                 Auth::isAdmin(user: $user) ? 'Yes' : 'No',
75
-                $user->getPreference(setting_name: UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'Yes' : 'No',
76
-                $user->getPreference(setting_name: UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'Yes' : 'No',
77
-                $user->getPreference(setting_name: UserInterface::PREF_LANGUAGE),
78
-                $user->getPreference(setting_name: UserInterface::PREF_TIME_ZONE),
79
-                $user->getPreference(setting_name: UserInterface::PREF_CONTACT_METHOD),
75
+                $user->getPreference(setting_name : UserInterface::PREF_IS_ACCOUNT_APPROVED) ? 'Yes' : 'No',
76
+                $user->getPreference(setting_name : UserInterface::PREF_IS_EMAIL_VERIFIED) ? 'Yes' : 'No',
77
+                $user->getPreference(setting_name : UserInterface::PREF_LANGUAGE),
78
+                $user->getPreference(setting_name : UserInterface::PREF_TIME_ZONE),
79
+                $user->getPreference(setting_name : UserInterface::PREF_CONTACT_METHOD),
80 80
                 $registered,
81 81
                 $last_login,
82 82
             ]);
Please login to merge, or discard this patch.
app/Factories/ImageFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 $mime_type = Mime::DEFAULT_TYPE;
89 89
             }
90 90
 
91
-            $filename = $download ? addcslashes(string: basename(path: $path), characters: '"') : '';
91
+            $filename = $download ? addcslashes(string : basename(path : $path), characters : '"') : '';
92 92
 
93 93
             return $this->imageResponse(data: $filesystem->read(location: $path), mime_type: $mime_type, filename: $filename);
94 94
         } catch (UnableToReadFile | FilesystemException $ex) {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             $image     = $this->imageManager()->read(input: $filesystem->readStream($path));
148 148
             $watermark = $this->createWatermark(width: $image->width(), height: $image->height(), media_file: $media_file);
149 149
             $image     = $this->addWatermark(image: $image, watermark: $watermark);
150
-            $filename  = $download ? basename(path: $path) : '';
150
+            $filename  = $download ? basename(path : $path) : '';
151 151
             $quality   = $this->extractImageQuality(image: $image, default: static::GD_DEFAULT_IMAGE_QUALITY);
152 152
             $data      = $image->encodeByMediaType(type: $mime_type, quality:  $quality)->toString();
153 153
 
Please login to merge, or discard this patch.
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.