Passed
Push — functest_ga ( e036e1...011955 )
by Fabio
05:41
created
framework/Web/Behaviors/TRequestConnectionUpgrade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 		if ($requestedUpgrade) {
70 70
 			$urlParams = array_merge(array_flip($requestedUpgrade), $urlParams);
71 71
 			$param->setParameter($urlParams); // Forward results
72
-			return $urlParams;	 // return for use
72
+			return $urlParams; // return for use
73 73
 		}
74 74
 	}
75 75
 }
Please login to merge, or discard this patch.
framework/Web/THttpRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -825,7 +825,7 @@
 block discarded – undo
825 825
 	 * @param array $urlParams The decoded url parameters to be updated or replaced
826 826
 	 * @return array|false|string
827 827
 	 */
828
-	public function onResolveRequest(array $serviceIDs, array $urlParams): false|string|array
828
+	public function onResolveRequest(array $serviceIDs, array $urlParams): false | string | array
829 829
 	{
830 830
 		$results = $this->raiseEvent('onResolveRequest', $this, new THttpRequestParameter($serviceIDs, $urlParams), TEventResults::EVENT_REVERSE);
831 831
 		while (count($results)) {
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/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.
framework/Collections/TWeakList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@
 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 {
Please login to merge, or discard this patch.
framework/TEventHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
 	 * @param bool $weak Return the handler with WeakReference instead of objects. Default false.
164 164
 	 * @return null|array|object|string The callable event handler.
165 165
 	 */
166
-	public function getHandler(bool $weak = false): null|string|object|array
166
+	public function getHandler(bool $weak = false): null | string | object | array
167 167
 	{
168 168
 		$handler = $this->_handler;
169 169
 		if (!$weak && $this->_weakObject) {
Please login to merge, or discard this patch.
framework/Util/TDbLogRoute.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * @return string The where clause for the various SQL statements.
148 148
 	 * @since 4.3.0
149 149
 	 */
150
-	protected function getLogWhere(?int $level, null|string|array $categories, ?float $minTime, ?float $maxTime, &$values): string
150
+	protected function getLogWhere(?int $level, null | string | array $categories, ?float $minTime, ?float $maxTime, &$values): string
151 151
 	{
152 152
 		$where = '';
153 153
 		$values = [];
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	 * @return string The where clause for the various SQL statements..
216 216
 	 * @since 4.3.0
217 217
 	 */
218
-	public function getDBLogCount(?int $level = null, null|string|array $categories = null, ?float $minTime = null, ?float $maxTime = null)
218
+	public function getDBLogCount(?int $level = null, null | string | array $categories = null, ?float $minTime = null, ?float $maxTime = null)
219 219
 	{
220 220
 		$values = [];
221 221
 		$where = $this->getLogWhere($level, $categories, $minTime, $maxTime, $values);
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 	 * @return \Prado\Data\TDbDataReader the logs from the database.
240 240
 	 * @since 4.3.0
241 241
 	 */
242
-	public function getDBLogs(?int $level = null, null|string|array $categories = null, ?float $minTime = null, ?float $maxTime = null, string $order = '', string $limit = '')
242
+	public function getDBLogs(?int $level = null, null | string | array $categories = null, ?float $minTime = null, ?float $maxTime = null, string $order = '', string $limit = '')
243 243
 	{
244 244
 		$values = [];
245 245
 		if ($order) {
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 	 * @return int the number of logs in the database.
268 268
 	 * @since 4.3.0
269 269
 	 */
270
-	public function deleteDBLog(?int $level = null, null|string|array $categories = null, ?float $minTime = null, ?float $maxTime = null)
270
+	public function deleteDBLog(?int $level = null, null | string | array $categories = null, ?float $minTime = null, ?float $maxTime = null)
271 271
 	{
272 272
 		$values = [];
273 273
 		$where = $this->getLogWhere($level, $categories, $minTime, $maxTime, $values);
Please login to merge, or discard this patch.