@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | } |
| 154 | 154 | } |
| 155 | 155 | if ($notification instanceof TStreamNotificationCallback) { |
| 156 | - foreach($context as $property => $value) { |
|
| 156 | + foreach ($context as $property => $value) { |
|
| 157 | 157 | if (property_exists($notification, $property) || $notification->canSetProperty($property) || $notification->hasEvent($property)) { |
| 158 | 158 | $notification->setSubProperty($property, $value); |
| 159 | 159 | unset($context[$property]); |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | } |
| 162 | 162 | } |
| 163 | 163 | $param = null; |
| 164 | - if($notification) { |
|
| 164 | + if ($notification) { |
|
| 165 | 165 | $param = [self::NOTIFICATION => $notification]; |
| 166 | 166 | } |
| 167 | 167 | if (empty($context)) { |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | $this->_parameter->setBytesTransferred($bytes_transferred); |
| 313 | 313 | $this->_parameter->setBytesMax($bytes_max); |
| 314 | 314 | } |
| 315 | - switch($notification_code) { |
|
| 315 | + switch ($notification_code) { |
|
| 316 | 316 | case STREAM_NOTIFY_RESOLVE: // value: 1 |
| 317 | 317 | $this->onResolve($this->_parameter); |
| 318 | 318 | break; |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | break; |
| 371 | 371 | } |
| 372 | 372 | if ($this->_callbacks && $this->_callbacks->getCount()) { |
| 373 | - foreach($this->_callbacks as $callback) { |
|
| 373 | + foreach ($this->_callbacks as $callback) { |
|
| 374 | 374 | $callback($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max); |
| 375 | 375 | } |
| 376 | 376 | } |