Passed
Pull Request — main (#4945)
by
unknown
06:16
created
app/Gedcom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -346,7 +346,7 @@
 block discarded – undo
346 346
         '_MBON',
347 347
         '_NMR',
348 348
         '_SEPR',
349
-    '_SP_DEAT',  // only used internally, not exported to a gedcom file
349
+    '_SP_DEAT', // only used internally, not exported to a gedcom file
350 350
     ];
351 351
 
352 352
     public const CUSTOM_INDIVIDUAL_TAGS = [
Please login to merge, or discard this patch.
app/Report/ReportParserGenerate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
         if (isset($attrs['url'])) {
641 641
             $url = $attrs['url'];
642 642
             $this->current_element->setUrl($url);
643
-            error_log("RPG ".__LINE__." seturl=".$url."\n",3,"url.log");
643
+            error_log("RPG " . __LINE__ . " seturl=" . $url . "\n", 3, "url.log");
644 644
         } else {
645 645
             $url = "";
646 646
         }
@@ -1022,7 +1022,7 @@  discard block
 block discarded – undo
1022 1022
                 $this->current_element->addText(I18N::translate('Private'));
1023 1023
             } elseif ($nameselect == 'latest') {
1024 1024
                 $tmp = $record->getAllNames();
1025
-                $name  = strip_tags($tmp[count($tmp) - 1]['full']);
1025
+                $name = strip_tags($tmp[count($tmp) - 1]['full']);
1026 1026
                 $this->current_element->addText(trim($name));
1027 1027
             } elseif ($nameselect == 'combined') {
1028 1028
                 $tmp = $record->getAllNames();
@@ -1103,7 +1103,7 @@  discard block
 block discarded – undo
1103 1103
                 $value = $this->getGedcomValue($tag, $level, $this->gedrec);
1104 1104
                 switch (end($tags)) {
1105 1105
                     case 'DATE':
1106
-                        $tmp   = new Date($value);
1106
+                        $tmp = new Date($value);
1107 1107
                         $dfmt = "%j %F %Y";
1108 1108
                         if (!empty($attrs['truncate'])) {
1109 1109
                             if ($attrs['truncate'] === "d") {
@@ -1143,7 +1143,7 @@  discard block
 block discarded – undo
1143 1143
 
1144 1144
                 if (isset($attrs['lcfirst'])) {
1145 1145
                     $value = lcfirst($value);
1146
-                    $value = str_replace(["Å","Ä","Ö"], ["å","ä","ö"], $value);
1146
+                    $value = str_replace(["Å", "Ä", "Ö"], ["å", "ä", "ö"], $value);
1147 1147
                 }
1148 1148
 
1149 1149
                 if (!empty($attrs['truncate'])) {
Please login to merge, or discard this patch.
app/Report/ReportHtmlTextbox.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                         $lastelement   = $element;
70 70
                     }
71 71
                 } elseif ($element instanceof ReportHtmlImage) {
72
-                    $lastelement   = $element;
72
+                    $lastelement = $element;
73 73
                 } elseif ($element instanceof ReportHtmlFootnote) {
74 74
                     // Check if the Footnote has been set with it’s link number
75 75
                     $renderer->checkFootnote($element);
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             $this->top += 222000;
142 142
         }
143 143
         if ($this->top < -10000) { // <= -100000: both pdf and html; -100000 -- -90000: only html
144
-            $this->top += 90000;  //= ReportBaseElement::CURRENT_POSITION;
144
+            $this->top += 90000; //= ReportBaseElement::CURRENT_POSITION;
145 145
             if ($this->top < -9000) {
146 146
                 $this->top += 10000;
147 147
             }
Please login to merge, or discard this patch.
app/Report/ReportPdfTextBox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -356,7 +356,7 @@
 block discarded – undo
356 356
         $curr_P = $renderer->tcpdf->getPage();
357 357
         // New line and some clean up
358 358
         if (!$this->newline) {
359
-            $renderer->tcpdf->setXY($cX + $cW, $cY);   // $curr_Y);
359
+            $renderer->tcpdf->setXY($cX + $cW, $cY); // $curr_Y);
360 360
             $renderer->lastCellHeight = $cH;
361 361
         } else {
362 362
             // addMarginX() also updates X
Please login to merge, or discard this patch.