Passed
Pull Request — main (#5166)
by Bernard
07:26
created
app/Factories/ResponseFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      *
86 86
      * @return ResponseInterface
87 87
      */
88
-    public function redirectUrl(UriInterface|string $url, int $code = StatusCodeInterface::STATUS_FOUND): ResponseInterface
88
+    public function redirectUrl(UriInterface | string $url, int $code = StatusCodeInterface::STATUS_FOUND): ResponseInterface
89 89
     {
90 90
         return $this->response_factory
91 91
             ->createResponse($code)
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      *
100 100
      * @return ResponseInterface
101 101
      */
102
-    public function response(string|array|object $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface
102
+    public function response(string | array | object $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface
103 103
     {
104 104
         if ($content === '' && $code === StatusCodeInterface::STATUS_OK) {
105 105
             $code = StatusCodeInterface::STATUS_NO_CONTENT;
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         if (is_string($content)) {
109 109
             $headers['content-type'] ??= 'text/html; charset=UTF-8';
110 110
         } else {
111
-            $content                 = json_encode($content, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
111
+            $content = json_encode($content, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE);
112 112
             $headers['content-type'] ??= 'application/json';
113 113
         }
114 114
 
Please login to merge, or discard this patch.
app/Services/GedcomEditService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 }
158 158
             }
159 159
 
160
-            if ($values[$i] !== '' || $children_with_values  && !$element instanceof AbstractXrefElement) {
160
+            if ($values[$i] !== '' || $children_with_values && !$element instanceof AbstractXrefElement) {
161 161
                 if ($values[$i] === '') {
162 162
                     $gedcom_lines[] = $levels[$i] . ' ' . $tags[$i];
163 163
                 } else {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      *
232 232
      * @return array<string>
233 233
      */
234
-    public function factsToAdd(Family|Individual $record, bool $include_hidden): array
234
+    public function factsToAdd(Family | Individual $record, bool $include_hidden): array
235 235
     {
236 236
         $subtags = Registry::elementFactory()->make($record->tag())->subtags();
237 237
 
Please login to merge, or discard this patch.
app/Helpers/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
  *
115 115
  * @return ResponseInterface
116 116
  */
117
-function response(array|object|string $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface
117
+function response(array | object | string $content = '', int $code = StatusCodeInterface::STATUS_OK, array $headers = []): ResponseInterface
118 118
 {
119 119
     return Registry::responseFactory()->response($content, $code, $headers);
120 120
 }
Please login to merge, or discard this patch.
app/Services/UpgradeService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@
 block discarded – undo
301 301
     {
302 302
         $latest_version = $this->fetchLatestVersion(false);
303 303
 
304
-        [, , $url] = explode('|', $latest_version . '||');
304
+        [,, $url] = explode('|', $latest_version . '||');
305 305
 
306 306
         return $url;
307 307
     }
Please login to merge, or discard this patch.
app/Factories/MarkdownFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      *
84 84
      * @return string
85 85
      */
86
-    public function autolink(string $markdown, Tree|null $tree = null): string
86
+    public function autolink(string $markdown, Tree | null $tree = null): string
87 87
     {
88 88
         // Create a minimal commonmark processor - just add support for auto-links.
89 89
         $environment = new Environment(static::CONFIG_AUTOLINK);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      *
118 118
      * @return string
119 119
      */
120
-    public function markdown(string $markdown, Tree|null $tree = null): string
120
+    public function markdown(string $markdown, Tree | null $tree = null): string
121 121
     {
122 122
         $environment = new Environment(static::CONFIG_MARKDOWN);
123 123
         $environment->addExtension(new CommonMarkCoreExtension());
Please login to merge, or discard this patch.
app/Contracts/MarkdownFactoryInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return string
34 34
      */
35
-    public function autolink(string $markdown, Tree|null $tree = null): string;
35
+    public function autolink(string $markdown, Tree | null $tree = null): string;
36 36
 
37 37
     /**
38 38
      * @param string    $markdown
@@ -40,5 +40,5 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @return string
42 42
      */
43
-    public function markdown(string $markdown, Tree|null $tree = null): string;
43
+    public function markdown(string $markdown, Tree | null $tree = null): string;
44 44
 }
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/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.