@@ -42,7 +42,7 @@ discard block |
||
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 |
||
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; |
@@ -82,7 +82,7 @@ discard block |
||
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 |
||
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 |
||
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 |