@@ -121,7 +121,7 @@ |
||
121 | 121 | foreach ((array) $root['namespaces'] as $prefix => $uri) { |
122 | 122 | $nsLabel = 'xmlns'; |
123 | 123 | if (!is_numeric($prefix)) { |
124 | - $nsLabel .= ':'.$prefix; |
|
124 | + $nsLabel .= ':' . $prefix; |
|
125 | 125 | } |
126 | 126 | $writer->writeAttribute($nsLabel, $uri); |
127 | 127 | } |
@@ -245,12 +245,12 @@ |
||
245 | 245 | |
246 | 246 | // Strings can have enums which are a list of predefined values |
247 | 247 | if (($enum = $param->getEnum()) && !in_array($value, $enum)) { |
248 | - $this->errors[] = "{$path} must be one of " . implode(' or ', array_map(function ($s) { |
|
248 | + $this->errors[] = "{$path} must be one of " . implode(' or ', array_map(function($s) { |
|
249 | 249 | return '"' . addslashes($s) . '"'; |
250 | 250 | }, $enum)); |
251 | 251 | } |
252 | 252 | // Strings can have a regex pattern that the value must match |
253 | - if (($pattern = $param->getPattern()) && !preg_match($pattern, $value)) { |
|
253 | + if (($pattern = $param->getPattern()) && !preg_match($pattern, $value)) { |
|
254 | 254 | $this->errors[] = "{$path} must match the following regular expression: {$pattern}"; |
255 | 255 | } |
256 | 256 |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | protected function createFutureResult(CommandTransaction $transaction) |
89 | 89 | { |
90 | 90 | return new FutureArray( |
91 | - $transaction->response->then(function () use ($transaction) { |
|
91 | + $transaction->response->then(function() use ($transaction) { |
|
92 | 92 | return $transaction->result; |
93 | 93 | }), |
94 | 94 | [$transaction->response, 'wait'], |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public static function defaultCommandFactory(DescriptionInterface $description) |
114 | 114 | { |
115 | - return function ( |
|
115 | + return function( |
|
116 | 116 | $name, |
117 | 117 | array $args = [], |
118 | 118 | ServiceClientInterface $client |