@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | namespace hexydec\agentzero; |
| 4 | 4 | |
| 5 | 5 | class crawlers { |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | 'category' => 'feed' |
| 224 | 224 | ] |
| 225 | 225 | )), |
| 226 | - 'crawler' => function (string $value) : array { |
|
| 226 | + 'crawler' => function(string $value) : array { |
|
| 227 | 227 | $parts = \explode('/', $value, 2); |
| 228 | 228 | $map = [ |
| 229 | 229 | 'baiduspider' => 'search', |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | 'Siteimprove.com' => new props('any', $fn['crawler']), |
| 255 | 255 | 'CyotekWebCopy' => new props('start', $fn['scraper']), |
| 256 | 256 | 'Google Page Speed Insights' => new props('exact', $fn['validator']), |
| 257 | - 'Qwantify' => new props('start', function (string $value) : array { |
|
| 257 | + 'Qwantify' => new props('start', function(string $value) : array { |
|
| 258 | 258 | $parts = \explode('/', $value, 3); |
| 259 | 259 | return [ |
| 260 | 260 | 'type' => 'robot', |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | 'Uptime/' => new props('start', $fn['monitor']), |
| 286 | 286 | 'HostTracker/' => new props('start', $fn['monitor']), |
| 287 | 287 | 'NCSC Web Check [email protected]' => new props('exact', $fn['map']), |
| 288 | - 'Pingdom.com' => new props('start', function (string $value) : array { |
|
| 288 | + 'Pingdom.com' => new props('start', function(string $value) : array { |
|
| 289 | 289 | $version = \explode('_', \trim($value, '_')); |
| 290 | 290 | return [ |
| 291 | 291 | 'type' => 'robot', |
@@ -311,14 +311,14 @@ discard block |
||
| 311 | 311 | 'MicrosoftPreview/' => new props('start', $fn['feed']), |
| 312 | 312 | 'YahooMailProxy' => new props('exact', $fn['feed']), |
| 313 | 313 | 'PhxBot/' => new props('start', $fn['feed']), // proton mail |
| 314 | - 'Pleroma' => new props('start', fn (string $value) : array => [ // mastodon |
|
| 314 | + 'Pleroma' => new props('start', fn (string $value) : array => [// mastodon |
|
| 315 | 315 | 'type' => 'robot', |
| 316 | 316 | 'category' => 'feed', |
| 317 | 317 | 'app' => 'Mastodon', |
| 318 | 318 | 'appname' => 'Pleroma', |
| 319 | 319 | 'appversion' => \mb_substr($value, 8) |
| 320 | 320 | ]), |
| 321 | - 'Outlook-Android/' => new props('start', fn (string $value) : array => [ // mastodon |
|
| 321 | + 'Outlook-Android/' => new props('start', fn (string $value) : array => [// mastodon |
|
| 322 | 322 | 'type' => 'robot', |
| 323 | 323 | 'category' => 'feed', |
| 324 | 324 | 'app' => 'Outlook', |
@@ -326,15 +326,15 @@ discard block |
||
| 326 | 326 | 'platform' => 'Android', |
| 327 | 327 | 'appversion' => \mb_substr($value, 16) |
| 328 | 328 | ]), |
| 329 | - 'Outlook-iOS/' => new props('start', fn (string $value, int $i, array $tokens) : array => [ // mastodon |
|
| 329 | + 'Outlook-iOS/' => new props('start', fn (string $value, int $i, array $tokens) : array => [// mastodon |
|
| 330 | 330 | 'type' => 'robot', |
| 331 | 331 | 'category' => 'feed', |
| 332 | 332 | 'app' => 'Outlook', |
| 333 | 333 | 'appname' => 'Outlook-iOS', |
| 334 | 334 | 'platform' => 'iOS', |
| 335 | - 'appversion' => $tokens[$i+1] ?? \mb_substr($value, 12) |
|
| 335 | + 'appversion' => $tokens[$i + 1] ?? \mb_substr($value, 12) |
|
| 336 | 336 | ]), |
| 337 | - 'OutlookMobileCloudService-Autodetect/' => new props('start', fn (string $value) : array => [ // mastodon |
|
| 337 | + 'OutlookMobileCloudService-Autodetect/' => new props('start', fn (string $value) : array => [// mastodon |
|
| 338 | 338 | 'type' => 'robot', |
| 339 | 339 | 'category' => 'feed', |
| 340 | 340 | 'app' => 'Outlook', |