Passed
Push — master ( 43bd80...2c4130 )
by Fabio
10:58 queued 05:30
created
framework/Util/TClassBehavior.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 			throw new TInvalidOperationException('classbehavior_detach_wrong_owner', $this->getName());
128 128
 		}
129 129
 		parent::detach($component);
130
-		if($this->_owners->remove($component) === 0 && !$this->_owners->getCount()) {
130
+		if ($this->_owners->remove($component) === 0 && !$this->_owners->getCount()) {
131 131
 			$this->_owners = null;
132 132
 			$this->_name = null;
133 133
 			$this->_handlersInstalled = null;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 	protected function setHandlersStatus(TComponent $component, bool $attach): bool
229 229
 	{
230 230
 		$ref = is_array($this->_handlersInstalled) ? spl_object_id($component) : $component;
231
-		if($attach) {
231
+		if ($attach) {
232 232
 			if ($this->_owners && $this->_owners->contains($component) && !isset($this->_handlersInstalled[$ref])) {
233 233
 				$this->_handlersInstalled[$ref] = true;
234 234
 				return true;
Please login to merge, or discard this patch.
framework/Util/TBaseBehavior.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 	 */
149 149
 	public static function mergeHandlers(...$args): array
150 150
 	{
151
-		if(empty($args)) {
151
+		if (empty($args)) {
152 152
 			return [];
153 153
 		}
154 154
 		$combined = [];
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 			$strict = $this->getStrictEvents();
336 336
 			foreach ($this->eventsLog() as $event => $handlers) {
337 337
 				if ($strict || $this->hasEvent($event)) {
338
-					foreach($handlers as $handler) {
338
+					foreach ($handlers as $handler) {
339 339
 						$component->attachEventHandler($event, is_string($handler) ? [$this, $handler] : $handler, $priority);
340 340
 					}
341 341
 				}
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 			$strict = $this->getStrictEvents();
356 356
 			foreach ($this->eventsLog() as $event => $handlers) {
357 357
 				if ($strict || $this->hasEvent($event)) {
358
-					foreach($handlers as $handler) {
358
+					foreach ($handlers as $handler) {
359 359
 						$component->detachEventHandler($event, is_string($handler) ? [$this, $handler] : $handler);
360 360
 					}
361 361
 				}
Please login to merge, or discard this patch.
framework/Util/TBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
 		if ($this->getOwner() !== $component) {
222 222
 			return false;
223 223
 		}
224
-		if($attach ^ $this->_handlersInstalled) {
224
+		if ($attach ^ $this->_handlersInstalled) {
225 225
 			$this->_handlersInstalled = $attach;
226 226
 			return true;
227 227
 		}
Please login to merge, or discard this patch.
framework/TComponent.php 1 patch
Spacing   +2 added lines, -2 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)) {
@@ -1752,7 +1752,7 @@  discard block
 block discarded – undo
1752 1752
 		$behaviorObject->setName($name);
1753 1753
 		$isClassBehavior = $behaviorObject instanceof IClassBehavior;
1754 1754
 		unset(self::$_um[$class][$name]);
1755
-		if(empty(self::$_um[$class])) {
1755
+		if (empty(self::$_um[$class])) {
1756 1756
 			unset(self::$_um[$class]);
1757 1757
 		}
1758 1758
 		$results = $behaviorObject->raiseEvent('fxDetachClassBehavior', null, $param);
Please login to merge, or discard this patch.