Passed
Push — main ( 5a01f2...ad28d2 )
by Will
03:19
created
src/helpers/versions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 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 versions {
Please login to merge, or discard this patch.
src/helpers/hints.php 1 patch
Spacing   +4 added lines, -4 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 {
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 		$map = [
9 9
 			'sec-ch-ua-mobile' => fn (\stdClass $obj, string $value) : string => $obj->category = $value === '?1' ? 'mobile' : 'desktop',
10 10
 			'sec-ch-ua-platform' => fn (\stdClass $obj, string $value) : ?string => $obj->platform = \trim($value, '"') ?: null,
11
-			'sec-ch-ua-platform-version' => function (\stdClass $obj, string $value) : void {
11
+			'sec-ch-ua-platform-version' => function(\stdClass $obj, string $value) : void {
12 12
 				$value = \trim($value, '"');
13 13
 				if ($obj->platform === 'Windows') {
14 14
 					$map = [
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 				$obj->platformversion = $value ?: null;
36 36
 			},
37 37
 			'sec-ch-ua-model' => fn (\stdClass $obj, string $value) : ?string => $obj->model = \trim($value, '"') ?: null,
38
-			'sec-ch-ua-full-version-list' => function (\stdClass $obj, string $value, string &$ua) : void {
38
+			'sec-ch-ua-full-version-list' => function(\stdClass $obj, string $value, string &$ua) : void {
39 39
 				$brands = [];
40 40
 
41 41
 				// process brands string
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 				// sort the values in importance order
57 57
 				$sort = ['Chromium', 'Google Chrome'];
58 58
 				$count = \count($sort);
59
-				\uksort($brands, function (string $a, string $b) use ($sort, $count) : int {
59
+				\uksort($brands, function(string $a, string $b) use ($sort, $count) : int {
60 60
 					$aval = $bval = $count;
61 61
 					foreach ($sort AS $key => $item) {
62 62
 						if ($a === $item) {
Please login to merge, or discard this patch.