Passed
Push — dbal ( 7b803f...ab892e )
by Greg
21:18 queued 14:34
created
app/Family.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      *
108 108
      * @return Individual|null
109 109
      */
110
-    public function husband(int|null $access_level = null): ?Individual
110
+    public function husband(int | null $access_level = null): ?Individual
111 111
     {
112 112
         if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') {
113 113
             $access_level = Auth::PRIV_HIDE;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      *
128 128
      * @return Individual|null
129 129
      */
130
-    public function wife(int|null $access_level = null): ?Individual
130
+    public function wife(int | null $access_level = null): ?Individual
131 131
     {
132 132
         if ($this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS') === '1') {
133 133
             $access_level = Auth::PRIV_HIDE;
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      *
169 169
      * @return bool
170 170
      */
171
-    public function canShowName(int|null $access_level = null): bool
171
+    public function canShowName(int | null $access_level = null): bool
172 172
     {
173 173
         // We can always see the name (Husband-name + Wife-name), however,
174 174
         // the name will often be "private + private"
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      *
184 184
      * @return Individual|null
185 185
      */
186
-    public function spouse(Individual $person, int|null $access_level = null): ?Individual
186
+    public function spouse(Individual $person, int | null $access_level = null): ?Individual
187 187
     {
188 188
         if ($person === $this->wife) {
189 189
             return $this->husband($access_level);
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      *
200 200
      * @return Collection<int,Individual>
201 201
      */
202
-    public function spouses(int|null $access_level = null): Collection
202
+    public function spouses(int | null $access_level = null): Collection
203 203
     {
204 204
         $spouses = new Collection([
205 205
             $this->husband($access_level),
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      *
217 217
      * @return Collection<int,Individual>
218 218
      */
219
-    public function children(int|null $access_level = null): Collection
219
+    public function children(int | null $access_level = null): Collection
220 220
     {
221 221
         $access_level ??= Auth::accessLevel($this->tree);
222 222
 
Please login to merge, or discard this patch.
app/Elements/AbstractElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 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/NamePersonal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
      * @param string             $label
90 90
      * @param array<string>|null $subtags
91 91
      */
92
-    public function __construct(string $label, array|null $subtags = null)
92
+    public function __construct(string $label, array | null $subtags = null)
93 93
     {
94 94
         if ($subtags === null && in_array(I18N::languageTag(), static::SURNAME_FIRST_LANGUAGES, true)) {
95 95
             $subtags = static::SUBTAGS_SURNAME_FIRST;
Please login to merge, or discard this patch.
app/Individual.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      *
83 83
      * @return bool
84 84
      */
85
-    public function canShowName(int|null $access_level = null): bool
85
+    public function canShowName(int | null $access_level = null): bool
86 86
     {
87 87
         $access_level ??= Auth::accessLevel($this->tree);
88 88
 
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
      *
704 704
      * @return Collection<int,Family>
705 705
      */
706
-    public function spouseFamilies(int|null $access_level = null): Collection
706
+    public function spouseFamilies(int | null $access_level = null): Collection
707 707
     {
708 708
         $access_level ??= Auth::accessLevel($this->tree);
709 709
 
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
      *
770 770
      * @return Collection<int,Family>
771 771
      */
772
-    public function childFamilies(int|null $access_level = null): Collection
772
+    public function childFamilies(int | null $access_level = null): Collection
773 773
     {
774 774
         $access_level ??= Auth::accessLevel($this->tree);
775 775
 
Please login to merge, or discard this patch.
app/Http/Exceptions/HttpAccessDeniedException.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
      * @param string|null $message
32 32
      */
33
-    public function __construct(string|null $message = null)
33
+    public function __construct(string | null $message = null)
34 34
     {
35 35
         $message ??= I18N::translate('You do not have permission to view this page.');
36 36
 
Please login to merge, or discard this patch.
app/Http/Exceptions/HttpTooManyRequestsException.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
      * @param string|null $message
32 32
      */
33
-    public function __construct(string|null $message = null)
33
+    public function __construct(string | null $message = null)
34 34
     {
35 35
         $message ??= I18N::translate('Too many requests. Try again later.');
36 36
 
Please login to merge, or discard this patch.
app/Http/Exceptions/HttpGoneException.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
      * @param string|null $message
32 32
      */
33
-    public function __construct(string|null $message = null)
33
+    public function __construct(string | null $message = null)
34 34
     {
35 35
         $message ??= I18N::translate('This page has been deleted.');
36 36
 
Please login to merge, or discard this patch.
app/Http/Exceptions/HttpBadRequestException.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
      * @param string|null $message
32 32
      */
33
-    public function __construct(string|null $message = null)
33
+    public function __construct(string | null $message = null)
34 34
     {
35 35
         $message ??= I18N::translate('The server could not understand this request.');
36 36
 
Please login to merge, or discard this patch.
app/Date.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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.