Passed
Push — main ( 88be2e...1da062 )
by Will
03:18
created
src/mappings/apps.php 1 patch
Spacing   +6 added lines, -6 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
-			'appslash' => function (string $value) : ?array {
17
+			'appslash' => function(string $value) : ?array {
18 18
 				if (!\str_starts_with($value, 'AppleWebKit') && !\str_contains($value, '://')) {
19 19
 					$parts = \explode('/', $value, 2);
20 20
 					return [
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 			],
33 33
 			'Instagram' => [
34 34
 				'match' => 'any',
35
-				'categories' => function (string $value, int $i, array $tokens) : array {
35
+				'categories' => function(string $value, int $i, array $tokens) : array {
36 36
 					$data = [
37 37
 						'app' => 'Instagram',
38 38
 						'appversion' => \explode(' ', $value, 3)[1] ?? null
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 			// special parser for Facebook app because it is completely different to any other
80 80
 			'FBAN/' => [
81 81
 				'match' => 'start',
82
-				'categories' => function (string $value) : array {
82
+				'categories' => function(string $value) : array {
83 83
 					$map = [
84 84
 						'FBAN/MessengerLiteForiOS' => [
85 85
 							'type' => 'human',
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 			],
147 147
 			'FBLC/' => [
148 148
 				'match' => 'start',
149
-				'categories' => function (string $value) : array {
149
+				'categories' => function(string $value) : array {
150 150
 					$parts = \explode('-', \str_replace('_', '-', \mb_substr($value, 5)), 4);
151 151
 					$suffix = $parts[2] ?? $parts[1] ?? null;
152 152
 					return [
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 			],
157 157
 			'FBDM/' => [
158 158
 				'match' => 'start',
159
-				'categories' => function (string $value) : array {
159
+				'categories' => function(string $value) : array {
160 160
 					$data = [];
161 161
 					foreach (\explode(',', \trim(\mb_substr($value, 5), '{}')) AS $item) {
162 162
 						$parts = \explode('=', $item);
Please login to merge, or discard this patch.