Passed
Push — v1 ( 4d0d15...04fe15 )
by Andrew
05:36 queued 02:45
created
src/helpers/Text.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         if (!empty($string)) {
44 44
             $string = strip_tags($string);
45
-            $result = (string)Stringy::create($string)->truncate($length, $substring);
45
+            $result = (string) Stringy::create($string)->truncate($length, $substring);
46 46
         }
47 47
 
48 48
         return $result;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         if (!empty($string)) {
68 68
             $string = strip_tags($string);
69
-            $result = (string)Stringy::create($string)->safeTruncate($length, $substring);
69
+            $result = (string) Stringy::create($string)->safeTruncate($length, $substring);
70 70
         }
71 71
 
72 72
         return $result;
Please login to merge, or discard this patch.
src/controllers/ChartsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                     'AVG('.$column.') AS avg',
83 83
                 ])
84 84
                 ->where("dateUpdated >= ( CURDATE() - INTERVAL '{$days}' DAY )");
85
-            if ((int)$siteId !== 0) {
85
+            if ((int) $siteId !== 0) {
86 86
                 $query->andWhere(['siteId' => $siteId]);
87 87
             }
88 88
             $stats = $query->all();
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                     "COUNT(CASE WHEN \"handledByRetour\" = true THEN 1 END) as handled_cnt",
98 98
                 ])
99 99
                 ->where("\"hitLastTime\" >= ( CURRENT_TIMESTAMP - INTERVAL '{$days} days' )");
100
-            if ((int)$siteId !== 0) {
100
+            if ((int) $siteId !== 0) {
101 101
                 $query->andWhere(['siteId' => $siteId]);
102 102
             }
103 103
             $query
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
         }
153 153
         if ($stats) {
154 154
             $data = [
155
-                (int)$stats,
156
-                (int)$handledStats,
155
+                (int) $stats,
156
+                (int) $handledStats,
157 157
             ];
158 158
         }
159 159
 
Please login to merge, or discard this patch.