@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $themes = scandir(base_path().'/resources/views/themes', SCANDIR_SORT_ASCENDING); |
20 | 20 | $themeList[] = 'None'; |
21 | 21 | foreach ($themes as $theme) { |
22 | - if (! str_contains($theme, '.') && ! \in_array($theme, $ignoredThemes, false) && File::isDirectory(base_path().'/resources/views/themes/'.$theme)) { |
|
22 | + if (!str_contains($theme, '.') && !\in_array($theme, $ignoredThemes, false) && File::isDirectory(base_path().'/resources/views/themes/'.$theme)) { |
|
23 | 23 | $themeList[] = $theme; |
24 | 24 | } |
25 | 25 | } |
@@ -39,12 +39,12 @@ discard block |
||
39 | 39 | $string = ''; |
40 | 40 | $gzFile = @gzopen($filePath, 'rb', 0); |
41 | 41 | if ($gzFile) { |
42 | - while (! gzeof($gzFile)) { |
|
42 | + while (!gzeof($gzFile)) { |
|
43 | 43 | $temp = gzread($gzFile, 1024); |
44 | 44 | // Check for empty string. |
45 | 45 | // Without this the loop would be endless and consume 100% CPU. |
46 | 46 | // Do not set $string empty here, as the data might still be good. |
47 | - if (! $temp) { |
|
47 | + if (!$temp) { |
|
48 | 48 | break; |
49 | 49 | } |
50 | 50 | $string .= $temp; |
@@ -102,15 +102,14 @@ discard block |
||
102 | 102 | $fileSpecTemplate = '%s/%s%s'; |
103 | 103 | $fileSpec = ''; |
104 | 104 | |
105 | - if (! empty($options['id']) && \in_array( |
|
105 | + if (!empty($options['id']) && \in_array( |
|
106 | 106 | $options['type'], |
107 | 107 | ['anime', 'audio', 'audiosample', 'book', 'console', 'games', 'movies', 'music', 'preview', 'sample', 'tvrage', 'video', 'xxx'], |
108 | 108 | false |
109 | 109 | ) |
110 | 110 | ) { |
111 | 111 | $fileSpec = sprintf($fileSpecTemplate, $options['type'], $options['id'], $options['suffix']); |
112 | - $fileSpec = file_exists(storage_path('covers/').$fileSpec) ? $fileSpec : |
|
113 | - sprintf($fileSpecTemplate, $options['type'], 'no', $options['suffix']); |
|
112 | + $fileSpec = file_exists(storage_path('covers/').$fileSpec) ? $fileSpec : sprintf($fileSpecTemplate, $options['type'], 'no', $options['suffix']); |
|
114 | 113 | } |
115 | 114 | |
116 | 115 | return $fileSpec; |