Passed
Pull Request — master (#986)
by
unknown
05:20
created
framework/Util/TLogRoute.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	public function setLevels($levels): static
150 150
 	{
151 151
 		if (is_int($levels)) {
152
-			$invalidLevels = ~array_reduce(static::$_levelValues, function ($levels, $level) {
152
+			$invalidLevels = ~array_reduce(static::$_levelValues, function($levels, $level) {
153 153
 				return $levels | $level;
154 154
 			}, 0);
155 155
 			if ($invalidLevels & $levels) {
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 		$next = [];
445 445
 		$nextNext = [];
446 446
 
447
-		foreach(array_reverse(array_keys($logs)) as $key) {
447
+		foreach (array_reverse(array_keys($logs)) as $key) {
448 448
 			$next[$key] = $nextNext[$logs[$key][TLogger::LOG_PID]] ?? null;
449 449
 			$nextNext[$logs[$key][TLogger::LOG_PID]] = $key;
450 450
 		}
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 		$profileLast = [];
455 455
 		$profileTotal = [];
456 456
 		$startTime = $_SERVER["REQUEST_TIME_FLOAT"];
457
-		foreach(array_keys($logs) as $key) {
457
+		foreach (array_keys($logs) as $key) {
458 458
 			if (isset($next[$key])) {
459 459
 				$logs[$key]['delta'] = $logs[$next[$key]][TLogger::LOG_TIME] - $logs[$key][TLogger::LOG_TIME];
460 460
 				$total = $logs[$key]['total'] = $logs[$key][TLogger::LOG_TIME] - $startTime;
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
 			if ($total > $this->_totalTime) {
466 466
 				$this->_totalTime = $total;
467 467
 			}
468
-			if(($logs[$key][TLogger::LOG_LEVEL] & TLogger::PROFILE_BEGIN) === TLogger::PROFILE_BEGIN) {
468
+			if (($logs[$key][TLogger::LOG_LEVEL] & TLogger::PROFILE_BEGIN) === TLogger::PROFILE_BEGIN) {
469 469
 				$profileToken = $logs[$key][TLogger::LOG_MESSAGE] . $logs[$key][TLogger::LOG_PID];
470 470
 				$profile[$profileToken] = $logs[$key];
471 471
 				$profileLast[$profileToken] = false;
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
 				$logs[$key]['total'] = 0;
475 475
 				$logs[$key][TLogger::LOG_MESSAGE] = 'Profile Begin: ' . $logs[$key][TLogger::LOG_MESSAGE];
476 476
 
477
-			} elseif(($logs[$key][TLogger::LOG_LEVEL] & TLogger::PROFILE_END) === TLogger::PROFILE_END) {
477
+			} elseif (($logs[$key][TLogger::LOG_LEVEL] & TLogger::PROFILE_END) === TLogger::PROFILE_END) {
478 478
 				$profileToken = $logs[$key][TLogger::LOG_MESSAGE] . $logs[$key][TLogger::LOG_PID];
479 479
 				if (isset($profile[$profileToken])) {
480 480
 					if ($profileLast[$profileToken] !== false) {
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
 	 * @param TLogger $logger logger instance
502 502
 	 * @param bool $final is the final collection of logs
503 503
 	 */
504
-	public function collectLogs(null|bool|TLogger $logger = null, bool $final = false)
504
+	public function collectLogs(null | bool | TLogger $logger = null, bool $final = false)
505 505
 	{
506 506
 		if (is_bool($logger)) {
507 507
 			$final = $logger;
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
 		$final |= $this instanceof IOutputLogRoute;
517 517
 		if ($count > 0 && ($final || $this->_processInterval > 0 && $count >= $this->_processInterval)) {
518 518
 			$logs = $this->_logs;
519
-			$meta = ['maxdelta' => $this->_maxDelta, 'total' => $this->_totalTime] ;
519
+			$meta = ['maxdelta' => $this->_maxDelta, 'total' => $this->_totalTime];
520 520
 			$this->_logs = [];
521 521
 			$this->_maxDelta = 0;
522 522
 			$this->_totalTime = 0;
Please login to merge, or discard this patch.
framework/Util/TBrowserLogRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
 				$weightLightCutOff = 0.4;
192 192
 				if ($normalizedTime > $weightCutOff) {
193 193
 					$weight = '; font-weight: ' . round(400 + 500 * ($normalizedTime - $weightCutOff) / (1 - $weightCutOff));
194
-				} elseif($normalizedTime < $weightLightCutOff) {
194
+				} elseif ($normalizedTime < $weightLightCutOff) {
195 195
 					$weight = '; font-weight: ' . round(400 - 300 * ($weightLightCutOff - $normalizedTime) / ($weightLightCutOff));
196 196
 				} else {
197 197
 					$weight = '';
Please login to merge, or discard this patch.
framework/Util/TLogger.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
 	 */
143 143
 	public function __construct(bool $flushShutdown = true)
144 144
 	{
145
-		if($flushShutdown) {
146
-			register_shutdown_function(function () {
145
+		if ($flushShutdown) {
146
+			register_shutdown_function(function() {
147 147
 				$this->onFlushLogs();
148 148
 				// flush any logs in the shutdown function.
149 149
 				register_shutdown_function([$this, 'onFlushLogs'], $this, true);
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 	 * @return int The number of logs.
215 215
 	 * @since 4.2.3
216 216
 	 */
217
-	public function getLogCount(null|bool|int $selector = null): int
217
+	public function getLogCount(null | bool | int $selector = null): int
218 218
 	{
219 219
 		if ($selector === null) {// logs @TLogRoute::processLogs after removing logged elements.
220 220
 			return count($this->_logs) + $this->_profileLogsCount;
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
 			return;
400 400
 		}
401 401
 
402
-		if(is_bool($sender)) {
402
+		if (is_bool($sender)) {
403 403
 			$final = $sender;
404 404
 			$sender = null;
405 405
 		}
@@ -416,14 +416,14 @@  discard block
 block discarded – undo
416 416
 		$this->deleteLogs();
417 417
 		$this->_flushing = false;
418 418
 		if (count($this->_flushingLog)) {
419
-			foreach($this->_flushingLog as $log) {
419
+			foreach ($this->_flushingLog as $log) {
420 420
 				$this->addLog($log, false); // $final = false to stop any possible recursion w/ low flushCount.
421 421
 			}
422 422
 		}
423 423
 		$this->_flushingLog = null;
424 424
 
425 425
 		$this->_profileLogsCount = 0;
426
-		foreach(array_keys($this->_profileLogs) as $key) {
426
+		foreach (array_keys($this->_profileLogs) as $key) {
427 427
 			$this->_profileLogs[$key][static::LOG_LEVEL] |= static::LOGGED;
428 428
 		}
429 429
 	}
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
 	 *   [6] => traces, when configured; null when absent
467 467
 	 *   [7] => process id)
468 468
 	 */
469
-	public function getLogs(?int $levels = null, null|array|string $categories = null, null|array|string $controls = null, null|int|float $timestamp = null, ?int $pid = null)
469
+	public function getLogs(?int $levels = null, null | array | string $categories = null, null | array | string $controls = null, null | int | float $timestamp = null, ?int $pid = null)
470 470
 	{
471 471
 		$this->_levels = $levels;
472 472
 		if (!empty($categories) && !is_array($categories)) {
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
 	public function mergeLogs(array $logs)
516 516
 	{
517 517
 		$count = count($logs);
518
-		foreach($logs as $log) {
518
+		foreach ($logs as $log) {
519 519
 			$log[static::LOG_LEVEL] &= ~TLogger::LOGGED;
520 520
 			$this->addLog($log, !(--$count));
521 521
 		}
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
 	 * @param ?int $pid
549 549
 	 * @return array The logs being delete are returned.
550 550
 	 */
551
-	public function deleteLogs(?int $levels = null, null|string|array $categories = null, null|string|array $controls = null, null|int|float $timestamp = null, ?int $pid = null): array
551
+	public function deleteLogs(?int $levels = null, null | string | array $categories = null, null | string | array $controls = null, null | int | float $timestamp = null, ?int $pid = null): array
552 552
 	{
553 553
 		$this->_levels = $levels;
554 554
 		if (!empty($categories) && !is_array($categories)) {
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
 			}
633 633
 			$c = $category[0] ?? 0;
634 634
 			if ($c === '!' || $c === '~') {
635
-				if(!$exclude) {
635
+				if (!$exclude) {
636 636
 					$category = substr($category, 1);
637 637
 					if ($log[static::LOG_CATEGORY] === $category || str_ends_with($category, '*') && strpos($log[static::LOG_CATEGORY], rtrim($category, '*')) === 0) {
638 638
 						$exclude = true;
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
 			}
690 690
 			$c = $control[0] ?? 0;
691 691
 			if ($c === '!' || $c === '~') {
692
-				if(!$exclude) {
692
+				if (!$exclude) {
693 693
 					$control = substr($control, 1);
694 694
 					if ($log[static::LOG_CONTROL] === $control || str_ends_with($control, '*') && strpos($log[static::LOG_CONTROL], rtrim($control, '*')) === 0) {
695 695
 						$exclude = true;
Please login to merge, or discard this patch.
framework/Collections/TCollectionSubscription.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 * @param ?bool $autoSubscribe Default null for autoSubscribing when there is a
42 42
 	 *   key or item.
43 43
 	 */
44
-	public function __construct(?ArrayAccess $collection = null, mixed $key = null, mixed $item = null, null|int|float $priority = null, null|bool|int $isAssociative = 1, ?bool $autoSubscribe = null)
44
+	public function __construct(?ArrayAccess $collection = null, mixed $key = null, mixed $item = null, null | int | float $priority = null, null | bool | int $isAssociative = 1, ?bool $autoSubscribe = null)
45 45
 	{
46 46
 		parent::__construct($collection, $key, $item, $priority, $isAssociative, $autoSubscribe);
47 47
 	}
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	 * The ArrayAccess collection for getting the array without pass by reference.
51 51
 	 * @param bool $weak Return the collection in as a WeakReference.
52 52
 	 */
53
-	public function getCollection(bool $weak = false): null|ArrayAccess|WeakReference
53
+	public function getCollection(bool $weak = false): null | ArrayAccess | WeakReference
54 54
 	{
55 55
 		return $this->getArray($weak);
56 56
 	}
Please login to merge, or discard this patch.
framework/Collections/TWeakList.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 	 */
122 122
 	protected function weakCustomAdd(object $object)
123 123
 	{
124
-		if($object instanceof TEventHandler) {
124
+		if ($object instanceof TEventHandler) {
125 125
 			$object = $object->getHandlerObject();
126 126
 			$this->_eventHandlerCount++;
127 127
 		}
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 	 */
138 138
 	protected function weakCustomRemove(object $object)
139 139
 	{
140
-		if($object instanceof TEventHandler) {
140
+		if ($object instanceof TEventHandler) {
141 141
 			$object = $object->getHandlerObject();
142 142
 			$this->_eventHandlerCount--;
143 143
 		}
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 				$item[$key] = $element;
162 162
 			}
163 163
 		} elseif (is_object($item)) {
164
-			if($item instanceof WeakReference) {
164
+			if ($item instanceof WeakReference) {
165 165
 				$item = $item->get();
166 166
 			} elseif (($item instanceof TEventHandler) && !$item->hasHandler()) {
167 167
 				$item = null;
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 				if ($isEventHandler = ($object instanceof TEventHandler)) {
208 208
 					$object = $object->getHandlerObject(true);
209 209
 				}
210
-				if(($object instanceof WeakReference) && $object->get() === null) {
210
+				if (($object instanceof WeakReference) && $object->get() === null) {
211 211
 					$this->_c--;
212 212
 					if ($i === $this->_c) {
213 213
 						array_pop($this->_d);
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 	 */
248 248
 	public function setDiscardInvalid($value): void
249 249
 	{
250
-		if($value === $this->_discardInvalid) {
250
+		if ($value === $this->_discardInvalid) {
251 251
 			return;
252 252
 		}
253 253
 		if ($this->_discardInvalid !== null && !Prado::isCallingSelf()) {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 						$object = $object->get();
267 267
 					}
268 268
 					if ($object === null) {
269
-						$this->_c--;	//on read only, parent::removeAt won't remove for scrub.
269
+						$this->_c--; //on read only, parent::removeAt won't remove for scrub.
270 270
 						if ($i === $this->_c) {
271 271
 							array_pop($this->_d);
272 272
 						} else {
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 		$this->filterItemForInput($item);
446 446
 		if (($index = parent::indexOf($item)) === -1 && $this->_eventHandlerCount) {
447 447
 			$index = false;
448
-			foreach($this->_d as $index => $dItem) {
448
+			foreach ($this->_d as $index => $dItem) {
449 449
 				if (($dItem instanceof TEventHandler) && $dItem->isSameHandler($item, true)) {
450 450
 					break;
451 451
 				}
Please login to merge, or discard this patch.
framework/Collections/TWeakCallableCollection.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 	 */
137 137
 	protected function weakCustomAdd(object $object)
138 138
 	{
139
-		if($object instanceof TEventHandler) {
139
+		if ($object instanceof TEventHandler) {
140 140
 			$object = $object->getHandlerObject();
141 141
 			if (!$object) {
142 142
 				return;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 	 */
156 156
 	protected function weakCustomRemove(object $object)
157 157
 	{
158
-		if($object instanceof TEventHandler) {
158
+		if ($object instanceof TEventHandler) {
159 159
 			$object = $object->getHandlerObject();
160 160
 			if (!$object) {
161 161
 				return;
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 				$handler = null;
196 196
 			}
197 197
 		} elseif (is_object($handler)) {
198
-			if($handler instanceof WeakReference) {
198
+			if ($handler instanceof WeakReference) {
199 199
 				$handler = $handler->get();
200 200
 			} elseif (($handler instanceof TEventHandler) && !$handler->hasHandler()) {
201 201
 				$handler = null;
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 	 */
295 295
 	public function setDiscardInvalid($value): void
296 296
 	{
297
-		if($value === $this->_discardInvalid) {
297
+		if ($value === $this->_discardInvalid) {
298 298
 			return;
299 299
 		}
300 300
 		if ($this->_discardInvalid !== null && !Prado::isCallingSelf()) {
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 							$obj = $obj->getHandlerObject(true);
314 314
 						}
315 315
 						if ($obj instanceof WeakReference) {
316
-							if($obj = $obj->get()) {
316
+							if ($obj = $obj->get()) {
317 317
 								$this->weakAdd($obj);
318 318
 							} else {
319 319
 								parent::removeAtIndexInPriority($i, $priority);
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
 			throw new TInvalidDataValueException('weakcallablecollection_callable_required');
525 525
 		}
526 526
 		$return = null;
527
-		foreach($items as $item) {
527
+		foreach ($items as $item) {
528 528
 			$itemPriority = null;
529 529
 			if (($isPriorityItem = ($item instanceof IPriorityItem)) && ($priority === null || !is_numeric($priority))) {
530 530
 				$itemPriority = $priority = $item->getPriority();
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 			$result = parent::insertAtIndexInPriority($item, $index, $priority, $preserveCache);
541 541
 			if ($return === null) {
542 542
 				$return = $result;
543
-			} elseif(!is_array($return)) {
543
+			} elseif (!is_array($return)) {
544 544
 				$return = [$return, $result];
545 545
 			} else {
546 546
 				$return[] = $result;
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
 					continue;
714 714
 				} elseif ($p == $priority) {
715 715
 					$index = false;
716
-					foreach($this->_d[$p] as $index => $pItem) {
716
+					foreach ($this->_d[$p] as $index => $pItem) {
717 717
 						if ($item === $pItem || ($pItem instanceof TEventHandler) && $pItem->isSameHandler($item, true)) {
718 718
 							break;
719 719
 						}
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
 		$this->flattenPriorities();
732 732
 
733 733
 		if (($index = array_search($item, $this->_fd, true)) === false && $this->_eventHandlerCount) {
734
-			foreach($this->_fd as $index => $pItem) {
734
+			foreach ($this->_fd as $index => $pItem) {
735 735
 				if (($pItem instanceof TEventHandler) && $pItem->isSameHandler($item, true)) {
736 736
 					break;
737 737
 				}
@@ -783,8 +783,8 @@  discard block
 block discarded – undo
783 783
 		$absindex = 0;
784 784
 		foreach (array_keys($this->_d) as $priority) {
785 785
 			$index = false;
786
-			foreach($this->_d[$priority] as $index => $pItem) {
787
-				if(($pItem instanceof TEventHandler) && $pItem->isSameHandler($item, true)) {
786
+			foreach ($this->_d[$priority] as $index => $pItem) {
787
+				if (($pItem instanceof TEventHandler) && $pItem->isSameHandler($item, true)) {
788 788
 					break;
789 789
 				}
790 790
 				$index = false;
Please login to merge, or discard this patch.
framework/TEventSubscription.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	 * @param ?bool $autoSubscribe
50 50
 	 * @param mixed $index
51 51
 	 */
52
-	public function __construct(?TComponent $component = null, mixed $event = null, mixed $handler = null, null|int|float $priority = null, ?bool $autoSubscribe = null, mixed $index = null)
52
+	public function __construct(?TComponent $component = null, mixed $event = null, mixed $handler = null, null | int | float $priority = null, ?bool $autoSubscribe = null, mixed $index = null)
53 53
 	{
54 54
 		if ($component) {
55 55
 			$this->setComponent($component);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * @param bool $weak
66 66
 	 * @return null|array|ArrayAccess|WeakReference The Event Handler from the component.
67 67
 	 */
68
-	public function &getArray(bool $weak = false): array|ArrayAccess|WeakReference|null
68
+	public function &getArray(bool $weak = false): array | ArrayAccess | WeakReference | null
69 69
 	{
70 70
 		if ($handlers = parent::getArray($weak)) {
71 71
 			return $handlers;
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 * @param null|array|ArrayAccess $value
101 101
 	 * @throws TInvalidOperationException This property cannot be set directly.
102 102
 	 */
103
-	public function setArray(null|array|ArrayAccess &$value): static
103
+	public function setArray(null | array | ArrayAccess & $value): static
104 104
 	{
105 105
 		if ($value !== null) {
106 106
 			throw new TInvalidOperationException('eventsubscription_no_setarray');
Please login to merge, or discard this patch.
framework/Util/Helpers/TArrayHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	 * @return bool is the array a list.
29 29
 	 * @link https://www.php.net/manual/en/function.array-is-list.php
30 30
 	 */
31
-	public static function array_is_list(array|Traversable $array): bool
31
+	public static function array_is_list(array | Traversable $array): bool
32 32
 	{
33 33
 		if (function_exists('array_is_list') && !($array instanceof Traversable)) {
34 34
 			return array_is_list($array);
Please login to merge, or discard this patch.
framework/Collections/TArraySubscription.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	/**
79 79
 	 * @var null|int|string The key that the item is added to the array.
80 80
 	 */
81
-	private null|int|string $_key = null;
81
+	private null | int | string $_key = null;
82 82
 
83 83
 	/**
84 84
 	 * @var mixed The item subscribing to the array.
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	 * @var null|bool|int Is the array an associative array.  False for a "list" style array.
96 96
 	 *   null for discovery of the style of array on subscribe.  default true.
97 97
 	 */
98
-	protected null|bool|int $_isAssoc = true;
98
+	protected null | bool | int $_isAssoc = true;
99 99
 
100 100
 	/**
101 101
 	 * @var bool Is the item inserted into the collection.
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	 *   the item.  Default 1 for true except for TList.
136 136
 	 * @param bool $autoSubscribe Should the
137 137
 	 */
138
-	public function __construct(mixed &$array = null, mixed $key = null, mixed $item = null, null|int|float $priority = null, null|bool|int $isAssociative = 1, ?bool $autoSubscribe = null)
138
+	public function __construct(mixed &$array = null, mixed $key = null, mixed $item = null, null | int | float $priority = null, null | bool | int $isAssociative = 1, ?bool $autoSubscribe = null)
139 139
 	{
140 140
 		$this->setArray($array);
141 141
 		$this->setKey($key);
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 	 * @param bool $weak
178 178
 	 * @return array|ArrayAccess The subscribed array-collection, passed by reference.
179 179
 	 */
180
-	public function &getArray(bool $weak = false): array|ArrayAccess|WeakReference|null
180
+	public function &getArray(bool $weak = false): array | ArrayAccess | WeakReference | null
181 181
 	{
182 182
 		if ($this->_array instanceof WeakReference) {
183 183
 			if ($weak) {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	 * @throws TInvalidOperationException If the item is already subscribed.
203 203
 	 * @return static The current object.
204 204
 	 */
205
-	public function setArray(null|array|ArrayAccess &$value): static
205
+	public function setArray(null | array | ArrayAccess & $value): static
206 206
 	{
207 207
 		if ($this->_isSubscribed) {
208 208
 			throw new TInvalidOperationException('arraysubscription_no_change', 'Array');
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 	 * with the TList (by {@see \Prado\Collections\TList::indexOf()}) or array (by array_search).
224 224
 	 * @return null|int|string The key for the item subscription to the array.
225 225
 	 */
226
-	public function getKey(): null|int|string
226
+	public function getKey(): null | int | string
227 227
 	{
228 228
 		$collection = &$this->getArray();
229 229
 		if ($this->_isSubscribed && $this->_key === null) {
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 	 *   as a list from (0, ..., count() - 1).  if null, where needed, the "list"ness
323 323
 	 *   of the array will be determined by {@see \Prado\Util\Helpers\TArrayHelper::array_is_list()}.
324 324
 	 */
325
-	public function getIsAssociative(): null|bool|int
325
+	public function getIsAssociative(): null | bool | int
326 326
 	{
327 327
 		return $this->_isAssoc;
328 328
 	}
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 	 * @throws TInvalidOperationException If the item is already subscribed.
335 335
 	 * @return static The current object.
336 336
 	 */
337
-	public function setIsAssociative(null|bool|int $value = null): static
337
+	public function setIsAssociative(null | bool | int $value = null): static
338 338
 	{
339 339
 		if ($this->_isSubscribed) {
340 340
 			throw new TInvalidOperationException('arraysubscription_no_change', 'Key');
Please login to merge, or discard this patch.