Test Failed
Pull Request — main (#3)
by
unknown
13:00
created
src/autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4
-\spl_autoload_register(function (string $class) : void {
4
+\spl_autoload_register(function(string $class) : void {
5 5
 	$classes = [
6 6
 		'hexydec\\agentzero\\apps' => __DIR__.'/mappings/apps.php',
7 7
 		'hexydec\\agentzero\\architectures' => __DIR__.'/mappings/architectures.php',
Please login to merge, or discard this patch.
src/mappings/architectures.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
 /**
Please login to merge, or discard this patch.
src/mappings/engines.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
 /**
Please login to merge, or discard this patch.
src/mappings/categories.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
 /**
Please login to merge, or discard this patch.
src/config.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
 /**
Please login to merge, or discard this patch.
src/agentzero.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
 /**
Please login to merge, or discard this patch.
src/helpers/props.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 props {
Please login to merge, or discard this patch.
src/mappings/languages.php 1 patch
Spacing   +2 added lines, -2 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
 /**
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			'zu' => 'Zulu',
137 137
 			'in' => 'India'
138 138
 		];
139
-		$fn = function (string $value, int $i, array $tokens, string $match) : ?array {
139
+		$fn = function(string $value, int $i, array $tokens, string $match) : ?array {
140 140
 			if ($value === $match) {
141 141
 				return ['language' => $value];
142 142
 			} else {
Please login to merge, or discard this patch.
src/mappings/browsers.php 1 patch
Spacing   +9 added lines, -9 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
 /**
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	 */
15 15
 	public static function get() : array {
16 16
 		$fn = [
17
-			'browserslash' => function (string $value) : array {
17
+			'browserslash' => function(string $value) : array {
18 18
 				if (($browser = \mb_strrchr($value, ' ')) !== false) {
19 19
 					$value = \ltrim($browser);
20 20
 				}
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 				}
52 52
 				return $data;
53 53
 			},
54
-			'presto' => function (string $value) : array {
54
+			'presto' => function(string $value) : array {
55 55
 				$parts = \explode('/', $value, 2);
56 56
 				return [
57 57
 					'type' => 'human',
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 					'engineversion' => $parts[1] ?? null
62 62
 				];
63 63
 			},
64
-			'chromium' => function (string $value) : array {
64
+			'chromium' => function(string $value) : array {
65 65
 				$parts = \explode('/', $value, 3);
66 66
 				return [
67 67
 					'type' => 'human',
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 				'type' => 'human',
123 123
 				'category' => 'desktop'
124 124
 			]),
125
-			'Midori' => new props('start', function (string $value) : array {
125
+			'Midori' => new props('start', function(string $value) : array {
126 126
 				$parts = \explode('/', $value, 2);
127 127
 				return [
128 128
 					'type' => 'human',
@@ -138,14 +138,14 @@  discard block
 block discarded – undo
138 138
 				'browserversion' => \mb_substr($value, 7),
139 139
 				'engineversion' => \mb_substr($value, 7)
140 140
 			]),
141
-			'Firefox/' => new props('start', function (string $value) use ($fn) : array {
141
+			'Firefox/' => new props('start', function(string $value) use ($fn) : array {
142 142
 				$data = $fn['browserslash']($value);
143 143
 				return \array_merge($data, [
144 144
 					'engine' => 'Gecko',
145 145
 					'engineversion' => $data['browserversion'] ?? null
146 146
 				]);
147 147
 			}),
148
-			' Firefox/' => new props('any', function (string $value) use ($fn) : array {
148
+			' Firefox/' => new props('any', function(string $value) use ($fn) : array {
149 149
 				$data = $fn['browserslash']($value);
150 150
 				return \array_merge($data, [
151 151
 					'engine' => 'Gecko',
@@ -157,13 +157,13 @@  discard block
 block discarded – undo
157 157
 				'engine' => 'Gecko',
158 158
 				'browser' => 'Firefox'
159 159
 			]),
160
-			'Minimo/' => new props('start', function (string $value) use ($fn) : array {
160
+			'Minimo/' => new props('start', function(string $value) use ($fn) : array {
161 161
 				$data = $fn['browserslash']($value);
162 162
 				return \array_merge($data, [
163 163
 					'engine' => 'Gecko'
164 164
 				]);
165 165
 			}),
166
-			'BonEcho/' => new props('start', function (string $value) use ($fn) : array {
166
+			'BonEcho/' => new props('start', function(string $value) use ($fn) : array {
167 167
 				$data = $fn['browserslash']($value);
168 168
 				return \array_merge($data, [
169 169
 					'engine' => 'Gecko'
Please login to merge, or discard this patch.