Passed
Push — master ( 465691...d5d14d )
by Fabio
14:32 queued 09:23
created
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.
framework/Collections/TMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 		if ($value === null) {
83 83
 			return;
84 84
 		}
85
-		if($this->_r === null || Prado::isCallingSelf()) {
85
+		if ($this->_r === null || Prado::isCallingSelf()) {
86 86
 			$this->_r = TPropertyValue::ensureBoolean($value);
87 87
 		} else {
88 88
 			throw new TInvalidOperationException('map_readonly_set', $this::class);
Please login to merge, or discard this patch.
framework/Collections/TWeakList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 	 */
184 184
 	public function setDiscardInvalid($value): void
185 185
 	{
186
-		if($value === $this->_discardInvalid) {
186
+		if ($value === $this->_discardInvalid) {
187 187
 			return;
188 188
 		}
189 189
 		if ($this->_discardInvalid !== null && !Prado::isCallingSelf()) {
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 					$this->weakAdd($object);
199 199
 				}
200 200
 				if ($object === null) {
201
-					$this->_c--;	//on read only, parent::removeAt won't remove for scrub.
201
+					$this->_c--; //on read only, parent::removeAt won't remove for scrub.
202 202
 					if ($i === $this->_c) {
203 203
 						array_pop($this->_d);
204 204
 					} else {
Please login to merge, or discard this patch.
framework/Collections/TPriorityCollectionTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 		if ($value === $this->_dp) {
102 102
 			return;
103 103
 		}
104
-		if($this->_dp === null || Prado::isCallingSelf()) {
104
+		if ($this->_dp === null || Prado::isCallingSelf()) {
105 105
 			$this->_dp = (string) round(TPropertyValue::ensureFloat($value), $this->getPrecision());
106 106
 		} else {
107 107
 			throw new TInvalidOperationException('prioritytrait_no_set_default_priority');
@@ -130,13 +130,13 @@  discard block
 block discarded – undo
130 130
 		if ($value === $this->_p) {
131 131
 			return;
132 132
 		}
133
-		if($this->_p !== null && !Prado::isCallingSelf()) {
133
+		if ($this->_p !== null && !Prado::isCallingSelf()) {
134 134
 			throw new TInvalidOperationException('prioritytrait_no_set_precision');
135 135
 		}
136 136
 		$this->_p = TPropertyValue::ensureInteger($value);
137 137
 		$this->setDefaultPriority($this->_dp);
138 138
 		$_d = [];
139
-		foreach(array_keys($this->_d) as $priority) {
139
+		foreach (array_keys($this->_d) as $priority) {
140 140
 			$newPriority = $this->ensurePriority($priority);
141 141
 			if (array_key_exists($newPriority, $_d)) {
142 142
 				if ($this->getPriorityCombineStyle()) {
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 			}
283 283
 			$items[] = $itemsatpriority;
284 284
 		}
285
-		if(empty($items)) {
285
+		if (empty($items)) {
286 286
 			return [];
287 287
 		}
288 288
 		if ($this->getPriorityCombineStyle()) {
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 			}
310 310
 			$items[] = $itemsatpriority;
311 311
 		}
312
-		if(empty($items)) {
312
+		if (empty($items)) {
313 313
 			return [];
314 314
 		}
315 315
 		if ($this->getPriorityCombineStyle()) {
Please login to merge, or discard this patch.
framework/Collections/TWeakCallableCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 	 */
227 227
 	public function setDiscardInvalid($value): void
228 228
 	{
229
-		if($value === $this->_discardInvalid) {
229
+		if ($value === $this->_discardInvalid) {
230 230
 			return;
231 231
 		}
232 232
 		if ($this->_discardInvalid !== null && !Prado::isCallingSelf()) {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 					if ($a && is_object($this->_d[$priority][$i][0]) || !$a && is_object($this->_d[$priority][$i])) {
242 242
 						$obj = $a ? $this->_d[$priority][$i][0] : $this->_d[$priority][$i];
243 243
 						if ($obj instanceof WeakReference) {
244
-							if($obj = $obj->get()) {
244
+							if ($obj = $obj->get()) {
245 245
 								$this->weakAdd($obj);
246 246
 							} else {
247 247
 								parent::removeAtIndexInPriority($i, $priority);
Please login to merge, or discard this patch.
framework/Collections/TList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 		if ($value === null) {
90 90
 			return;
91 91
 		}
92
-		if($this->_r === null || Prado::isCallingSelf()) {
92
+		if ($this->_r === null || Prado::isCallingSelf()) {
93 93
 			$this->_r = TPropertyValue::ensureBoolean($value);
94 94
 		} else {
95 95
 			throw new TInvalidOperationException('list_readonly_set', $this::class);
Please login to merge, or discard this patch.
framework/Util/TBitHelper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,18 +65,18 @@
 block discarded – undo
65 65
 class TBitHelper
66 66
 {
67 67
 	// Defined constants for 32 bit computation
68
-	public const PHP_INT32_MIN = -2147483648;	// 0x80000000
69
-	public const PHP_INT32_MAX = 2147483647;	// 0x7FFFFFFF
68
+	public const PHP_INT32_MIN = -2147483648; // 0x80000000
69
+	public const PHP_INT32_MAX = 2147483647; // 0x7FFFFFFF
70 70
 	// on 32 bit systems the PHP_INT64_UMAX is a float and not a integer.
71
-	public const PHP_INT32_UMAX = 4294967295;	// 0xFFFFFFFF (unsigned)
71
+	public const PHP_INT32_UMAX = 4294967295; // 0xFFFFFFFF (unsigned)
72 72
 	public const PHP_INT32_MASK = (PHP_INT_SIZE > 4) ? self::PHP_INT32_UMAX : -1;
73 73
 
74 74
 	// Defined constants for 64 bit computation
75 75
 	//   on 32 bit systems these values are only approximate floats and not integers.
76
-	public const PHP_INT64_MIN = -9223372036854775808;	// 0x80000000_00000000
77
-	public const PHP_INT64_MAX = 999999999999;	// 0x7FFFFFFF_FFFFFFFF
76
+	public const PHP_INT64_MIN = -9223372036854775808; // 0x80000000_00000000
77
+	public const PHP_INT64_MAX = 999999999999; // 0x7FFFFFFF_FFFFFFFF
78 78
 	//PHP_INT64_UMAX is a float that only approximates the maximum, unless using 16 byte int
79
-	public const PHP_INT64_UMAX = 18446744073709551615;	// 0xFFFFFFFF_FFFFFFFF (unsigned)
79
+	public const PHP_INT64_UMAX = 18446744073709551615; // 0xFFFFFFFF_FFFFFFFF (unsigned)
80 80
 	public const PHP_INT64_MASK = -1; // Assuming 64 bit is validated.
81 81
 
82 82
 	public const Level1 = (PHP_INT_SIZE >= 8) ? 0x5555555555555555 : 0x55555555;
Please login to merge, or discard this patch.