Passed
Push — dbal ( f02271...d7ee92 )
by Greg
10:14
created
app/DB/UniqueIndex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     /**
33 33
      * @param array<int,string> $columns
34 34
      */
35
-    public function __construct(private readonly array $columns, string|null $name = null)
35
+    public function __construct(private readonly array $columns, string | null $name = null)
36 36
     {
37 37
         parent::__construct(name: $name, columns: $this->columns, isUnique: true);
38 38
     }
Please login to merge, or discard this patch.
app/Webtrees.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
     /**
241 241
      * Run the application.
242 242
      */
243
-    public function run(string $php_sapi): int|ResponseInterface
243
+    public function run(string $php_sapi): int | ResponseInterface
244 244
     {
245 245
         if ($php_sapi === 'cli') {
246 246
             return $this->bootstrap()->cliRequest();
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/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.
app/Census/AbstractCensusColumn.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * Find the father of an individual
67 67
      */
68
-    public function father(Individual $individual): Individual|null
68
+    public function father(Individual $individual): Individual | null
69 69
     {
70 70
         $family = $individual->childFamilies()->first();
71 71
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     /**
80 80
      * Find the mother of an individual
81 81
      */
82
-    public function mother(Individual $individual): Individual|null
82
+    public function mother(Individual $individual): Individual | null
83 83
     {
84 84
         $family = $individual->childFamilies()->first();
85 85
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     /**
94 94
      * Find the current spouse family of an individual
95 95
      */
96
-    public function spouseFamily(Individual $individual): Family|null
96
+    public function spouseFamily(Individual $individual): Family | null
97 97
     {
98 98
         return $individual->spouseFamilies()
99 99
                 // Exclude families that were created after this census date
Please login to merge, or discard this patch.
app/Module/AbstractIndividualListModule.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -304,7 +304,8 @@  discard block
 block discarded – undo
304 304
                     <li class="wt-initials-list-item d-flex">
305 305
                         <?php if ($count > 0) : ?>
306 306
                             <a href="<?= e($this->listUrl($tree, ['alpha' => $letter, 'show_marnm' => $show_marnm, 'tree' => $tree->name()])) ?>" class="wt-initial px-1<?= $letter === $alpha ? ' active' : '' ?> '" title="<?= I18N::number($count) ?>"><?= $this->displaySurnameInitial((string) $letter) ?></a>
307
-                        <?php else : ?>
307
+                        <?php else {
308
+    : ?>
308 309
                             <span class="wt-initial px-1 text-muted"><?= $this->displaySurnameInitial((string) $letter) ?></span>
309 310
 
310 311
                         <?php endif ?>
@@ -359,6 +360,7 @@  discard block
 block discarded – undo
359 360
                 switch ($alpha) {
360 361
                     case '@':
361 362
                         $filter = static fn (string $x): bool => $x === Individual::NOMEN_NESCIO;
363
+}
362 364
                         break;
363 365
                     case ',':
364 366
                         $filter = static fn (string $x): bool => $x === '';
Please login to merge, or discard this patch.
app/Module/ClippingsCartModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         return 6;
131 131
     }
132 132
 
133
-    public function getMenu(Tree $tree): Menu|null
133
+    public function getMenu(Tree $tree): Menu | null
134 134
     {
135 135
         $request = Registry::container()->get(ServerRequestInterface::class);
136 136
         $route   = Validator::attributes($request)->route();
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
         $xrefs = array_map('strval', $xrefs); // PHP converts numeric keys to integers.
354 354
 
355 355
         // Fetch all the records in the cart.
356
-        $records = array_map(static fn (string $xref): GedcomRecord|null => Registry::gedcomRecordFactory()->make($xref, $tree), $xrefs);
356
+        $records = array_map(static fn (string $xref): GedcomRecord | null => Registry::gedcomRecordFactory()->make($xref, $tree), $xrefs);
357 357
 
358 358
         // Some records may have been deleted after they were added to the cart.
359 359
         $records = array_filter($records);
Please login to merge, or discard this patch.
app/Elements/AbstractElement.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 abstract class AbstractElement implements ElementInterface
43 43
 {
44 44
     // HTML attributes for an <input>
45
-    protected const int|false    MAXIMUM_LENGTH = false;
46
-    protected const string|false PATTERN        = false;
45
+    protected const int | false    MAXIMUM_LENGTH = false;
46
+    protected const string | false PATTERN        = false;
47 47
 
48 48
     private const array WHITESPACE_LINE = [
49 49
         "\t"       => ' ',
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param string             $label
79 79
      * @param array<string>|null $subtags
80 80
      */
81
-    public function __construct(string $label, array|null $subtags = null)
81
+    public function __construct(string $label, array | null $subtags = null)
82 82
     {
83 83
         $this->label   = $label;
84 84
         $this->subtags = $subtags ?? static::SUBTAGS;
Please login to merge, or discard this patch.
app/Elements/RestrictionNotice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
  */
49 49
 class RestrictionNotice extends AbstractElement
50 50
 {
51
-    public const string VALUE_NONE    = 'NONE';
51
+    public const string VALUE_NONE = 'NONE';
52 52
     public const string VALUE_PRIVACY      = 'PRIVACY';
53 53
     public const string VALUE_CONFIDENTIAL = 'CONFIDENTIAL';
54 54
     public const string VALUE_LOCKED       = 'LOCKED';
Please login to merge, or discard this patch.