Passed
Push — master ( efec1e...53abd1 )
by Darko
10:31
created
app/Providers/ForumServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     public function boot(): void
23 23
     {
24 24
         // Add global scope to eager load author with role for all post queries
25
-        Post::addGlobalScope('withAuthorRole', function (Builder $builder) {
25
+        Post::addGlobalScope('withAuthorRole', function(Builder $builder) {
26 26
             $builder->with(['author.role']);
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
app/Services/ImdbScraper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             $res = $this->client->get($url);
43 43
             $html = (string) $res->getBody();
44 44
             $dom = HtmlDomParser::str_get_html($html);
45
-            if (! $dom) {
45
+            if (!$dom) {
46 46
                 Cache::put($cacheKey, false, now()->addHours(6));
47 47
 
48 48
                 return false;
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             // Plot
75 75
             $plot = '';
76 76
             $plotNode = $dom->findOne("span[data-testid='plot-l']");
77
-            if (! $plotNode) {
77
+            if (!$plotNode) {
78 78
                 $plotNode = $dom->findOne("span[data-testid='plot-xl']");
79 79
             }
80 80
             if ($plotNode) {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             $json = json_decode((string) $res->getBody(), true);
195 195
             $results = [];
196 196
             foreach (($json['d'] ?? []) as $row) {
197
-                if (! isset($row['id']) || ! str_starts_with($row['id'], 'tt')) {
197
+                if (!isset($row['id']) || !str_starts_with($row['id'], 'tt')) {
198 198
                     continue;
199 199
                 }
200 200
                 $id = substr($row['id'], 2);
Please login to merge, or discard this patch.
app/Console/Commands/FetchMovieByImdb.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $normalized = preg_replace('/^tt/i', '', $normalized); // remove leading tt if present
27 27
         $imdbId = preg_replace('/\D/', '', $normalized); // keep digits only
28 28
 
29
-        if ($imdbId === '' || ! ctype_digit($imdbId) || strlen($imdbId) < 5) {
29
+        if ($imdbId === '' || !ctype_digit($imdbId) || strlen($imdbId) < 5) {
30 30
             $this->error('Invalid IMDb id provided: '.$raw.' (parsed: '.$imdbId.')');
31 31
 
32 32
             return self::FAILURE;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         $ok = $movie->updateMovieInfo($imdbId);
48 48
 
49
-        if (! $ok) {
49
+        if (!$ok) {
50 50
             $this->error('Failed to fetch/update movie data for tt'.$imdbId.'.');
51 51
 
52 52
             return self::FAILURE;
Please login to merge, or discard this patch.
app/Extensions/helper/age_verification_helpers.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 use GuzzleHttp\Client;
12 12
 use GuzzleHttp\Exception\RequestException;
13 13
 
14
-if (! function_exists('getRawHtmlWithAgeVerification')) {
14
+if (!function_exists('getRawHtmlWithAgeVerification')) {
15 15
     /**
16 16
      * Get raw HTML with automatic age verification handling
17 17
      *
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     }
101 101
 }
102 102
 
103
-if (! function_exists('initializeAdultSiteCookies')) {
103
+if (!function_exists('initializeAdultSiteCookies')) {
104 104
     /**
105 105
      * Initialize age verification cookies for all adult sites
106 106
      * Run this once during application setup
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     }
152 152
 }
153 153
 
154
-if (! function_exists('getAdultSiteCookieStats')) {
154
+if (!function_exists('getAdultSiteCookieStats')) {
155 155
     /**
156 156
      * Get statistics about stored adult site cookies
157 157
      *
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     }
166 166
 }
167 167
 
168
-if (! function_exists('clearAdultSiteCookies')) {
168
+if (!function_exists('clearAdultSiteCookies')) {
169 169
     /**
170 170
      * Clear all stored adult site cookies
171 171
      *
Please login to merge, or discard this patch.
app/Models/Content.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         }
114 114
 
115 115
         // Others can only see content for their role or everyone
116
-        return $query->where(function ($q) use ($role) {
116
+        return $query->where(function($q) use ($role) {
117 117
             $q->where('role', self::ROLE_EVERYONE)
118 118
                 ->orWhere('role', $role);
119 119
         });
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminContentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
             if (!$hasProtocol && !$isDomain) {
205 205
                 // Ensure internal URL starts with /
206 206
                 if ($url !== '/' && !str_starts_with($url, '/')) {
207
-                    $data['url'] = '/' . $url;
207
+                    $data['url'] = '/'.$url;
208 208
                 }
209 209
 
210 210
                 // Ensure internal URL ends with /
Please login to merge, or discard this patch.
app/View/Composers/GlobalDataComposer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@
 block discarded – undo
31 31
         ];
32 32
 
33 33
         // Email views expect $site to be the string provided by the mailable
34
-        if (! $isEmailView) {
35
-            $viewData['site'] = $siteArray;  // Now it's a proper array, not a Settings model
34
+        if (!$isEmailView) {
35
+            $viewData['site'] = $siteArray; // Now it's a proper array, not a Settings model
36 36
         }
37 37
 
38 38
         // Load useful links for sidebar
Please login to merge, or discard this patch.
app/Rules/ValidEmailDomain.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function validate(string $attribute, mixed $value, Closure $fail): void
89 89
     {
90
-        if (empty($value) || ! is_string($value)) {
90
+        if (empty($value) || !is_string($value)) {
91 91
             $fail('The :attribute must be a valid email address.');
92 92
             return;
93 93
         }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         }
116 116
 
117 117
         // Check 1: Use the disposable email package
118
-        if (! DisposableDomains::isNotDisposable($value)) {
118
+        if (!DisposableDomains::isNotDisposable($value)) {
119 119
             Log::warning('Disposable email attempt blocked (package detection)', [
120 120
                 'email' => $value,
121 121
                 'domain' => $domain,
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         }
149 149
 
150 150
         // Check 4: Validate domain has valid DNS records (MX or A record)
151
-        if (! $this->validateDnsRecords($domain)) {
151
+        if (!$this->validateDnsRecords($domain)) {
152 152
             Log::warning('Email domain has no valid DNS records', [
153 153
                 'email' => $value,
154 154
                 'domain' => $domain,
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminPromotionController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,12 +187,12 @@
 block discarded – undo
187 187
         }
188 188
 
189 189
         // Get all promotions with their statistics
190
-        $promotions = RolePromotion::withCount(['statistics' => function ($query) use ($startDate, $endDate) {
190
+        $promotions = RolePromotion::withCount(['statistics' => function($query) use ($startDate, $endDate) {
191 191
             if ($startDate) {
192 192
                 $query->whereBetween('applied_at', [$startDate, $endDate]);
193 193
             }
194 194
         }])
195
-            ->with(['statistics' => function ($query) use ($startDate, $endDate) {
195
+            ->with(['statistics' => function($query) use ($startDate, $endDate) {
196 196
                 if ($startDate) {
197 197
                     $query->whereBetween('applied_at', [$startDate, $endDate]);
198 198
                 }
Please login to merge, or discard this patch.