@@ -1138,7 +1138,7 @@ |
||
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'])) { |
@@ -1021,7 +1021,7 @@ discard block |
||
1021 | 1021 | $this->current_element->addText(I18N::translate('Private')); |
1022 | 1022 | } elseif ($nameselect == 'latest') { |
1023 | 1023 | $tmp = $record->getAllNames(); |
1024 | - $name = strip_tags($tmp[count($tmp) - 1]['full']); |
|
1024 | + $name = strip_tags($tmp[count($tmp) - 1]['full']); |
|
1025 | 1025 | $this->current_element->addText(trim($name)); |
1026 | 1026 | } elseif ($nameselect == 'combined') { |
1027 | 1027 | $tmp = $record->getAllNames(); |
@@ -1102,7 +1102,7 @@ discard block |
||
1102 | 1102 | $value = $this->getGedcomValue($tag, $level, $this->gedrec); |
1103 | 1103 | switch (end($tags)) { |
1104 | 1104 | case 'DATE': |
1105 | - $tmp = new Date($value); |
|
1105 | + $tmp = new Date($value); |
|
1106 | 1106 | $dfmt = "%j %F %Y"; |
1107 | 1107 | if (!empty($attrs['truncate'])) { |
1108 | 1108 | if ($attrs['truncate'] === "d") { |
@@ -1142,7 +1142,7 @@ discard block |
||
1142 | 1142 | |
1143 | 1143 | if (isset($attrs['lcfirst'])) { |
1144 | 1144 | $value = lcfirst($value); |
1145 | - $value = str_replace(["Å","Ä","Ö"], ["å","ä","ö"], $value); |
|
1145 | + $value = str_replace(["Å", "Ä", "Ö"], ["å", "ä", "ö"], $value); |
|
1146 | 1146 | } |
1147 | 1147 | |
1148 | 1148 | if (!empty($attrs['truncate'])) { |
@@ -1032,10 +1032,12 @@ discard block |
||
1032 | 1032 | $tmp = $record->getAllNames(); |
1033 | 1033 | $name = $tmp[count($tmp) - 1]['full']; |
1034 | 1034 | $ix1 = strpos($name, '<span class="starredname">'); |
1035 | - if ($ix1 !== false) { // '«' and '»' mark text for underlining |
|
1035 | + if ($ix1 !== false) { |
|
1036 | +// '«' and '»' mark text for underlining |
|
1036 | 1037 | $name = substr_replace($name, '«', $ix1, 26); |
1037 | 1038 | $ix1 = strpos($name, '</span>', $ix1); |
1038 | - if ($ix1 !== false) { // '«' and '»' mark text for underlining |
|
1039 | + if ($ix1 !== false) { |
|
1040 | +// '«' and '»' mark text for underlining |
|
1039 | 1041 | $name = substr_replace($name, '»', $ix1, 7); |
1040 | 1042 | } |
1041 | 1043 | } |
@@ -1521,7 +1523,8 @@ discard block |
||
1521 | 1523 | // Sort facts in chronological order, if possible |
1522 | 1524 | $m = count($this->repeats) - 1; |
1523 | 1525 | $prevd = 0; |
1524 | - for ($i = 0; $i <= $m; $i++) { // keep undated events after previous dated event |
|
1526 | + for ($i = 0; $i <= $m; $i++) { |
|
1527 | +// keep undated events after previous dated event |
|
1525 | 1528 | if ($jdarr[$i] === 0) { |
1526 | 1529 | $jdarr[$i] = $prevd; |
1527 | 1530 | } else { |
@@ -1786,7 +1789,8 @@ discard block |
||
1786 | 1789 | } elseif (preg_match('/^I18N::translateContext\(\'(.+)\', *\'(.+)\'\)$/', $value, $match)) { |
1787 | 1790 | $value = I18N::translateContext($match[1], $match[2]); |
1788 | 1791 | } |
1789 | - if (isset($attrs['lcfirst'])) { // set 1st char to lower case |
|
1792 | + if (isset($attrs['lcfirst'])) { |
|
1793 | +// set 1st char to lower case |
|
1790 | 1794 | if ($attrs['lcfirst'] == '1') { |
1791 | 1795 | $value = lcfirst($value); |
1792 | 1796 | } |
@@ -69,7 +69,7 @@ discard block |
||
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 |
||
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 | } |
@@ -137,10 +137,12 @@ |
||
137 | 137 | // If current position (top) |
138 | 138 | $align_Y = false; |
139 | 139 | $topstr = ""; |
140 | - if ($this->top < -110000) { // pos='abs' |
|
140 | + if ($this->top < -110000) { |
|
141 | +// pos='abs' |
|
141 | 142 | $this->top += 222000; |
142 | 143 | } |
143 | - if ($this->top < -10000) { // <= -100000: both pdf and html; -100000 -- -90000: only html |
|
144 | + if ($this->top < -10000) { |
|
145 | +// <= -100000: both pdf and html; -100000 -- -90000: only html |
|
144 | 146 | $this->top += 90000; //= ReportBaseElement::CURRENT_POSITION; |
145 | 147 | if ($this->top < -9000) { |
146 | 148 | $this->top += 10000; |
@@ -356,7 +356,7 @@ |
||
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 |
@@ -139,10 +139,12 @@ |
||
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; |