Passed
Push — dbal ( 545eb7...a65111 )
by Greg
13:50 queued 06:40
created
app/Module/ModuleDataFixTrait.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      *
156 156
      * @return Collection<int,string>|null
157 157
      */
158
-    protected function familiesToFix(Tree $tree, array $params): Collection|null
158
+    protected function familiesToFix(Tree $tree, array $params): Collection | null
159 159
     {
160 160
         return null;
161 161
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      *
187 187
      * @return Collection<int,string>|null
188 188
      */
189
-    protected function individualsToFix(Tree $tree, array $params): Collection|null
189
+    protected function individualsToFix(Tree $tree, array $params): Collection | null
190 190
     {
191 191
         return null;
192 192
     }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      *
218 218
      * @return Collection<int,string>|null
219 219
      */
220
-    protected function locationsToFix(Tree $tree, array $params): Collection|null
220
+    protected function locationsToFix(Tree $tree, array $params): Collection | null
221 221
     {
222 222
         return null;
223 223
     }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      *
250 250
      * @return Collection<int,string>|null
251 251
      */
252
-    protected function mediaToFix(Tree $tree, array $params): Collection|null
252
+    protected function mediaToFix(Tree $tree, array $params): Collection | null
253 253
     {
254 254
         return null;
255 255
     }
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      *
281 281
      * @return Collection<int,string>|null
282 282
      */
283
-    protected function notesToFix(Tree $tree, array $params): Collection|null
283
+    protected function notesToFix(Tree $tree, array $params): Collection | null
284 284
     {
285 285
         return null;
286 286
     }
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
      *
313 313
      * @return Collection<int,string>|null
314 314
      */
315
-    protected function repositoriesToFix(Tree $tree, array $params): Collection|null
315
+    protected function repositoriesToFix(Tree $tree, array $params): Collection | null
316 316
     {
317 317
         return null;
318 318
     }
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
      *
345 345
      * @return Collection<int,string>|null
346 346
      */
347
-    protected function sourcesToFix(Tree $tree, array $params): Collection|null
347
+    protected function sourcesToFix(Tree $tree, array $params): Collection | null
348 348
     {
349 349
         return null;
350 350
     }
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
      *
376 376
      * @return Collection<int,string>|null
377 377
      */
378
-    protected function submittersToFix(Tree $tree, array $params): Collection|null
378
+    protected function submittersToFix(Tree $tree, array $params): Collection | null
379 379
     {
380 380
         return null;
381 381
     }
Please login to merge, or discard this patch.
app/Date.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public string $qual2 = '';
46 46
 
47 47
     // Optional second date
48
-    private AbstractCalendarDate|null $date2 = null;
48
+    private AbstractCalendarDate | null $date2 = null;
49 49
 
50 50
     // Optional text, as included with an INTerpreted date
51 51
     private string $text = '';
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @return string
100 100
      */
101
-    public function display(Tree|null $tree = null, string|null $date_format = null, bool $convert_calendars = false): string
101
+    public function display(Tree | null $tree = null, string | null $date_format = null, bool $convert_calendars = false): string
102 102
     {
103 103
         if ($tree instanceof Tree) {
104 104
             $CALENDAR_FORMAT = $tree->getPreference('CALENDAR_FORMAT');
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     public function addYears(int $years, string $qualifier = ''): Date
304 304
     {
305 305
         $tmp               = clone $this;
306
-        $tmp->date1->year  += $years;
306
+        $tmp->date1->year += $years;
307 307
         $tmp->date1->month = 0;
308 308
         $tmp->date1->day   = 0;
309 309
         $tmp->date1->setJdFromYmd();
Please login to merge, or discard this patch.
app/Factories/SourceFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Create a individual.
40 40
      */
41
-    public function make(string $xref, Tree $tree, string|null $gedcom = null): Source|null
41
+    public function make(string $xref, Tree $tree, string | null $gedcom = null): Source | null
42 42
     {
43 43
         return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) {
44 44
             $gedcom ??= $this->gedcom($xref, $tree);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return Source
79 79
      */
80
-    public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Source
80
+    public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): Source
81 81
     {
82 82
         return new Source($xref, $gedcom, $pending, $tree);
83 83
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return string|null
92 92
      */
93
-    protected function gedcom(string $xref, Tree $tree): string|null
93
+    protected function gedcom(string $xref, Tree $tree): string | null
94 94
     {
95 95
         return DB::table('sources')
96 96
             ->where('s_id', '=', $xref)
Please login to merge, or discard this patch.
app/Factories/SubmitterFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Create a submitter.
40 40
      */
41
-    public function make(string $xref, Tree $tree, string|null $gedcom = null): Submitter|null
41
+    public function make(string $xref, Tree $tree, string | null $gedcom = null): Submitter | null
42 42
     {
43 43
         return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) {
44 44
             $gedcom ??= $this->gedcom($xref, $tree);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return Submitter
79 79
      */
80
-    public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Submitter
80
+    public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): Submitter
81 81
     {
82 82
         return new Submitter($xref, $gedcom, $pending, $tree);
83 83
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return string|null
92 92
      */
93
-    protected function gedcom(string $xref, Tree $tree): string|null
93
+    protected function gedcom(string $xref, Tree $tree): string | null
94 94
     {
95 95
         return DB::table('other')
96 96
             ->where('o_id', '=', $xref)
Please login to merge, or discard this patch.
app/Factories/IndividualFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @return Individual|null
46 46
      */
47
-    public function make(string $xref, Tree $tree, string|null $gedcom = null): Individual|null
47
+    public function make(string $xref, Tree $tree, string | null $gedcom = null): Individual | null
48 48
     {
49 49
         return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) {
50 50
             $gedcom ??= $this->gedcom($xref, $tree);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      *
83 83
      * @return Individual
84 84
      */
85
-    public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Individual
85
+    public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): Individual
86 86
     {
87 87
         return new Individual($xref, $gedcom, $pending, $tree);
88 88
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @return string|null
97 97
      */
98
-    protected function gedcom(string $xref, Tree $tree): string|null
98
+    protected function gedcom(string $xref, Tree $tree): string | null
99 99
     {
100 100
         return DB::table('individuals')
101 101
             ->where('i_id', '=', $xref)
Please login to merge, or discard this patch.
app/Factories/MediaFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Create a individual.
40 40
      */
41
-    public function make(string $xref, Tree $tree, string|null $gedcom = null): Media|null
41
+    public function make(string $xref, Tree $tree, string | null $gedcom = null): Media | null
42 42
     {
43 43
         return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) {
44 44
             $gedcom ??= $this->gedcom($xref, $tree);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return Media
79 79
      */
80
-    public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Media
80
+    public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): Media
81 81
     {
82 82
         return new Media($xref, $gedcom, $pending, $tree);
83 83
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return string|null
92 92
      */
93
-    protected function gedcom(string $xref, Tree $tree): string|null
93
+    protected function gedcom(string $xref, Tree $tree): string | null
94 94
     {
95 95
         return DB::table('media')
96 96
             ->where('m_id', '=', $xref)
Please login to merge, or discard this patch.
app/Factories/FamilyFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @return Family|null
47 47
      */
48
-    public function make(string $xref, Tree $tree, string|null $gedcom = null): Family|null
48
+    public function make(string $xref, Tree $tree, string | null $gedcom = null): Family | null
49 49
     {
50 50
         return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) {
51 51
             $gedcom ??= $this->gedcom($xref, $tree);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      *
93 93
      * @return Family
94 94
      */
95
-    public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Family
95
+    public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): Family
96 96
     {
97 97
         return new Family($xref, $gedcom, $pending, $tree);
98 98
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      *
106 106
      * @return string|null
107 107
      */
108
-    protected function gedcom(string $xref, Tree $tree): string|null
108
+    protected function gedcom(string $xref, Tree $tree): string | null
109 109
     {
110 110
         return DB::table('families')
111 111
             ->where('f_id', '=', $xref)
Please login to merge, or discard this patch.
app/Factories/HeaderFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Create a header.
40 40
      */
41
-    public function make(string $xref, Tree $tree, string|null $gedcom = null): Header|null
41
+    public function make(string $xref, Tree $tree, string | null $gedcom = null): Header | null
42 42
     {
43 43
         return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) {
44 44
             $gedcom ??= $this->gedcom($xref, $tree);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return Header
79 79
      */
80
-    public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Header
80
+    public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): Header
81 81
     {
82 82
         return new Header($xref, $gedcom, $pending, $tree);
83 83
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return string|null
92 92
      */
93
-    protected function gedcom(string $xref, Tree $tree): string|null
93
+    protected function gedcom(string $xref, Tree $tree): string | null
94 94
     {
95 95
         return DB::table('other')
96 96
             ->where('o_id', '=', $xref)
Please login to merge, or discard this patch.
app/Factories/RepositoryFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * Create a repository.
41 41
      */
42
-    public function make(string $xref, Tree $tree, string|null $gedcom = null): Repository|null
42
+    public function make(string $xref, Tree $tree, string | null $gedcom = null): Repository | null
43 43
     {
44 44
         return Registry::cache()->array()->remember(self::class . $xref . '@' . $tree->id(), function () use ($xref, $tree, $gedcom) {
45 45
             $gedcom ??= $this->gedcom($xref, $tree);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *
84 84
      * @return Repository
85 85
      */
86
-    public function new(string $xref, string $gedcom, string|null $pending, Tree $tree): Repository
86
+    public function new(string $xref, string $gedcom, string | null $pending, Tree $tree): Repository
87 87
     {
88 88
         return new Repository($xref, $gedcom, $pending, $tree);
89 89
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @return string|null
98 98
      */
99
-    protected function gedcom(string $xref, Tree $tree): string|null
99
+    protected function gedcom(string $xref, Tree $tree): string | null
100 100
     {
101 101
         return DB::table('other')
102 102
             ->where('o_id', '=', $xref)
Please login to merge, or discard this patch.