@@ -74,7 +74,7 @@ |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | if (preg_match('/^(\d+) B\.C\.$/', $year, $match)) { |
77 | - return - (int) $match[1]; |
|
77 | + return -(int) $match[1]; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | return (int) $year; |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $content = $stats->embedTags($content); |
77 | 77 | |
78 | 78 | if ($show_timestamp === '1') { |
79 | - $content .= '<br>' . FunctionsDate::formatTimestamp((int)$this->getBlockSetting($block_id, 'timestamp', (string) WT_TIMESTAMP) + WT_TIMESTAMP_OFFSET); |
|
79 | + $content .= '<br>' . FunctionsDate::formatTimestamp((int) $this->getBlockSetting($block_id, 'timestamp', (string) WT_TIMESTAMP) + WT_TIMESTAMP_OFFSET); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | if ($template) { |
@@ -2216,7 +2216,7 @@ |
||
2216 | 2216 | $centuries = ''; |
2217 | 2217 | $counts = []; |
2218 | 2218 | foreach ($rows as $values) { |
2219 | - $counts[] = round(100 * $values->total / $tot, 0); |
|
2219 | + $counts[] = round(100 * $values->total / $tot, 0); |
|
2220 | 2220 | $centuries .= $this->centuryName($values->century) . ' - ' . I18N::number((int) $values->total) . '|'; |
2221 | 2221 | } |
2222 | 2222 | $chd = $this->arrayToExtendedEncoding($counts); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | { |
76 | 76 | $latest_version = $this->fetchLatestVersion(); |
77 | 77 | |
78 | - list(, , $url) = explode('|', $latest_version . '||'); |
|
78 | + list(,, $url) = explode('|', $latest_version . '||'); |
|
79 | 79 | |
80 | 80 | return $url; |
81 | 81 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | if ($response->getStatusCode() === Response::HTTP_OK) { |
107 | 107 | Site::setPreference('LATEST_WT_VERSION', $response->getBody()->getContents()); |
108 | - Site::setPreference('LATEST_WT_VERSION_TIMESTAMP', (string)WT_TIMESTAMP); |
|
108 | + Site::setPreference('LATEST_WT_VERSION_TIMESTAMP', (string) WT_TIMESTAMP); |
|
109 | 109 | } |
110 | 110 | } catch (RequestException $ex) { |
111 | 111 | DebugBar::addThrowable($ex); |