Passed
Push — master ( 60550c...9acbb8 )
by Fabio
06:08
created
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/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/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
 		}
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 				$this->filterItemForOutput($item[$key]);
157 157
 			}
158 158
 		} elseif (is_object($item)) {
159
-			if($item instanceof WeakReference) {
159
+			if ($item instanceof WeakReference) {
160 160
 				$item = $item->get();
161 161
 			} elseif (($item instanceof TEventHandler) && !$item->hasHandler()) {
162 162
 				$item = null;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 				if ($isEventHandler = ($object instanceof TEventHandler)) {
198 198
 					$object = $object->getHandlerObject(true);
199 199
 				}
200
-				if(($object instanceof WeakReference) && $object->get() === null) {
200
+				if (($object instanceof WeakReference) && $object->get() === null) {
201 201
 					$this->_c--;
202 202
 					if ($i === $this->_c) {
203 203
 						array_pop($this->_d);
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 	 */
238 238
 	public function setDiscardInvalid($value): void
239 239
 	{
240
-		if($value === $this->_discardInvalid) {
240
+		if ($value === $this->_discardInvalid) {
241 241
 			return;
242 242
 		}
243 243
 		if ($this->_discardInvalid !== null && !Prado::isCallingSelf()) {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 						$object = $object->get();
257 257
 					}
258 258
 					if ($object === null) {
259
-						$this->_c--;	//on read only, parent::removeAt won't remove for scrub.
259
+						$this->_c--; //on read only, parent::removeAt won't remove for scrub.
260 260
 						if ($i === $this->_c) {
261 261
 							array_pop($this->_d);
262 262
 						} else {
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 		$this->filterItemForInput($item);
436 436
 		if (($index = parent::indexOf($item)) === -1 && $this->_eventHandlerCount) {
437 437
 			$index = false;
438
-			foreach($this->_d as $index => $dItem) {
438
+			foreach ($this->_d as $index => $dItem) {
439 439
 				if (($dItem instanceof TEventHandler) && $dItem->isSameHandler($item, true)) {
440 440
 					break;
441 441
 				}
Please login to merge, or discard this patch.
framework/TEventHandler.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 */
108 108
 	public function __construct(mixed $handler, mixed $data = null)
109 109
 	{
110
-		if(!is_callable($handler)) {
110
+		if (!is_callable($handler)) {
111 111
 			throw new TInvalidDataTypeException('eventhandler_not_callable');
112 112
 		}
113 113
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	 * @param bool $weak Return the handler with WeakReference instead of objects. Default false.
160 160
 	 * @return null|array|object|string The callable event handler.
161 161
 	 */
162
-	public function getHandler(bool $weak = false): null|string|object|array
162
+	public function getHandler(bool $weak = false): null | string | object | array
163 163
 	{
164 164
 		$handler = $this->_handler;
165 165
 		if (!$weak && $this->_weakObject) {
@@ -209,13 +209,13 @@  discard block
 block discarded – undo
209 209
 		$handler = null;
210 210
 		if (is_array($this->_handler) && is_object($this->_handler[0])) {
211 211
 			$handler = $this->_handler[0];
212
-		} elseif($this->_handler instanceof TEventHandler) {
212
+		} elseif ($this->_handler instanceof TEventHandler) {
213 213
 			return $this->_handler->getHandlerObject($weak);
214
-		} elseif(is_object($this->_handler)) {
214
+		} elseif (is_object($this->_handler)) {
215 215
 			$handler = $this->_handler;
216 216
 
217 217
 		}
218
-		if(!$weak && $this->_weakObject) {
218
+		if (!$weak && $this->_weakObject) {
219 219
 			$handler = $handler->get();
220 220
 		}
221 221
 		return $handler;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 	 */
229 229
 	public function hasHandler(): bool
230 230
 	{
231
-		if($this->_handler instanceof TEventHandler) {
231
+		if ($this->_handler instanceof TEventHandler) {
232 232
 			return $this->_handler->hasHandler();
233 233
 		}
234 234
 		return $this->getHandler() !== null;
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 	 */
266 266
 	public function hasWeakObject(): bool
267 267
 	{
268
-		if($this->_handler instanceof TEventHandler) {
268
+		if ($this->_handler instanceof TEventHandler) {
269 269
 			return $this->_handler->hasWeakObject();
270 270
 		}
271 271
 		return $this->_weakObject;
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 			$offset = (int) $offset;
327 327
 			if ($offset === 2) {
328 328
 				return $this->_data;
329
-			} elseif(is_array($this->_handler)) {
329
+			} elseif (is_array($this->_handler)) {
330 330
 				if ($offset === 0) {
331 331
 					if ($this->_weakObject) {
332 332
 						return $this->_handler[$offset]->get();
Please login to merge, or discard this patch.
framework/Util/Helpers/TEscCharsetConverter.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -32,47 +32,47 @@
 block discarded – undo
32 32
 	public const ESC_CHAR_ENCODINGS_MAP = [
33 33
 			"\x1B\x25\x47" => 'UTF-8', // ESC-'%G'
34 34
 
35
-			"\x1B\x28\x40" => 'ASCII',		"\x1B\x29\x40" => 'ASCII',		"\x1B\x2A\x40" => 'ASCII',		"\x1B\x2B\x40" => 'ASCII',
35
+			"\x1B\x28\x40" => 'ASCII', "\x1B\x29\x40" => 'ASCII', "\x1B\x2A\x40" => 'ASCII', "\x1B\x2B\x40" => 'ASCII',
36 36
 			"\x1B\x28\x41" => 'ASCII.en_GB', "\x1B\x29\x41" => 'ASCII.en_GB', "\x1B\x2A\x41" => 'ASCII.en_GB', "\x1B\x2B\x41" => 'ASCII.en_GB',
37 37
 			"\x1B\x28\x42" => 'ASCII.en_US', "\x1B\x29\x42" => 'ASCII.en_US', "\x1B\x2A\x42" => 'ASCII.en_US', "\x1B\x2B\x42" => 'ASCII.en_US',
38
-			"\x1B\x28\x43" => 'ASCII.fi',	"\x1B\x29\x43" => 'ASCII.fi',	"\x1B\x2A\x43" => 'ASCII.fi',	"\x1B\x2B\x43" => 'ASCII.fi',
39
-			"\x1B\x28\x44" => 'ASCII.sv',	"\x1B\x29\x44" => 'ASCII.sv',	"\x1B\x2A\x44" => 'ASCII.sv',	"\x1B\x2B\x44" => 'ASCII.sv',
40
-			"\x1B\x28\x45" => 'ASCII.no',	"\x1B\x29\x45" => 'ASCII.no',	"\x1B\x2A\x45" => 'ASCII.no',	"\x1B\x2B\x45" => 'ASCII.no',
41
-			"\x1B\x28\x46" => 'ASCII.no',	"\x1B\x29\x46" => 'ASCII.no',	"\x1B\x2A\x46" => 'ASCII.no',	"\x1B\x2B\x46" => 'ASCII.no',
42
-			"\x1B\x28\x47" => 'ASCII.se',	"\x1B\x29\x47" => 'ASCII.se',	"\x1B\x2A\x47" => 'ASCII.se',	"\x1B\x2B\x47" => 'ASCII.se',
43
-			"\x1B\x28\x49" => 'JIS_X0201',	"\x1B\x29\x49" => 'JIS_X0201',	"\x1B\x2A\x49" => 'JIS_X0201',	"\x1B\x2B\x49" => 'JIS_X0201',
44
-			"\x1B\x28\x4A" => 'JIS_X0201',	"\x1B\x29\x4A" => 'JIS_X0201',	"\x1B\x2A\x4A" => 'JIS_X0201',	"\x1B\x2B\x4A" => 'JIS_X0201',
45
-			"\x1B\x28\x4B" => 'ASCII.de',	"\x1B\x29\x4B" => 'ASCII.de',	"\x1B\x2A\x4B" => 'ASCII.de',	"\x1B\x2B\x4B" => 'ASCII.de',
46
-			"\x1B\x28\x4C" => 'ASCII.pt',	"\x1B\x29\x4C" => 'ASCII.pt',	"\x1B\x2A\x4C" => 'ASCII.pt',	"\x1B\x2B\x4C" => 'ASCII.pt',
47
-			"\x1B\x28\x4E" => 'ISO-5427',	"\x1B\x29\x4E" => 'ISO-5427',	"\x1B\x2A\x4E" => 'ISO-5427',	"\x1B\x2B\x4E" => 'ISO-5427',
48
-			"\x1B\x28\x54" => 'ISO646-CN',	"\x1B\x29\x54" => 'ISO646-CN',	"\x1B\x2A\x54" => 'ISO646-CN',	"\x1B\x2B\x54" => 'ISO646-CN',
49
-			"\x1B\x28\x59" => 'ASCII.it',	"\x1B\x29\x59" => 'ASCII.it',	"\x1B\x2A\x59" => 'ASCII.it',	"\x1B\x2B\x59" => 'ASCII.it',
50
-			"\x1B\x28\x5A" => 'ASCII.es',	"\x1B\x29\x5A" => 'ASCII.es',	"\x1B\x2A\x5A" => 'ASCII.es',	"\x1B\x2B\x5A" => 'ASCII.es',
51
-			"\x1B\x28\x5B" => 'ASCII.el',	"\x1B\x29\x5B" => 'ASCII.el',	"\x1B\x2A\x5B" => 'ASCII.el',	"\x1B\x2B\x5B" => 'ASCII.el',
52
-			"\x1B\x28\x60" => 'ASCII.no',	"\x1B\x29\x60" => 'ASCII.no',	"\x1B\x2A\x60" => 'ASCII.no',	"\x1B\x2B\x60" => 'ASCII.no',
53
-			"\x1B\x28\x66" => 'ASCII.fr',	"\x1B\x29\x66" => 'ASCII.fr',	"\x1B\x2A\x66" => 'ASCII.fr',	"\x1B\x2B\x66" => 'ASCII.fr',
54
-			"\x1B\x28\x67" => 'ASCII.pt',	"\x1B\x29\x67" => 'ASCII.pt',	"\x1B\x2A\x67" => 'ASCII.pt',	"\x1B\x2B\x67" => 'ASCII.pt',
55
-			"\x1B\x28\x68" => 'ASCII.es',	"\x1B\x29\x68" => 'ASCII.es',	"\x1B\x2A\x68" => 'ASCII.es',	"\x1B\x2B\x68" => 'ASCII.es',
56
-			"\x1B\x28\x69" => 'ASCII.hu',	"\x1B\x29\x69" => 'ASCII.hu',	"\x1B\x2A\x69" => 'ASCII.hu',	"\x1B\x2B\x69" => 'ASCII.hu',
38
+			"\x1B\x28\x43" => 'ASCII.fi', "\x1B\x29\x43" => 'ASCII.fi', "\x1B\x2A\x43" => 'ASCII.fi', "\x1B\x2B\x43" => 'ASCII.fi',
39
+			"\x1B\x28\x44" => 'ASCII.sv', "\x1B\x29\x44" => 'ASCII.sv', "\x1B\x2A\x44" => 'ASCII.sv', "\x1B\x2B\x44" => 'ASCII.sv',
40
+			"\x1B\x28\x45" => 'ASCII.no', "\x1B\x29\x45" => 'ASCII.no', "\x1B\x2A\x45" => 'ASCII.no', "\x1B\x2B\x45" => 'ASCII.no',
41
+			"\x1B\x28\x46" => 'ASCII.no', "\x1B\x29\x46" => 'ASCII.no', "\x1B\x2A\x46" => 'ASCII.no', "\x1B\x2B\x46" => 'ASCII.no',
42
+			"\x1B\x28\x47" => 'ASCII.se', "\x1B\x29\x47" => 'ASCII.se', "\x1B\x2A\x47" => 'ASCII.se', "\x1B\x2B\x47" => 'ASCII.se',
43
+			"\x1B\x28\x49" => 'JIS_X0201', "\x1B\x29\x49" => 'JIS_X0201', "\x1B\x2A\x49" => 'JIS_X0201', "\x1B\x2B\x49" => 'JIS_X0201',
44
+			"\x1B\x28\x4A" => 'JIS_X0201', "\x1B\x29\x4A" => 'JIS_X0201', "\x1B\x2A\x4A" => 'JIS_X0201', "\x1B\x2B\x4A" => 'JIS_X0201',
45
+			"\x1B\x28\x4B" => 'ASCII.de', "\x1B\x29\x4B" => 'ASCII.de', "\x1B\x2A\x4B" => 'ASCII.de', "\x1B\x2B\x4B" => 'ASCII.de',
46
+			"\x1B\x28\x4C" => 'ASCII.pt', "\x1B\x29\x4C" => 'ASCII.pt', "\x1B\x2A\x4C" => 'ASCII.pt', "\x1B\x2B\x4C" => 'ASCII.pt',
47
+			"\x1B\x28\x4E" => 'ISO-5427', "\x1B\x29\x4E" => 'ISO-5427', "\x1B\x2A\x4E" => 'ISO-5427', "\x1B\x2B\x4E" => 'ISO-5427',
48
+			"\x1B\x28\x54" => 'ISO646-CN', "\x1B\x29\x54" => 'ISO646-CN', "\x1B\x2A\x54" => 'ISO646-CN', "\x1B\x2B\x54" => 'ISO646-CN',
49
+			"\x1B\x28\x59" => 'ASCII.it', "\x1B\x29\x59" => 'ASCII.it', "\x1B\x2A\x59" => 'ASCII.it', "\x1B\x2B\x59" => 'ASCII.it',
50
+			"\x1B\x28\x5A" => 'ASCII.es', "\x1B\x29\x5A" => 'ASCII.es', "\x1B\x2A\x5A" => 'ASCII.es', "\x1B\x2B\x5A" => 'ASCII.es',
51
+			"\x1B\x28\x5B" => 'ASCII.el', "\x1B\x29\x5B" => 'ASCII.el', "\x1B\x2A\x5B" => 'ASCII.el', "\x1B\x2B\x5B" => 'ASCII.el',
52
+			"\x1B\x28\x60" => 'ASCII.no', "\x1B\x29\x60" => 'ASCII.no', "\x1B\x2A\x60" => 'ASCII.no', "\x1B\x2B\x60" => 'ASCII.no',
53
+			"\x1B\x28\x66" => 'ASCII.fr', "\x1B\x29\x66" => 'ASCII.fr', "\x1B\x2A\x66" => 'ASCII.fr', "\x1B\x2B\x66" => 'ASCII.fr',
54
+			"\x1B\x28\x67" => 'ASCII.pt', "\x1B\x29\x67" => 'ASCII.pt', "\x1B\x2A\x67" => 'ASCII.pt', "\x1B\x2B\x67" => 'ASCII.pt',
55
+			"\x1B\x28\x68" => 'ASCII.es', "\x1B\x29\x68" => 'ASCII.es', "\x1B\x2A\x68" => 'ASCII.es', "\x1B\x2B\x68" => 'ASCII.es',
56
+			"\x1B\x28\x69" => 'ASCII.hu', "\x1B\x29\x69" => 'ASCII.hu', "\x1B\x2A\x69" => 'ASCII.hu', "\x1B\x2B\x69" => 'ASCII.hu',
57 57
 			"\x1B\x28\x77" => 'ASCII.fr_CA', "\x1B\x29\x77" => 'ASCII.fr_CA', "\x1B\x2A\x77" => 'ASCII.fr_CA', "\x1B\x2B\x77" => 'ASCII.fr_CA',
58 58
 			"\x1B\x28\x78" => 'ASCII.fr_CA', "\x1B\x29\x78" => 'ASCII.fr_CA', "\x1B\x2A\x78" => 'ASCII.fr_CA', "\x1B\x2B\x78" => 'ASCII.fr_CA',
59
-			"\x1B\x28\x7A" => 'ASCII.yu',	"\x1B\x29\x7A" => 'ASCII.yu',	"\x1B\x2A\x7A" => 'ASCII.yu',	"\x1B\x2B\x7A" => 'ASCII.yu',
59
+			"\x1B\x28\x7A" => 'ASCII.yu', "\x1B\x29\x7A" => 'ASCII.yu', "\x1B\x2A\x7A" => 'ASCII.yu', "\x1B\x2B\x7A" => 'ASCII.yu',
60 60
 
61
-			"\x1B\x2C\x41" => 'ISO-8859-1',	"\x1B\x2D\x41" => 'ISO-8859-1',	"\x1B\x2E\x41" => 'ISO-8859-1',	"\x1B\x2F\x41" => 'ISO-8859-1',
62
-			"\x1B\x2C\x42" => 'ISO-8859-2',	"\x1B\x2D\x42" => 'ISO-8859-2',	"\x1B\x2E\x42" => 'ISO-8859-2',	"\x1B\x2F\x42" => 'ISO-8859-2',
63
-			"\x1B\x2C\x43" => 'ISO-8859-3',	"\x1B\x2D\x43" => 'ISO-8859-3',	"\x1B\x2E\x43" => 'ISO-8859-3',	"\x1B\x2F\x43" => 'ISO-8859-3',
64
-			"\x1B\x2C\x44" => 'ISO-8859-4',	"\x1B\x2D\x44" => 'ISO-8859-4',	"\x1B\x2E\x44" => 'ISO-8859-4',	"\x1B\x2F\x44" => 'ISO-8859-4',
65
-			"\x1B\x2C\x45" => 'ISO-8859-5',	"\x1B\x2D\x45" => 'ISO-8859-5',	"\x1B\x2E\x45" => 'ISO-8859-5',	"\x1B\x2F\x45" => 'ISO-8859-5',
66
-			"\x1B\x2C\x46" => 'ISO-8859-7',	"\x1B\x2D\x46" => 'ISO-8859-7',	"\x1B\x2E\x46" => 'ISO-8859-7',	"\x1B\x2F\x46" => 'ISO-8859-7',
67
-			"\x1B\x2C\x47" => 'ISO-8859-6',	"\x1B\x2D\x47" => 'ISO-8859-6',	"\x1B\x2E\x47" => 'ISO-8859-6',	"\x1B\x2F\x47" => 'ISO-8859-6',
68
-			"\x1B\x2C\x48" => 'ISO-8859-8',	"\x1B\x2D\x48" => 'ISO-8859-8',	"\x1B\x2E\x48" => 'ISO-8859-8',	"\x1B\x2F\x48" => 'ISO-8859-8',
69
-			"\x1B\x2C\x49" => 'CSN 369103',	"\x1B\x2D\x49" => 'CSN 369103',	"\x1B\x2E\x49" => 'CSN 369103',	"\x1B\x2F\x49" => 'CSN 369103',
61
+			"\x1B\x2C\x41" => 'ISO-8859-1', "\x1B\x2D\x41" => 'ISO-8859-1', "\x1B\x2E\x41" => 'ISO-8859-1', "\x1B\x2F\x41" => 'ISO-8859-1',
62
+			"\x1B\x2C\x42" => 'ISO-8859-2', "\x1B\x2D\x42" => 'ISO-8859-2', "\x1B\x2E\x42" => 'ISO-8859-2', "\x1B\x2F\x42" => 'ISO-8859-2',
63
+			"\x1B\x2C\x43" => 'ISO-8859-3', "\x1B\x2D\x43" => 'ISO-8859-3', "\x1B\x2E\x43" => 'ISO-8859-3', "\x1B\x2F\x43" => 'ISO-8859-3',
64
+			"\x1B\x2C\x44" => 'ISO-8859-4', "\x1B\x2D\x44" => 'ISO-8859-4', "\x1B\x2E\x44" => 'ISO-8859-4', "\x1B\x2F\x44" => 'ISO-8859-4',
65
+			"\x1B\x2C\x45" => 'ISO-8859-5', "\x1B\x2D\x45" => 'ISO-8859-5', "\x1B\x2E\x45" => 'ISO-8859-5', "\x1B\x2F\x45" => 'ISO-8859-5',
66
+			"\x1B\x2C\x46" => 'ISO-8859-7', "\x1B\x2D\x46" => 'ISO-8859-7', "\x1B\x2E\x46" => 'ISO-8859-7', "\x1B\x2F\x46" => 'ISO-8859-7',
67
+			"\x1B\x2C\x47" => 'ISO-8859-6', "\x1B\x2D\x47" => 'ISO-8859-6', "\x1B\x2E\x47" => 'ISO-8859-6', "\x1B\x2F\x47" => 'ISO-8859-6',
68
+			"\x1B\x2C\x48" => 'ISO-8859-8', "\x1B\x2D\x48" => 'ISO-8859-8', "\x1B\x2E\x48" => 'ISO-8859-8', "\x1B\x2F\x48" => 'ISO-8859-8',
69
+			"\x1B\x2C\x49" => 'CSN 369103', "\x1B\x2D\x49" => 'CSN 369103', "\x1B\x2E\x49" => 'CSN 369103', "\x1B\x2F\x49" => 'CSN 369103',
70 70
 
71
-			"\x1B\x24\x28\x40" => 'JIS0208',	"\x1B\x24\x29\x40" => 'JIS0208',	"\x1B\x24\x2A\x40" => 'JIS0208',	"\x1B\x24\x2B\x40" => 'JIS0208',
72
-			"\x1B\x24\x28\x42" => 'JIS0208',	"\x1B\x24\x29\x42" => 'JIS0208',	"\x1B\x24\x2A\x42" => 'JIS0208',	"\x1B\x24\x2B\x42" => 'JIS0208',
73
-			"\x1B\x24\x28\x44" => 'JIS_X0212',	"\x1B\x24\x29\x44" => 'JIS_X0212',	"\x1B\x24\x2A\x44" => 'JIS_X0212',	"\x1B\x24\x2B\x44" => 'JIS_X0212',
74
-			"\x1B\x24\x28\x4F" => 'ISO-2022-JP-3',	"\x1B\x24\x29\x4F" => 'ISO-2022-JP-3',	"\x1B\x24\x2A\x4F" => 'ISO-2022-JP-3',	"\x1B\x24\x2B\x4F" => 'ISO-2022-JP-3',
75
-			"\x1B\x24\x28\x50" => 'ISO-2022-JP-3',	"\x1B\x24\x29\x50" => 'ISO-2022-JP-3',	"\x1B\x24\x2A\x50" => 'ISO-2022-JP-3',	"\x1B\x24\x2B\x50" => 'ISO-2022-JP-3',
71
+			"\x1B\x24\x28\x40" => 'JIS0208', "\x1B\x24\x29\x40" => 'JIS0208', "\x1B\x24\x2A\x40" => 'JIS0208', "\x1B\x24\x2B\x40" => 'JIS0208',
72
+			"\x1B\x24\x28\x42" => 'JIS0208', "\x1B\x24\x29\x42" => 'JIS0208', "\x1B\x24\x2A\x42" => 'JIS0208', "\x1B\x24\x2B\x42" => 'JIS0208',
73
+			"\x1B\x24\x28\x44" => 'JIS_X0212', "\x1B\x24\x29\x44" => 'JIS_X0212', "\x1B\x24\x2A\x44" => 'JIS_X0212', "\x1B\x24\x2B\x44" => 'JIS_X0212',
74
+			"\x1B\x24\x28\x4F" => 'ISO-2022-JP-3', "\x1B\x24\x29\x4F" => 'ISO-2022-JP-3', "\x1B\x24\x2A\x4F" => 'ISO-2022-JP-3', "\x1B\x24\x2B\x4F" => 'ISO-2022-JP-3',
75
+			"\x1B\x24\x28\x50" => 'ISO-2022-JP-3', "\x1B\x24\x29\x50" => 'ISO-2022-JP-3', "\x1B\x24\x2A\x50" => 'ISO-2022-JP-3', "\x1B\x24\x2B\x50" => 'ISO-2022-JP-3',
76 76
 		];
77 77
 	
78 78
 	/**
Please login to merge, or discard this patch.
framework/Exceptions/TException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 */
72 72
 	public function __construct($errorCode, $errorMessage = null, ...$args)
73 73
 	{
74
-		if(!is_int($errorCode)) {
74
+		if (!is_int($errorCode)) {
75 75
 			//assume old code
76 76
 			if ($errorMessage !== null || !empty($args)) {
77 77
 				array_unshift($args, $errorMessage);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 		$errorMessage = $this->translateErrorMessage($errorMessage);
84 84
 		$n = count($args);
85 85
 		$previous = null;
86
-		if($n > 0 && ($args[$n - 1] instanceof Throwable)) {
86
+		if ($n > 0 && ($args[$n - 1] instanceof Throwable)) {
87 87
 			$previous = array_pop($args);
88 88
 			$n--;
89 89
 		}
Please login to merge, or discard this patch.
framework/TApplicationComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 		$cacheFile = $mode = null;
60 60
 		if ($app) {
61 61
 			$cacheFile = $app->getRuntimePath() . DIRECTORY_SEPARATOR . self::FX_CACHE_FILE;
62
-			if((($mode = $app->getMode()) === TApplicationMode::Normal || $mode === TApplicationMode::Performance) && !$_loaded) {
62
+			if ((($mode = $app->getMode()) === TApplicationMode::Normal || $mode === TApplicationMode::Performance) && !$_loaded) {
63 63
 				$_loaded = true;
64 64
 				if (($content = @file_get_contents($cacheFile)) !== false) {
65 65
 					$_classfx = @unserialize($content) ?? [];
Please login to merge, or discard this patch.
framework/Security/Permissions/TPermissionsManagerPropertyTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 	{
50 50
 		$this->setPermissionsManager(TPermissionsManager::getManager());
51 51
 		parent::__wakeup();
52
-		if(!$this->getPermissionsManager() && ($owner = $this->getOwner())) {
52
+		if (!$this->getPermissionsManager() && ($owner = $this->getOwner())) {
53 53
 			$owner->detachBehavior($this->getName());
54 54
 		}
55 55
 	}
Please login to merge, or discard this patch.
framework/Util/Helpers/TBitHelper.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -65,18 +65,18 @@  discard block
 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;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * @param ?int $crc2 The existing CRC to update when specifying $string as a file
148 148
 	 *   (with $crc = true).  Default null for new initial $crc for a file.
149 149
 	 */
150
-	public static function crc32(mixed $string, bool|int $crc = 0, ?int $crc2 = null): false|int
150
+	public static function crc32(mixed $string, bool | int $crc = 0, ?int $crc2 = null): false | int
151 151
 	{
152 152
 		static $crc_table = [
153 153
 			0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3,
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 				if ($length === null && !$startOffset && !$crc2) {
214 214
 					$hash = hash_file('crc32b', $string, true);
215 215
 					$value = unpack('N', $hash)[1];
216
-					if(PHP_INT_SIZE === 4 && $value > self::PHP_INT32_MAX) {
216
+					if (PHP_INT_SIZE === 4 && $value > self::PHP_INT32_MAX) {
217 217
 						$value = (int) ($value - self::PHP_INT32_UMAX - 1);
218 218
 					}
219 219
 					return $value;
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 				}
239 239
 			}
240 240
 			$crc ^= 0xFFFFFFFF;
241
-			while($length === null || $length > 0) {
241
+			while ($length === null || $length > 0) {
242 242
 				$d = fgetc($string);
243 243
 				if ($d === false || strlen($d) === 0) {
244 244
 					break;
Please login to merge, or discard this patch.