@@ -64,7 +64,7 @@ |
||
64 | 64 | break; |
65 | 65 | } |
66 | 66 | $newrec .= mb_substr($line, 0, $pos) . Gedcom::EOL; |
67 | - $line = $level . ' CONC ' . mb_substr($line, $pos); |
|
67 | + $line = $level . ' CONC ' . mb_substr($line, $pos); |
|
68 | 68 | } while (mb_strlen($line) > Gedcom::LINE_LENGTH); |
69 | 69 | } |
70 | 70 | $newrec .= $line . Gedcom::EOL; |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $attrs .= ' ' . $key . '="' . e($value) . '"'; |
70 | 70 | } |
71 | 71 | |
72 | - $class = trim('dropdown-item ' . $submenu->class); |
|
72 | + $class = trim('dropdown-item ' . $submenu->class); |
|
73 | 73 | $submenus .= '<a class="' . $class . '" href="' . e($submenu->link) . '"' . $attrs . '>' . $submenu->label . '</a>'; |
74 | 74 | } |
75 | 75 |
@@ -280,7 +280,7 @@ |
||
280 | 280 | { |
281 | 281 | $nchi = count($this->getChildren()); |
282 | 282 | foreach ($this->getFacts('NCHI') as $fact) { |
283 | - $nchi = max($nchi, (int)$fact->getValue()); |
|
283 | + $nchi = max($nchi, (int) $fact->getValue()); |
|
284 | 284 | } |
285 | 285 | |
286 | 286 | return $nchi; |
@@ -60,7 +60,7 @@ |
||
60 | 60 | $_tmp_dir = $WT_DATA_DIR; |
61 | 61 | while (strpos($_mf_dir, $_tmp_dir) !== 0) { |
62 | 62 | $_media_dir .= '../'; |
63 | - $_tmp_dir = preg_replace('~[^/\\\\]+[/\\\\]$~', '', $_tmp_dir); |
|
63 | + $_tmp_dir = preg_replace('~[^/\\\\]+[/\\\\]$~', '', $_tmp_dir); |
|
64 | 64 | if ($_tmp_dir == '') { |
65 | 65 | // Shouldn't get here - but this script is not allowed to fail... |
66 | 66 | continue 2; |
@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | if ($tmp !== null) { |
48 | 48 | $this->record = $tmp; |
49 | 49 | } elseif (!empty($record)) { |
50 | - $this->record = (object)$record; |
|
50 | + $this->record = (object) $record; |
|
51 | 51 | } else { |
52 | - $this->record = (object)[ |
|
52 | + $this->record = (object) [ |
|
53 | 53 | 'fqpn' => '', |
54 | 54 | 'pl_id' => 0, |
55 | 55 | 'pl_parent_id' => 0, |
@@ -81,12 +81,11 @@ discard block |
||
81 | 81 | switch ($format) { |
82 | 82 | case 'signed': |
83 | 83 | return $this->record->pl_lati ? |
84 | - (float)strtr($this->record->pl_lati, [ |
|
84 | + (float) strtr($this->record->pl_lati, [ |
|
85 | 85 | 'N' => '', |
86 | 86 | 'S' => '-', |
87 | 87 | ',' => '.', |
88 | - ]) : |
|
89 | - $this->record->pl_lati; |
|
88 | + ]) : $this->record->pl_lati; |
|
90 | 89 | default: |
91 | 90 | return $this->record->pl_lati; |
92 | 91 | } |
@@ -102,12 +101,11 @@ discard block |
||
102 | 101 | switch ($format) { |
103 | 102 | case 'signed': |
104 | 103 | return $this->record->pl_long ? |
105 | - (float)strtr($this->record->pl_long, [ |
|
104 | + (float) strtr($this->record->pl_long, [ |
|
106 | 105 | 'E' => '', |
107 | 106 | 'W' => '-', |
108 | 107 | ',' => '.', |
109 | - ]) : |
|
110 | - $this->record->pl_long; |
|
108 | + ]) : $this->record->pl_long; |
|
111 | 109 | default: |
112 | 110 | return $this->record->pl_long; |
113 | 111 | } |
@@ -3616,7 +3616,7 @@ |
||
3616 | 3616 | $soundTableEntry = self::$dmsounds[$thisEntry]; |
3617 | 3617 | $workingResult = $partialResult; |
3618 | 3618 | $partialResult = []; |
3619 | - $currPos += strlen($thisEntry); |
|
3619 | + $currPos += strlen($thisEntry); |
|
3620 | 3620 | |
3621 | 3621 | // Not at beginning of input string |
3622 | 3622 | if ($state != 1) { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | if ($this->wrapWidthRemaining > 0) { |
123 | 123 | // Check with line counter too! |
124 | 124 | // but floor the $wrapWidthRemaining first to keep it bugfree! |
125 | - $wrapWidthRemaining = (int)($this->wrapWidthRemaining); |
|
125 | + $wrapWidthRemaining = (int) ($this->wrapWidthRemaining); |
|
126 | 126 | if ($lw >= $wrapWidthRemaining || $lfct > 1) { |
127 | 127 | $newtext = ''; |
128 | 128 | $lines = explode("\n", $this->text); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $newtext .= ' '; |
145 | 145 | } |
146 | 146 | } else { |
147 | - $lw = $pdf->GetStringWidth($word . ' '); |
|
147 | + $lw = $pdf->GetStringWidth($word . ' '); |
|
148 | 148 | $newtext .= "\n$word"; |
149 | 149 | if ($addspace != 0) { |
150 | 150 | $newtext .= ' '; |
@@ -138,7 +138,7 @@ |
||
138 | 138 | $newtext .= ' '; |
139 | 139 | } |
140 | 140 | } else { |
141 | - $lw = $html->getStringWidth($word . ' '); |
|
141 | + $lw = $html->getStringWidth($word . ' '); |
|
142 | 142 | $newtext .= "\n$word"; |
143 | 143 | if ($addspace != 0) { |
144 | 144 | $newtext .= ' '; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $lines = explode("\n", $temptext); |
60 | 60 | foreach ($lines as $line) { |
61 | 61 | echo '<div style="position:absolute;top:', $startY, 'pt;', $renderer->alignRTL, ':', $startX, 'pt;width:', $width, 'pt;">'; |
62 | - $line = $renderer->textWrap($line, $width); |
|
62 | + $line = $renderer->textWrap($line, $width); |
|
63 | 63 | $startY += $renderer->getTextCellHeight($line); |
64 | 64 | $renderer->setY($startY); |
65 | 65 | $renderer->write($line, $this->color); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $newtext .= ' '; |
147 | 147 | } |
148 | 148 | } else { |
149 | - $lw = $html->getStringWidth($word . ' '); |
|
149 | + $lw = $html->getStringWidth($word . ' '); |
|
150 | 150 | $newtext .= "\n$word"; |
151 | 151 | if ($addspace != 0) { |
152 | 152 | $newtext .= ' '; |