Passed
Push — main ( 58d84a...8c2c69 )
by Will
03:16
created
src/helpers/hints.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 namespace hexydec\agentzero;
4 4
 
5 5
 class hints {
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 			'sec-ch-ua-platform' => fn (\stdClass $obj, string $value) : ?string => $obj->platform = \trim($value, '"') ?: null,
11 11
 			'sec-ch-ua-platform-version' => fn (\stdClass $obj, string $value) : ?string => $obj->platformversion = \trim($value, '"') ?: null,
12 12
 			'sec-ch-ua-model' => fn (\stdClass $obj, string $value) : ?string => $obj->model = \trim($value, '"') ?: null,
13
-			'sec-ch-ua-full-version-list' => function (\stdClass $obj, string $value) : void {
13
+			'sec-ch-ua-full-version-list' => function(\stdClass $obj, string $value) : void {
14 14
 				$brands = self::parseBrands($value);
15 15
 				$item = \array_key_first($brands);
16 16
 				$obj->browserversion = $brands[$item];
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 		// sort the values in importance order
43 43
 		$sort = ['Chromium', 'Chrome'];
44 44
 		$count = \count($sort);
45
-		\uksort($items, function (string $a, string $b) use ($sort, $count) : int {
45
+		\uksort($items, function(string $a, string $b) use ($sort, $count) : int {
46 46
 			$aval = $bval = $count;
47 47
 			foreach ($sort AS $key => $item) {
48 48
 				if (\mb_stripos($a, $item)) {
Please login to merge, or discard this patch.