Passed
Push — dbal ( 62ba6c...9e152c )
by Greg
15:02 queued 04:25
created
app/CommonMark/CensusTableStartParser.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
 class CensusTableStartParser implements BlockStartParserInterface
32 32
 {
33
-    public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): BlockStart|null
33
+    public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserState): BlockStart | null
34 34
     {
35 35
         if ($cursor->getLine() === CensusTableExtension::CA_PREFIX) {
36 36
             return BlockStart::of(new CensusTableContinueParser())
Please login to merge, or discard this patch.
app/CommonMark/CensusTableContinueParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      *
67 67
      * @return BlockContinue|null
68 68
      */
69
-    public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): BlockContinue|null
69
+    public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): BlockContinue | null
70 70
     {
71 71
         $line = $cursor->getLine();
72 72
 
Please login to merge, or discard this patch.
app/Family.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
     protected const ROUTE_NAME = FamilyPage::class;
34 34
 
35 35
     // The husband (or first spouse for same-sex couples)
36
-    private Individual|null $husb = null;
36
+    private Individual | null $husb = null;
37 37
 
38 38
     // The wife (or second spouse for same-sex couples)
39
-    private Individual|null $wife = null;
39
+    private Individual | null $wife = null;
40 40
 
41 41
     /**
42 42
      * Create a GedcomRecord object from raw GEDCOM data.
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      *                             empty string for records with pending deletions
48 48
      * @param Tree        $tree
49 49
      */
50
-    public function __construct(string $xref, string $gedcom, string|null $pending, Tree $tree)
50
+    public function __construct(string $xref, string $gedcom, string | null $pending, Tree $tree)
51 51
     {
52 52
         parent::__construct($xref, $gedcom, $pending, $tree);
53 53
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      *
106 106
      * @return Individual|null
107 107
      */
108
-    public function husband(int|null $access_level = null): Individual|null
108
+    public function husband(int | null $access_level = null): Individual | null
109 109
     {
110 110
         if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') {
111 111
             $access_level = Auth::PRIV_HIDE;
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      *
126 126
      * @return Individual|null
127 127
      */
128
-    public function wife(int|null $access_level = null): Individual|null
128
+    public function wife(int | null $access_level = null): Individual | null
129 129
     {
130 130
         if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') {
131 131
             $access_level = Auth::PRIV_HIDE;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      *
167 167
      * @return bool
168 168
      */
169
-    public function canShowName(int|null $access_level = null): bool
169
+    public function canShowName(int | null $access_level = null): bool
170 170
     {
171 171
         // We can always see the name (Husband-name + Wife-name), however,
172 172
         // the name will often be "private + private"
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      *
182 182
      * @return Individual|null
183 183
      */
184
-    public function spouse(Individual $person, int|null $access_level = null): Individual|null
184
+    public function spouse(Individual $person, int | null $access_level = null): Individual | null
185 185
     {
186 186
         if ($person === $this->wife) {
187 187
             return $this->husband($access_level);
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      *
198 198
      * @return Collection<int,Individual>
199 199
      */
200
-    public function spouses(int|null $access_level = null): Collection
200
+    public function spouses(int | null $access_level = null): Collection
201 201
     {
202 202
         $spouses = new Collection([
203 203
             $this->husband($access_level),
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      *
215 215
      * @return Collection<int,Individual>
216 216
      */
217
-    public function children(int|null $access_level = null): Collection
217
+    public function children(int | null $access_level = null): Collection
218 218
     {
219 219
         $access_level ??= Auth::accessLevel($this->tree);
220 220
 
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     /**
255 255
      * get the marriage event
256 256
      */
257
-    public function getMarriage(): Fact|null
257
+    public function getMarriage(): Fact | null
258 258
     {
259 259
         return $this->facts(['MARR'])->first();
260 260
     }
Please login to merge, or discard this patch.
app/Individual.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
     protected const ROUTE_NAME = IndividualPage::class;
46 46
 
47 47
     /** Used in some lists to keep track of this individual’s generation in that list */
48
-    public int|null $generation = null;
48
+    public int | null $generation = null;
49 49
 
50
-    private Date|null $estimated_birth_date = null;
50
+    private Date | null $estimated_birth_date = null;
51 51
 
52
-    private Date|null $estimated_death_date = null;
52
+    private Date | null $estimated_death_date = null;
53 53
 
54 54
     /**
55 55
      * A closure which will compare individuals by birth date.
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @return bool
80 80
      */
81
-    public function canShowName(int|null $access_level = null): bool
81
+    public function canShowName(int | null $access_level = null): bool
82 82
     {
83 83
         $access_level ??= Auth::accessLevel($this->tree);
84 84
 
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
     /**
347 347
      * Find the highlighted media object for an individual
348 348
      */
349
-    public function findHighlightedMediaFile(): MediaFile|null
349
+    public function findHighlightedMediaFile(): MediaFile | null
350 350
     {
351 351
         $fact = $this->facts(['OBJE'])
352 352
             ->first(static function (Fact $fact): bool {
@@ -697,7 +697,7 @@  discard block
 block discarded – undo
697 697
      *
698 698
      * @return Collection<int,Family>
699 699
      */
700
-    public function spouseFamilies(int|null $access_level = null): Collection
700
+    public function spouseFamilies(int | null $access_level = null): Collection
701 701
     {
702 702
         $access_level ??= Auth::accessLevel($this->tree);
703 703
 
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
      *
725 725
      * @return Individual|null
726 726
      */
727
-    public function getCurrentSpouse(): Individual|null
727
+    public function getCurrentSpouse(): Individual | null
728 728
     {
729 729
         $family = $this->spouseFamilies()->last();
730 730
 
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
      *
764 764
      * @return Collection<int,Family>
765 765
      */
766
-    public function childFamilies(int|null $access_level = null): Collection
766
+    public function childFamilies(int | null $access_level = null): Collection
767 767
     {
768 768
         $access_level ??= Auth::accessLevel($this->tree);
769 769
 
Please login to merge, or discard this patch.
app/GedcomFilters/GedcomEncodingFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
 {
35 35
     private string $data = '';
36 36
 
37
-    private EncodingInterface|null $src_encoding = null;
37
+    private EncodingInterface | null $src_encoding = null;
38 38
 
39
-    private EncodingInterface|null $dst_encoding = null;
39
+    private EncodingInterface | null $dst_encoding = null;
40 40
 
41 41
     /**
42 42
      * Initialization
Please login to merge, or discard this patch.
app/Report/ReportParserGenerate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1899,7 +1899,7 @@
 block discarded – undo
1899 1899
                             ->groupBy(['xref']);
1900 1900
                     })
1901 1901
                     ->get()
1902
-                    ->map(fn (object $row): GedcomRecord|null => Registry::gedcomRecordFactory()->make($row->xref, $this->tree, $row->new_gedcom ?: $row->old_gedcom))
1902
+                    ->map(fn (object $row): GedcomRecord | null => Registry::gedcomRecordFactory()->make($row->xref, $this->tree, $row->new_gedcom ?: $row->old_gedcom))
1903 1903
                     ->filter()
1904 1904
                     ->all();
1905 1905
                 break;
Please login to merge, or discard this patch.
app/Module/PedigreeMapModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
      *
142 142
      * @return Menu|null
143 143
      */
144
-    public function chartBoxMenu(Individual $individual): Menu|null
144
+    public function chartBoxMenu(Individual $individual): Menu | null
145 145
     {
146 146
         return $this->chartMenu($individual);
147 147
     }
Please login to merge, or discard this patch.
app/Module/FanChartModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     /**
105 105
      * Return a menu item for this chart - for use in individual boxes.
106 106
      */
107
-    public function chartBoxMenu(Individual $individual): Menu|null
107
+    public function chartBoxMenu(Individual $individual): Menu | null
108 108
     {
109 109
         return $this->chartMenu($individual);
110 110
     }
Please login to merge, or discard this patch.
app/Module/NotesTabModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     use ModuleTabTrait;
34 34
 
35 35
     /** @var Collection<array-key,Fact>|null  */
36
-    private Collection|null $facts = null;
36
+    private Collection | null $facts = null;
37 37
 
38 38
     private ClipboardService $clipboard_service;
39 39
 
Please login to merge, or discard this patch.