Passed
Push — master ( c8f863...49e0f9 )
by Darko
10:09
created
app/Services/SteamService.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -86,14 +86,14 @@  discard block
 block discarded – undo
86 86
         }
87 87
 
88 88
         // Check failed lookup cache
89
-        $cacheKey = 'steam_search_failed:' . md5(mb_strtolower($cleanTitle));
89
+        $cacheKey = 'steam_search_failed:'.md5(mb_strtolower($cleanTitle));
90 90
         if (Cache::has($cacheKey)) {
91 91
             Log::debug('SteamService: Skipping previously failed search', ['title' => $cleanTitle]);
92 92
             return null;
93 93
         }
94 94
 
95 95
         // Check successful search cache
96
-        $successCacheKey = 'steam_search:' . md5(mb_strtolower($cleanTitle));
96
+        $successCacheKey = 'steam_search:'.md5(mb_strtolower($cleanTitle));
97 97
         $cached = Cache::get($successCacheKey);
98 98
         if ($cached !== null) {
99 99
             Log::debug('SteamService: Using cached search result', ['title' => $cleanTitle, 'appid' => $cached]);
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
         try {
197 197
             $response = $this->makeRequest(
198
-                self::STEAM_API_BASE . '/ISteamUserStats/GetNumberOfCurrentPlayers/v1/',
198
+                self::STEAM_API_BASE.'/ISteamUserStats/GetNumberOfCurrentPlayers/v1/',
199 199
                 ['appid' => $appId]
200 200
             );
201 201
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
         try {
229 229
             $response = Http::timeout(10)
230
-                ->get(self::STEAM_STORE_BASE . '/appreviews/' . $appId, [
230
+                ->get(self::STEAM_STORE_BASE.'/appreviews/'.$appId, [
231 231
                     'json' => 1,
232 232
                     'language' => 'all',
233 233
                     'purchase_type' => 'all',
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 
380 380
         try {
381 381
             $response = Http::timeout(60)
382
-                ->get(self::STEAM_API_BASE . '/ISteamApps/GetAppList/v2/')
382
+                ->get(self::STEAM_API_BASE.'/ISteamApps/GetAppList/v2/')
383 383
                 ->json();
384 384
 
385 385
             if ($response && isset($response['applist']['apps'])) {
@@ -532,10 +532,10 @@  discard block
 block discarded – undo
532 532
         return RateLimiter::attempt(
533 533
             self::RATE_LIMIT_KEY,
534 534
             self::REQUESTS_PER_MINUTE,
535
-            function () use ($appId) {
535
+            function() use ($appId) {
536 536
                 try {
537 537
                     $response = Http::timeout(15)
538
-                        ->get(self::STEAM_STORE_BASE . '/appdetails', [
538
+                        ->get(self::STEAM_STORE_BASE.'/appdetails', [
539 539
                             'appids' => $appId,
540 540
                             'cc' => 'us',
541 541
                             'l' => 'english',
@@ -717,7 +717,7 @@  discard block
 block discarded – undo
717 717
             'website' => $data['website'] ?? null,
718 718
             'support_url' => $data['support_info']['url'] ?? null,
719 719
             'legal_notice' => $data['legal_notice'] ?? null,
720
-            'directurl' => self::STEAM_STORE_URL . $appId,
720
+            'directurl' => self::STEAM_STORE_URL.$appId,
721 721
         ];
722 722
     }
723 723
 
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
         return RateLimiter::attempt(
739 739
             self::RATE_LIMIT_KEY,
740 740
             self::REQUESTS_PER_MINUTE,
741
-            function () use ($url, $params) {
741
+            function() use ($url, $params) {
742 742
                 if ($this->apiKey !== null) {
743 743
                     $params['key'] = $this->apiKey;
744 744
                 }
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
         $title = (string) preg_replace('/\[[^\]]*\]|\([^)]*\)|\{[^}]*\}/u', ' ', $title);
782 782
 
783 783
         // Remove scene groups at end
784
-        $groupPattern = '/\s*[-_]\s*(' . implode('|', array_map('preg_quote', self::SCENE_GROUPS)) . ')\s*$/i';
784
+        $groupPattern = '/\s*[-_]\s*('.implode('|', array_map('preg_quote', self::SCENE_GROUPS)).')\s*$/i';
785 785
         $title = (string) preg_replace($groupPattern, '', $title);
786 786
 
787 787
         // Remove edition tags (multi-word patterns first)
@@ -802,12 +802,12 @@  discard block
 block discarded – undo
802 802
             if (stripos($tag, 'EDITION') !== false) {
803 803
                 continue;
804 804
             }
805
-            $title = (string) preg_replace('/\b' . preg_quote($tag, '/') . '\b/i', ' ', $title);
805
+            $title = (string) preg_replace('/\b'.preg_quote($tag, '/').'\b/i', ' ', $title);
806 806
         }
807 807
 
808 808
         // Remove release tags
809 809
         foreach (self::RELEASE_TAGS as $tag) {
810
-            $title = (string) preg_replace('/\b' . preg_quote($tag, '/') . '\d*\b/i', ' ', $title);
810
+            $title = (string) preg_replace('/\b'.preg_quote($tag, '/').'\d*\b/i', ' ', $title);
811 811
         }
812 812
 
813 813
         // Remove DLCs tag (common in scene releases)
@@ -900,7 +900,7 @@  discard block
 block discarded – undo
900 900
             array_map('strtolower', self::RELEASE_TAGS),
901 901
             ['pc', 'win', 'windows', 'x86', 'x64', 'x32']
902 902
         );
903
-        $noisePattern = '/\b(' . implode('|', array_map(fn($w) => preg_quote($w, '/'), $noise)) . ')\b/u';
903
+        $noisePattern = '/\b('.implode('|', array_map(fn($w) => preg_quote($w, '/'), $noise)).')\b/u';
904 904
         $s = (string) preg_replace($noisePattern, ' ', $s);
905 905
 
906 906
         // Remove non-alphanumeric
@@ -933,7 +933,7 @@  discard block
 block discarded – undo
933 933
 
934 934
         // Remove remaining individual edition tags
935 935
         foreach (self::EDITION_TAGS as $tag) {
936
-            $title = (string) preg_replace('/\s*[-_]?\s*' . preg_quote($tag, '/') . '\s*/i', ' ', $title);
936
+            $title = (string) preg_replace('/\s*[-_]?\s*'.preg_quote($tag, '/').'\s*/i', ' ', $title);
937 937
         }
938 938
         return trim(preg_replace('/\s+/', ' ', $title) ?? '');
939 939
     }
@@ -1026,7 +1026,7 @@  discard block
 block discarded – undo
1026 1026
 
1027 1027
         // Don't replace standalone 'i' as it's too common in titles
1028 1028
         foreach ($map as $roman => $arabic) {
1029
-            $s = (string) preg_replace('/\b' . $roman . '\b/ui', $arabic, $s);
1029
+            $s = (string) preg_replace('/\b'.$roman.'\b/ui', $arabic, $s);
1030 1030
         }
1031 1031
 
1032 1032
         return $s;
@@ -1041,7 +1041,7 @@  discard block
 block discarded – undo
1041 1041
         $pattern = preg_replace('/\s+/', '%', $normalized);
1042 1042
         $pattern = trim($pattern ?? '');
1043 1043
 
1044
-        return $pattern === '' ? '%' : '%' . $pattern . '%';
1044
+        return $pattern === '' ? '%' : '%'.$pattern.'%';
1045 1045
     }
1046 1046
 
1047 1047
     /**
Please login to merge, or discard this patch.
app/Support/DTOs/SteamGameData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
             recommendationCount: $data['recommendations']['total'] ?? null,
221 221
             website: $data['website'] ?? null,
222 222
             supportUrl: $data['support_info']['url'] ?? null,
223
-            storeUrl: 'https://store.steampowered.com/app/' . $appId,
223
+            storeUrl: 'https://store.steampowered.com/app/'.$appId,
224 224
         );
225 225
     }
226 226
 
Please login to merge, or discard this patch.
app/Support/DTOs/SteamPriceData.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
     public static function fromApiResponse(array $data): self
24 24
     {
25 25
         return new self(
26
-            currency: $data['currency'] ?? 'USD',
27
-            initial: ($data['initial'] ?? 0) / 100,
28
-            final: ($data['final'] ?? 0) / 100,
29
-            discountPercent: $data['discount_percent'] ?? 0,
30
-            formattedPrice: $data['final_formatted'] ?? null,
26
+            currency : $data['currency'] ?? 'USD',
27
+            initial : ($data['initial'] ?? 0) / 100,
28
+            final : ($data['final'] ?? 0) / 100,
29
+            discountPercent : $data['discount_percent'] ?? 0,
30
+            formattedPrice : $data['final_formatted'] ?? null,
31 31
         );
32 32
     }
33 33
 
Please login to merge, or discard this patch.
app/Extensions/util/PhpYenc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,14 +32,14 @@
 block discarded – undo
32 32
      * Maps yEnc encoded byte to decoded byte: (byte - 42) % 256
33 33
      * @var array<string, string>|null
34 34
      */
35
-    private static ?array $decodeTable = null;
35
+    private static ? array $decodeTable = null;
36 36
 
37 37
     /**
38 38
      * Pre-computed decode translation table for escaped characters.
39 39
      * Maps yEnc escaped byte to decoded byte: ((byte - 64) - 42) % 256
40 40
      * @var array<string, string>|null
41 41
      */
42
-    private static ?array $escapeDecodeTable = null;
42
+    private static ? array $escapeDecodeTable = null;
43 43
 
44 44
     /**
45 45
      * Initialize the decode translation tables (lazy initialization).
Please login to merge, or discard this patch.
app/Providers/TvProcessingServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function register(): void
14 14
     {
15
-        $this->app->singleton(TvProcessingPipeline::class, function ($app) {
15
+        $this->app->singleton(TvProcessingPipeline::class, function($app) {
16 16
             return TvProcessingPipeline::createDefault();
17 17
         });
18 18
 
Please login to merge, or discard this patch.
app/Console/Commands/UpdateNNTmuxComposer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             $this->info('
Please login to merge, or discard this patch.
app/Console/Commands/TmuxAttach.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $sessionManager = new TmuxSessionManager($sessionName);
36 36
 
37
-        if (! $sessionManager->sessionExists()) {
37
+        if (!$sessionManager->sessionExists()) {
38 38
             $this->error("❌ Session '{$sessionName}' does not exist");
39 39
             $this->info("
Please login to merge, or discard this patch.
app/Console/Commands/TmuxMonitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             $this->tmuxOutput = new TmuxOutput;
65 65
 
66 66
             // Verify session exists
67
-            if (! $this->sessionManager->sessionExists()) {
67
+            if (!$this->sessionManager->sessionExists()) {
68 68
                 $this->error("❌ Tmux session '{$sessionName}' does not exist.");
69 69
                 $this->info("
Please login to merge, or discard this patch.
app/Console/Commands/TmuxStart.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $this->layoutBuilder = new TmuxLayoutBuilder($this->sessionManager);
56 56
 
57 57
             // Check if tmux is installed
58
-            if (! $this->checkTmuxInstalled()) {
58
+            if (!$this->checkTmuxInstalled()) {
59 59
                 $this->error('❌ tmux is not installed');
60 60
 
61 61
                 return Command::FAILURE;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
             // Check if session already exists
65 65
             if ($this->sessionManager->sessionExists()) {
66
-                if (! $this->option('force')) {
66
+                if (!$this->option('force')) {
67 67
                     $this->error("❌ Session '{$sessionName}' already exists");
68 68
                     if ($this->confirm('Would you like to restart it?', false)) {
69 69
                         $this->call('tmux:stop', ['--session' => $sessionName]);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $this->info("
Please login to merge, or discard this patch.