Passed
Push — master ( 60550c...9acbb8 )
by Fabio
06:08
created
framework/IO/TStreamNotificationCallback.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
framework/TComponent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
 		foreach ($classes as $class) {
514 514
 			if (isset(self::$_um[$class])) {
515 515
 				foreach (self::$_um[$class] as $name => $behavior) {
516
-					if(is_numeric($name)) {
516
+					if (is_numeric($name)) {
517 517
 						continue;
518 518
 					}
519 519
 					if (!array_key_exists($name, $classBehaviors)) {
@@ -1400,7 +1400,7 @@  discard block
 block discarded – undo
1400 1400
 		$name = strtolower($name);
1401 1401
 		$responses = [];
1402 1402
 
1403
-		if($param instanceof IEventParameter) {
1403
+		if ($param instanceof IEventParameter) {
1404 1404
 			$param->setEventName($name);
1405 1405
 		}
1406 1406
 
@@ -1764,7 +1764,7 @@  discard block
 block discarded – undo
1764 1764
 		$behaviorObject->setName($name);
1765 1765
 		$isClassBehavior = $behaviorObject instanceof IClassBehavior;
1766 1766
 		unset(self::$_um[$class][$name]);
1767
-		if(empty(self::$_um[$class])) {
1767
+		if (empty(self::$_um[$class])) {
1768 1768
 			unset(self::$_um[$class]);
1769 1769
 		}
1770 1770
 		$results = $behaviorObject->raiseEvent('fxDetachClassBehavior', null, $param);
@@ -1786,7 +1786,7 @@  discard block
 block discarded – undo
1786 1786
 			return $this->_m[$behaviorname];
1787 1787
 		}
1788 1788
 		if ((class_exists($behaviorname, false) || interface_exists($behaviorname, false)) && $this->_m) {
1789
-			foreach($this->_m->toArray() as $behavior) {
1789
+			foreach ($this->_m->toArray() as $behavior) {
1790 1790
 				if ($behavior instanceof $behaviorname) {
1791 1791
 					return $behavior;
1792 1792
 				}
Please login to merge, or discard this patch.