| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | |
| 14 | 14 | 'payloadtest' => [ | 
| 15 | 15 | 'method' => 'GET', | 
| 16 | -        'pattern' => '/payload/[{id:\d+}]',             // [] = optional | |
| 16 | +        'pattern' => '/payload/[{id:\d+}]', // [] = optional | |
| 17 | 17 | 'handler' => 'App\Action\HomeActionPayload' | 
| 18 | 18 | ], | 
| 19 | 19 | |
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | $output | 
| 6 | 6 | ); | 
| 7 | 7 | |
| 8 | -    if (! empty($output)) { | |
| 8 | +    if (!empty($output)) { | |
| 9 | 9 | $process = trim(array_shift($output)); | 
| 10 | 10 |          preg_match('/(\d+)$/', $process, $matches); | 
| 11 | 11 | $cmd = 'kill ' . (int) $matches[1]; |