Passed
Push — master ( 562c3a...bd753d )
by Darko
09:56
created
app/Http/Controllers/CoverController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         // Validate cover type
21 21
         $validTypes = ['anime', 'audio', 'audiosample', 'book', 'console', 'games', 'movies', 'music', 'preview', 'sample', 'tvrage', 'video', 'xxx', 'tvshows'];
22 22
 
23
-        if (! in_array($type, $validTypes)) {
23
+        if (!in_array($type, $validTypes)) {
24 24
             abort(404);
25 25
         }
26 26
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         }
43 43
 
44 44
         // Check if file exists
45
-        if (! file_exists($filePath)) {
45
+        if (!file_exists($filePath)) {
46 46
             // Return placeholder image
47 47
             $placeholderPath = public_path('assets/images/no-cover.png');
48 48
             if (file_exists($placeholderPath)) {
Please login to merge, or discard this patch.