Completed
Pull Request — master (#1904)
by Rico
07:48
created
app/Date/JulianDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Module/HtmlBlockModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
app/Stats.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2216,7 +2216,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
app/Services/UpgradeService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.