@@ -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 | } |
@@ -130,9 +130,9 @@ discard block |
||
| 130 | 130 | $maxpix = 400; |
| 131 | 131 | foreach ($statsraw['bytes'] as $key => $row_data) { |
| 132 | 132 | $pix = floor($statsraw['bytes'][$key] * $maxpix / $statsraw['limit_maxbytes'][$key]); |
| 133 | - $usage[$key] = $pix . 'px'; |
|
| 133 | + $usage[$key] = $pix.'px'; |
|
| 134 | 134 | } |
| 135 | - $t->data['maxpix'] = $maxpix . 'px'; |
|
| 135 | + $t->data['maxpix'] = $maxpix.'px'; |
|
| 136 | 136 | $t->data['usage'] = $usage; |
| 137 | 137 | } |
| 138 | 138 | |
@@ -163,18 +163,18 @@ discard block |
||
| 163 | 163 | private function hours(int $input): string |
| 164 | 164 | { |
| 165 | 165 | if ($input < 60) { |
| 166 | - return number_format($input, 2) . ' sec'; |
|
| 166 | + return number_format($input, 2).' sec'; |
|
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | if ($input < 60 * 60) { |
| 170 | - return number_format(($input / 60), 2) . ' min'; |
|
| 170 | + return number_format(($input / 60), 2).' min'; |
|
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | if ($input < 24 * 60 * 60) { |
| 174 | - return number_format(($input / (60 * 60)), 2) . ' hours'; |
|
| 174 | + return number_format(($input / (60 * 60)), 2).' hours'; |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | - return number_format($input / (24 * 60 * 60), 2) . ' days'; |
|
| 177 | + return number_format($input / (24 * 60 * 60), 2).' days'; |
|
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | |