Completed
Push — master ( d12817...b61217 )
by Sébastien
02:16
created
src/PjbServer/Tools/StandaloneServer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         $jars = array();
253 253
         $autoload_path = $this->config['autoload_path'];
254 254
         $files = glob("$autoload_path/*.jar");
255
-        foreach($files as $file) {
255
+        foreach ($files as $file) {
256 256
             $jars[] = $file;
257 257
         }
258 258
         $jars[] = $this->config['server_jar'];
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
             return false;
321 321
         }
322 322
         $result = shell_exec(sprintf("ps %d", $pid));
323
-        if( count(preg_split("/\n/", $result)) > 2){
323
+        if (count(preg_split("/\n/", $result)) > 2) {
324 324
             return true;
325 325
         }                    
326 326
         return false;
Please login to merge, or discard this patch.