Passed
Push — master ( 0aca7d...60550c )
by Fabio
06:00
created
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.