@@ -17,15 +17,15 @@ discard block |
||
17 | 17 | function hours(int $input): string |
18 | 18 | { |
19 | 19 | if ($input < 60) { |
20 | - return number_format($input, 2) . ' sec'; |
|
20 | + return number_format($input, 2).' sec'; |
|
21 | 21 | } |
22 | 22 | if ($input < 60 * 60) { |
23 | - return number_format(($input / 60), 2) . ' min'; |
|
23 | + return number_format(($input / 60), 2).' min'; |
|
24 | 24 | } |
25 | 25 | if ($input < 24 * 60 * 60) { |
26 | - return number_format(($input / (60 * 60)), 2) . ' hours'; |
|
26 | + return number_format(($input / (60 * 60)), 2).' hours'; |
|
27 | 27 | } |
28 | - return number_format($input / (24 * 60 * 60), 2) . ' days'; |
|
28 | + return number_format($input / (24 * 60 * 60), 2).' days'; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | |
@@ -177,9 +177,9 @@ discard block |
||
177 | 177 | $maxpix = 400; |
178 | 178 | foreach ($statsraw['bytes'] as $key => $row_data) { |
179 | 179 | $pix = floor($statsraw['bytes'][$key] * $maxpix / $statsraw['limit_maxbytes'][$key]); |
180 | - $usage[$key] = $pix . 'px'; |
|
180 | + $usage[$key] = $pix.'px'; |
|
181 | 181 | } |
182 | - $t->data['maxpix'] = $maxpix . 'px'; |
|
182 | + $t->data['maxpix'] = $maxpix.'px'; |
|
183 | 183 | $t->data['usage'] = $usage; |
184 | 184 | } |
185 | 185 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | try { |
19 | 19 | $servers = \SimpleSAML\Memcache::getRawStats(); |
20 | 20 | } catch (\Exception $e) { |
21 | - $hookinfo['errors'][] = '[memcacheMonitor] Error parsing memcache configuration: ' . $e->getMessage(); |
|
21 | + $hookinfo['errors'][] = '[memcacheMonitor] Error parsing memcache configuration: '.$e->getMessage(); |
|
22 | 22 | return; |
23 | 23 | } |
24 | 24 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | foreach ($servers as $group) { |
27 | 27 | foreach ($group as $server => $status) { |
28 | 28 | if ($status === false) { |
29 | - $hookinfo['errors'][] = '[memcacheMonitor] No response from server: ' . $server; |
|
29 | + $hookinfo['errors'][] = '[memcacheMonitor] No response from server: '.$server; |
|
30 | 30 | $allOK = false; |
31 | 31 | } |
32 | 32 | } |