|
@@ -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.