@@ -131,12 +131,12 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | $this->applyOptions($options); |
| 133 | 133 | |
| 134 | - $this->on('element', function (Features $element) { |
|
| 134 | + $this->on('element', function(Features $element) { |
|
| 135 | 135 | $this->_features = $element; |
| 136 | 136 | $this->emit('features', [$element]); |
| 137 | 137 | }, Features::class); |
| 138 | 138 | |
| 139 | - $this->on('close', function (Features $element) { |
|
| 139 | + $this->on('close', function(Features $element) { |
|
| 140 | 140 | $this->state = 'disconnected'; |
| 141 | 141 | }, Features::class); |
| 142 | 142 | } |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | $this->state = 'bound'; |
| 197 | 197 | |
| 198 | 198 | $queue = new ObservableCollection(); |
| 199 | - $queue->on('empty', function () { |
|
| 199 | + $queue->on('empty', function() { |
|
| 200 | 200 | $this->state = 'ready'; |
| 201 | 201 | }); |
| 202 | 202 | |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | $this->_container->set(get_class($module), $module); |
| 221 | 221 | |
| 222 | 222 | $this->register($module, array_merge(class_implements($module), array_slice(class_parents($module), 1))); |
| 223 | - } elseif(is_array($alias)) { |
|
| 223 | + } elseif (is_array($alias)) { |
|
| 224 | 224 | foreach ($alias as $name) { |
| 225 | 225 | if (!$this->has($name)) { |
| 226 | 226 | $this->register($module, $name); |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | //region Parser |
| 257 | 257 | public function setParser(XmlParser $parser) |
| 258 | 258 | { |
| 259 | - if($this->state !== "disconnected") { |
|
| 259 | + if ($this->state !== "disconnected") { |
|
| 260 | 260 | throw new \BadMethodCallException('Parser can be changed only when client is disconnected.'); |
| 261 | 261 | } |
| 262 | 262 | |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | )); |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | - $this->_connector->on('connect', function ($stream) { |
|
| 287 | + $this->_connector->on('connect', function($stream) { |
|
| 288 | 288 | return $this->handleConnect($stream); |
| 289 | 289 | }); |
| 290 | 290 | } |