Completed
Push — master ( e2836d...7166cf )
by Joel
10:36
created
src/Resources/fake_agent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     {
126 126
         $connection = $this->getConnection();
127 127
 
128
-        $content = $command.' '.json_encode($context, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES)."\n";
128
+        $content = $command . ' ' . json_encode($context, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . "\n";
129 129
         $sent = $this->box('doSend', false, [$connection, $content]);
130 130
 
131 131
         // if the pipe is broken, `fwrite` will throw a Notice
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 
230 230
     private function box($method, $defaultReturnValue = null, array $args = [])
231 231
     {
232
-        set_error_handler(__CLASS__.'::handleInternalError');
232
+        set_error_handler(__CLASS__ . '::handleInternalError');
233 233
 
234 234
         try {
235 235
             $returnValue = \call_user_func_array([$this, $method], $args);
Please login to merge, or discard this patch.