Completed
Push — master ( fe4615...d4cdb6 )
by Joel
03:25
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
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.