Passed
Pull Request — main (#4945)
by
unknown
08:35
created
app/Module/IndividualListModule.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -290,7 +290,8 @@  discard block
 block discarded – undo
290 290
                     <li class="wt-initials-list-item d-flex">
291 291
                         <?php if ($count > 0) : ?>
292 292
                             <a href="<?= e($this->listUrl($tree, ['alpha' => $letter, 'show_marnm' => $show_marnm, 'tree' => $tree->name()])) ?>" class="wt-initial px-1<?= $letter === $alpha ? ' active' : '' ?> '" title="<?= I18N::number($count) ?>"><?= $this->displaySurnameInitial((string) $letter) ?></a>
293
-                        <?php else : ?>
293
+                        <?php else {
294
+    : ?>
294 295
                             <span class="wt-initial px-1 text-muted"><?= $this->displaySurnameInitial((string) $letter) ?></span>
295 296
 
296 297
                         <?php endif ?>
@@ -345,6 +346,7 @@  discard block
 block discarded – undo
345 346
                 switch ($alpha) {
346 347
                     case '@':
347 348
                         $filter = static fn(string $x): bool => $x === Individual::NOMEN_NESCIO;
349
+}
348 350
                         break;
349 351
                     case ',':
350 352
                         $filter = static fn(string $x): bool => $x === '';
Please login to merge, or discard this patch.
app/Report/HtmlRenderer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,8 @@
 block discarded – undo
198 198
         //-- footer
199 199
         echo '</div>';
200 200
         //echo '<script>document.getElementById("bodydiv").style.height="', $this->maxY, 'pt";</script>';
201
-        if ($this->Y < 200) { //heuristic guess!
201
+        if ($this->Y < 200) {
202
+//heuristic guess!
202 203
             echo '<div id="bottommargin" style="position: relative; top: auto; height: ', $this->bottom_margin - $this->footer_margin, 'pt;width:', $this->noMarginWidth, 'pt;"></div>';
203 204
             echo '<div id="footerdiv" style="position: relative; top: auto; width: ', $this->noMarginWidth, 'pt;height:auto;">';
204 205
         } else {
Please login to merge, or discard this patch.
app/Report/ReportPdfTextBox.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,10 +139,12 @@
 block discarded – undo
139 139
         // If current position (top)
140 140
         $align_Y = false;
141 141
         $curr_P = $renderer->tcpdf->getPage();
142
-        if ($this->top < -95000) { // 90000: only html; 100000: both pdf and html
142
+        if ($this->top < -95000) {
143
+// 90000: only html; 100000: both pdf and html
143 144
             $align_Y = true;
144 145
         }
145
-        if ($this->top < -200000) {   // pos="abs"
146
+        if ($this->top < -200000) {
147
+// pos="abs"
146 148
             $this->top += 222000;
147 149
         } else {
148 150
             $this->top = ReportBaseElement::CURRENT_POSITION;
Please login to merge, or discard this patch.
app/Report/ReportParserGenerate.php 1 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.
app/Report/ReportHtmlTextbox.php 1 patch
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,10 +61,11 @@  discard block
 block discarded – undo
61 61
                     }
62 62
                     if (empty($lastelement)) {
63 63
                         $lastelement = $element;
64
-                    } elseif ($element instanceof ReportBaseText && $lastelement instanceof ReportBaseText)
65
-                        if ($element->getStyleName() === $lastelement->getStyleName()) {
64
+                    } elseif ($element instanceof ReportBaseText && $lastelement instanceof ReportBaseText) {
65
+                                            if ($element->getStyleName() === $lastelement->getStyleName()) {
66 66
                             // Checking if the Text has the same style
67 67
                             $lastelement->addText(str_replace("\n", '<br>', $element->getValue()));
68
+                    }
68 69
                         }
69 70
                     } else {
70 71
                         $newelements[] = $lastelement;
@@ -139,10 +140,12 @@  discard block
 block discarded – undo
139 140
         // If current position (top)
140 141
         $align_Y = false;
141 142
         $topstr = "";
142
-        if ($this->top < -110000) { // pos='abs'
143
+        if ($this->top < -110000) {
144
+// pos='abs'
143 145
             $this->top += 222000;
144 146
         }
145
-        if ($this->top < -10000) { // <= -100000: both pdf and html; -100000 -- -90000: only html
147
+        if ($this->top < -10000) {
148
+// <= -100000: both pdf and html; -100000 -- -90000: only html
146 149
             $this->top += 90000;  //= ReportBaseElement::CURRENT_POSITION;
147 150
             if ($this->top < -9000) {
148 151
                 $this->top += 10000;
Please login to merge, or discard this patch.