@@ -33,7 +33,7 @@ |
||
| 33 | 33 | 'body' => $parts['body'] |
| 34 | 34 | ); |
| 35 | 35 | |
| 36 | - $parsed['request_url'] = $this->getUrlPartsFromMessage(isset($parts['start_line'][1]) ? $parts['start_line'][1] : '' , $parsed); |
|
| 36 | + $parsed['request_url'] = $this->getUrlPartsFromMessage(isset($parts['start_line'][1]) ? $parts['start_line'][1] : '', $parsed); |
|
| 37 | 37 | |
| 38 | 38 | return $parsed; |
| 39 | 39 | } |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | foreach ($e as $ee) { |
| 99 | 99 | $message .= "\n" . $this->getExceptionMessage($ee, $depth + 1); |
| 100 | 100 | } |
| 101 | - } else { |
|
| 101 | + } else { |
|
| 102 | 102 | $message .= "\n{$prefix}{$sp}" . str_replace("\n", "\n{$prefix}{$sp}", $e->getMessage()) . "\n"; |
| 103 | 103 | $message .= "\n{$prefix}{$sp}" . str_replace("\n", "\n{$prefix}{$sp}", $e->getTraceAsString()) . "\n"; |
| 104 | 104 | } |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | */ |
| 323 | 323 | public function setPath($path, $value) |
| 324 | 324 | { |
| 325 | - $current =& $this->data; |
|
| 325 | + $current = & $this->data; |
|
| 326 | 326 | $queue = explode('/', $path); |
| 327 | 327 | while (null !== ($key = array_shift($queue))) { |
| 328 | 328 | if (!is_array($current)) { |
@@ -330,10 +330,10 @@ discard block |
||
| 330 | 330 | } elseif (!$queue) { |
| 331 | 331 | $current[$key] = $value; |
| 332 | 332 | } elseif (isset($current[$key])) { |
| 333 | - $current =& $current[$key]; |
|
| 333 | + $current = & $current[$key]; |
|
| 334 | 334 | } else { |
| 335 | 335 | $current[$key] = array(); |
| 336 | - $current =& $current[$key]; |
|
| 336 | + $current = & $current[$key]; |
|
| 337 | 337 | } |
| 338 | 338 | } |
| 339 | 339 | |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | public function getPath($path, $separator = '/', $data = null) |
| 355 | 355 | { |
| 356 | 356 | if ($data === null) { |
| 357 | - $data =& $this->data; |
|
| 357 | + $data = & $this->data; |
|
| 358 | 358 | } |
| 359 | 359 | |
| 360 | 360 | $path = is_array($path) ? $path : explode($separator, $path); |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | if (!is_array($data)) { |
| 363 | 363 | return null; |
| 364 | 364 | } elseif (isset($data[$part])) { |
| 365 | - $data =& $data[$part]; |
|
| 365 | + $data = & $data[$part]; |
|
| 366 | 366 | } elseif ($part != '*') { |
| 367 | 367 | return null; |
| 368 | 368 | } else { |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $client = reset($batch)->getClient(); |
| 63 | 63 | |
| 64 | 64 | // Keep a list of all commands with invalid clients |
| 65 | - $invalid = array_filter($batch, function ($command) use ($client) { |
|
| 65 | + $invalid = array_filter($batch, function($command) use ($client) { |
|
| 66 | 66 | return $command->getClient() !== $client; |
| 67 | 67 | }); |
| 68 | 68 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | Response $response, |
| 28 | 28 | Parameter $param, |
| 29 | 29 | &$value, |
| 30 | - $context = null |
|
| 30 | + $context = null |
|
| 31 | 31 | ) { |
| 32 | 32 | $name = $param->getName(); |
| 33 | 33 | $key = $param->getWireName(); |
@@ -21,6 +21,6 @@ |
||
| 21 | 21 | Response $response, |
| 22 | 22 | Parameter $param, |
| 23 | 23 | &$value, |
| 24 | - $context = null |
|
| 24 | + $context = null |
|
| 25 | 25 | ) {} |
| 26 | 26 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | Response $response, |
| 23 | 23 | Parameter $param, |
| 24 | 24 | &$value, |
| 25 | - $context = null |
|
| 25 | + $context = null |
|
| 26 | 26 | ) { |
| 27 | 27 | $sentAs = $param->getWireName(); |
| 28 | 28 | $name = $param->getName(); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | Response $response, |
| 17 | 17 | Parameter $param, |
| 18 | 18 | &$value, |
| 19 | - $context = null |
|
| 19 | + $context = null |
|
| 20 | 20 | ) { |
| 21 | 21 | $value[$param->getName()] = $response->getReasonPhrase(); |
| 22 | 22 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | Response $response, |
| 17 | 17 | Parameter $param, |
| 18 | 18 | &$value, |
| 19 | - $context = null |
|
| 19 | + $context = null |
|
| 20 | 20 | ) { |
| 21 | 21 | $value[$param->getName()] = $response->getStatusCode(); |
| 22 | 22 | } |