Passed
Pull Request — main (#5055)
by
unknown
07:23
created
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/SessionDatabaseHandler.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
             // Only update session once a minute to reduce contention on the session table.
116 116
             if ($now->subtractMinutes(1)->timestamp() > Registry::timestampFactory()->fromString($this->row->session_time)->timestamp()) {
117
-                $updates['session_time'] =  $now->toDateTimeString();
117
+                $updates['session_time'] = $now->toDateTimeString();
118 118
             }
119 119
 
120 120
             if ($updates !== []) {
Please login to merge, or discard this patch.
app/Report/ReportParserGenerate.php 3 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1138,7 +1138,7 @@
 block discarded – undo
1138 1138
                         $value = str_replace("\n", "<br>", $value);
1139 1139
                         //$value = strip_tags(Registry::markdownFactory()->autolink($value, $this->tree), ['br']);
1140 1140
                     }
1141
-                    $value = strtr($value, [MarkdownFactory::BREAK => ' ']);
1141
+                    $value = strtr($value, [MarkdownFactory::break => ' ']);
1142 1142
                 }
1143 1143
 
1144 1144
                 if (isset($attrs['lcfirst'])) {
Please login to merge, or discard this patch.
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1028,10 +1028,12 @@  discard block
 block discarded – undo
1028 1028
                 $tmp = $record->getAllNames();
1029 1029
                 $name = $tmp[count($tmp) - 1]['full'];
1030 1030
                 $ix1 = strpos($name, '<span class="starredname">');
1031
-                if ($ix1 !== false) {   // '«' and '»' mark text for underlining
1031
+                if ($ix1 !== false) {
1032
+// '«' and '»' mark text for underlining
1032 1033
                     $name = substr_replace($name, '«', $ix1, 26);
1033 1034
                     $ix1 = strpos($name, '</span>', $ix1);
1034
-                    if ($ix1 !== false) {   // '«' and '»' mark text for underlining
1035
+                    if ($ix1 !== false) {
1036
+// '«' and '»' mark text for underlining
1035 1037
                         $name = substr_replace($name, '»', $ix1, 7);
1036 1038
                     }
1037 1039
                 }
@@ -1508,7 +1510,8 @@  discard block
 block discarded – undo
1508 1510
         // Sort facts in chronological order, if possible
1509 1511
         $m = count($this->repeats) - 1;
1510 1512
         $prevd = 0;
1511
-        for ($i = 0; $i <= $m; $i++) { // keep undated events after previous dated event
1513
+        for ($i = 0; $i <= $m; $i++) {
1514
+// keep undated events after previous dated event
1512 1515
             if ($jdarr[$i] === 0) {
1513 1516
                 $jdarr[$i] = $prevd;
1514 1517
             } else {
@@ -1762,7 +1765,8 @@  discard block
 block discarded – undo
1762 1765
         } elseif (preg_match('/^I18N::translateContext\(\'(.+)\', *\'(.+)\'\)$/', $value, $match)) {
1763 1766
             $value = I18N::translateContext($match[1], $match[2]);
1764 1767
         }
1765
-        if (isset($attrs['lcfirst'])) { // set 1st char to lower case
1768
+        if (isset($attrs['lcfirst'])) {
1769
+// set 1st char to lower case
1766 1770
             $value = lcfirst($value);
1767 1771
         }
1768 1772
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
             }
865 865
         }
866 866
 
867
-        error_log("\nRPG:867 [abs_position,top_position,top]=".var_export([$abs_position,$top_position,$top],true)."\n",3,"rpg.log");
867
+        error_log("\nRPG:867 [abs_position,top_position,top]=" . var_export([$abs_position, $top_position, $top], true) . "\n", 3, "rpg.log");
868 868
         // boolean After this box is finished rendering, should the next section of text start immediately after the this box or should it start on a new line under this box. 0 = no new line, 1 = force new line. Default is 0
869 869
 
870 870
         $newline = false;
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
                 $this->current_element->addText(I18N::translate('Private'));
1040 1040
             } elseif ($nameselect == 'latest') {
1041 1041
                 $tmp = $record->getAllNames();
1042
-                $name  = strip_tags($tmp[count($tmp) - 1]['full']);
1042
+                $name = strip_tags($tmp[count($tmp) - 1]['full']);
1043 1043
                 $this->current_element->addText(trim($name));
1044 1044
             } elseif ($nameselect == 'combined') {
1045 1045
                 $tmp = $record->getAllNames();
@@ -1123,7 +1123,7 @@  discard block
 block discarded – undo
1123 1123
                 $value = $this->getGedcomValue($tag, $level, $this->gedrec);
1124 1124
                 switch (end($tags)) {
1125 1125
                     case 'DATE':
1126
-                        $tmp   = new Date($value);
1126
+                        $tmp = new Date($value);
1127 1127
                         $dfmt = "%j %F %Y";
1128 1128
                         if (!empty($attrs['truncate'])) {
1129 1129
                             if ($attrs['truncate'] === "d") {
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
 
1164 1164
                 if (isset($attrs['lcfirst'])) {
1165 1165
                     $value = lcfirst($value);
1166
-                    $value = str_replace(["Å","Ä","Ö"], ["å","ä","ö"], $value);
1166
+                    $value = str_replace(["Å", "Ä", "Ö"], ["å", "ä", "ö"], $value);
1167 1167
                 }
1168 1168
 
1169 1169
                 if (!empty($attrs['truncate'])) {
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/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/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.