@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | if (!isset($remoteSocket[1])) { |
| 107 | - $options['remote_socket'] = 'unix://'.$remoteSocket[0]; |
|
| 107 | + $options['remote_socket'] = 'unix://' . $remoteSocket[0]; |
|
| 108 | 108 | } else { |
| 109 | 109 | $options['remote_socket'] = sprintf('tcp://%s:%s', $remoteSocket[0], $remoteSocket[1]); |
| 110 | 110 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | { |
| 129 | 129 | $connection = $this->getConnection(); |
| 130 | 130 | |
| 131 | - $content = $command.' '.json_encode($context, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)."\n"; |
|
| 131 | + $content = $command . ' ' . json_encode($context, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . "\n"; |
|
| 132 | 132 | $sent = $this->box('doSend', false, [$connection, $content]); |
| 133 | 133 | |
| 134 | 134 | // if the pipe is broken, `fwrite` will throw a Notice |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | |
| 233 | 233 | private function box($method, $defaultReturnValue = null, array $args = []) |
| 234 | 234 | { |
| 235 | - set_error_handler(__CLASS__.'::handleInternalError'); |
|
| 235 | + set_error_handler(__CLASS__ . '::handleInternalError'); |
|
| 236 | 236 | |
| 237 | 237 | try { |
| 238 | 238 | $returnValue = call_user_func_array([$this, $method], $args); |
@@ -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 |