File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111use function array_key_exists ;
1212use function class_exists ;
13+ use function is_array ;
1314use function microtime ;
1415
1516/**
@@ -60,15 +61,15 @@ public function check()
6061
6162 if (is_array ($ stats )) {
6263 if (array_key_exists ('connected_clients ' , $ stats )) {
63- $ successInformation ['connections ' ] = (int )$ stats ['connected_clients ' ];
64+ $ successInformation ['connections ' ] = (int ) $ stats ['connected_clients ' ];
6465 } elseif (array_key_exists ('Clients ' , $ stats ) && array_key_exists ('connected_clients ' , $ stats ['Clients ' ])) {
65- $ successInformation ['connections ' ] = (int )$ stats ['Clients ' ]['connected_clients ' ];
66+ $ successInformation ['connections ' ] = (int ) $ stats ['Clients ' ]['connected_clients ' ];
6667 }
6768
6869 if (array_key_exists ('uptime_in_seconds ' , $ stats )) {
69- $ successInformation ['uptime ' ] = (int )$ stats ['uptime_in_seconds ' ];
70+ $ successInformation ['uptime ' ] = (int ) $ stats ['uptime_in_seconds ' ];
7071 } elseif (array_key_exists ('Server ' , $ stats ) && array_key_exists ('uptime_in_seconds ' , $ stats ['Server ' ])) {
71- $ successInformation ['uptime ' ] = (int )$ stats ['Server ' ]['uptime_in_seconds ' ];
72+ $ successInformation ['uptime ' ] = (int ) $ stats ['Server ' ]['uptime_in_seconds ' ];
7273 }
7374 }
7475
You can’t perform that action at this time.
0 commit comments