Passed
Pull Request — main (#5055)
by
unknown
07:23
created
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/ReportPdfTextBox.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,9 +130,10 @@
 block discarded – undo
130 130
         }
131 131
 
132 132
         $cE = count($this->elements);
133
-        if ($cE>0)
134
-            error_log("\npdfTB start: [cE,element[1]]=".
133
+        if ($cE>0) {
134
+                    error_log("\npdfTB start: [cE,element[1]]=".
135 135
                 var_export([$cE,$this->elements[0]],true)."\n",3,"pdf_tb.log");
136
+        }
136 137
 
137 138
         // If current position (top)
138 139
         $align_Y = false;
Please login to merge, or discard this patch.
app/Report/ReportHtmlTextbox.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@
 block discarded – undo
310 310
         }
311 311
         error_log("\nhtml end1: [top,top_position,cYT,getY(),first_Y,newline]=".
312 312
             var_export([$this->top,$this->top_position,$cYT,$renderer->getY(),$first_Y,$this->newline],true)."\n",3,"html_tb.log");
313
-         // New line and some clean up
313
+            // New line and some clean up
314 314
         if (!$this->newline) {
315 315
             $renderer->setXy($cX + $this->width, $this->top);
316 316
             $renderer->lastCellHeight = $cH;
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,9 +121,10 @@
 block discarded – undo
121 121
         $this->elements = $newelements;
122 122
         unset($footnote_element, $lastelement, $newelements);
123 123
 
124
-        if ($cE>0)
125
-            error_log("\nhtmlTB start: [cE,element[1]]=".
124
+        if ($cE>0) {
125
+                    error_log("\nhtmlTB start: [cE,element[1]]=".
126 126
                 var_export([$cE,$this->elements[0]],true)."\n",3,"html_tb.log");
127
+        }
127 128
 
128 129
 
129 130
         $cP = 0; // Class Padding
Please login to merge, or discard this patch.