@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | $res = User::getByRssToken($request->input('r')); |
| 37 | - if (! $res) { |
|
| 37 | + if (!$res) { |
|
| 38 | 38 | return Utility::showApiError(100); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | return Utility::showApiError(501); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - if (! $request->input('id')) { |
|
| 55 | + if (!$request->input('id')) { |
|
| 56 | 56 | return Utility::showApiError(200, 'Parameter id is required'); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | $nzbPath = (new NZB)->getNZBPath($request->input('id')); |
| 88 | 88 | |
| 89 | - if (! File::exists($nzbPath)) { |
|
| 89 | + if (!File::exists($nzbPath)) { |
|
| 90 | 90 | return Utility::showApiError(300, 'NZB file not found!'); |
| 91 | 91 | } |
| 92 | 92 | |
@@ -110,9 +110,9 @@ discard block |
||
| 110 | 110 | 'X-DNZB-Details' => url('/').'/details/'.$request->input('id'), |
| 111 | 111 | ]; |
| 112 | 112 | |
| 113 | - if (! empty($relData['imdbid']) && $relData['imdbid'] > 0) { |
|
| 113 | + if (!empty($relData['imdbid']) && $relData['imdbid'] > 0) { |
|
| 114 | 114 | $headers += ['X-DNZB-MoreInfo' => 'http://www.imdb.com/title/tt'.$relData['imdbid']]; |
| 115 | - } elseif (! empty($relData['tvdb']) && $relData['tvdb'] > 0) { |
|
| 115 | + } elseif (!empty($relData['tvdb']) && $relData['tvdb'] > 0) { |
|
| 116 | 116 | $headers += ['X-DNZB-MoreInfo' => 'http://www.thetvdb.com/?tab=series&id='.$relData['tvdb']]; |
| 117 | 117 | } |
| 118 | 118 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | $contents = ''; |
| 130 | 130 | // Keep repeating until the end of the input file |
| 131 | - while (! gzeof($zd)) { |
|
| 131 | + while (!gzeof($zd)) { |
|
| 132 | 132 | // Read buffer-size bytes |
| 133 | 133 | $contents = gzread($zd, $buffer_size); |
| 134 | 134 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | $cleanName = str_replace([',', ' ', '/', '\\'], '_', $relData['searchname']); |
| 139 | 139 | |
| 140 | - return response()->streamDownload(function () use ($contents) { |
|
| 140 | + return response()->streamDownload(function() use ($contents) { |
|
| 141 | 141 | echo $contents; |
| 142 | 142 | }, $cleanName.'.nzb', $headers); |
| 143 | 143 | } |