@@ -14,7 +14,7 @@ |
||
| 14 | 14 | set_time_limit(0); |
| 15 | 15 | |
| 16 | 16 | $socket_type = isset($_SERVER['RIO_SOCKET_TYPE']) ? $_SERVER['RIO_SOCKET_TYPE'] : 'AF_INET'; |
| 17 | -$socket_path = isset($_SERVER['RIO_SOCKET_PATH']) ? $_SERVER['RIO_SOCKET_PATH'] : sys_get_temp_dir().'/fake_agent.sock'; |
|
| 17 | +$socket_path = isset($_SERVER['RIO_SOCKET_PATH']) ? $_SERVER['RIO_SOCKET_PATH'] : sys_get_temp_dir() . '/fake_agent.sock'; |
|
| 18 | 18 | $ip = isset($_SERVER['RIO_HOST']) ? $_SERVER['RIO_HOST'] : 'localhost'; |
| 19 | 19 | $port = isset($_SERVER['RIO_PORT']) ? $_SERVER['RIO_PORT'] : 3100; |
| 20 | 20 | $timeout = 1000000; // seconds |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | { |
| 100 | 100 | $connection = $this->getConnection(); |
| 101 | 101 | |
| 102 | - $content = $command.' '.json_encode($context, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)."\n"; |
|
| 102 | + $content = $command . ' ' . json_encode($context, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . "\n"; |
|
| 103 | 103 | $sent = $this->box('doSend', false, [$connection, $content]); |
| 104 | 104 | |
| 105 | 105 | // if the pipe is broken, `fwrite` will throw a Notice |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | |
| 204 | 204 | private function box($method, $defaultReturnValue = null, array $args = []) |
| 205 | 205 | { |
| 206 | - set_error_handler(__CLASS__.'::handleInternalError'); |
|
| 206 | + set_error_handler(__CLASS__ . '::handleInternalError'); |
|
| 207 | 207 | |
| 208 | 208 | try { |
| 209 | 209 | $returnValue = call_user_func_array([$this, $method], $args); |