Passed
Push — master ( 8b334f...d95312 )
by Darko
11:24
created
app/Services/TvProcessing/Pipes/TvdbPipe.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -119,16 +119,16 @@  discard block
 block discarded – undo
119 119
         }
120 120
 
121 121
         // Fetch poster if available
122
-        if (! empty($posterUrl)) {
122
+        if (!empty($posterUrl)) {
123 123
             $tvdb->getPoster($videoId);
124 124
         } else {
125 125
             $this->fetchFanartPoster($videoId, $siteId);
126 126
         }
127 127
 
128 128
         // Process episode
129
-        $seriesNo = ! empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
130
-        $episodeNo = ! empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
131
-        $hasAirdate = ! empty($parsedInfo['airdate']);
129
+        $seriesNo = !empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
130
+        $episodeNo = !empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
131
+        $hasAirdate = !empty($parsedInfo['airdate']);
132 132
 
133 133
         if ($episodeNo === 'all') {
134 134
             // Full season release
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         }
139 139
 
140 140
         // Download all episodes if new show to reduce API/bandwidth usage
141
-        if (! $tvdb->countEpsByVideoID($videoId)) {
141
+        if (!$tvdb->countEpsByVideoID($videoId)) {
142 142
             $tvdb->getEpisodeInfo($siteId, -1, -1, $videoId);
143 143
         }
144 144
 
@@ -203,12 +203,12 @@  discard block
 block discarded – undo
203 203
             $this->fanart = new FanartTvService();
204 204
         }
205 205
 
206
-        if (! $this->fanart->isConfigured()) {
206
+        if (!$this->fanart->isConfigured()) {
207 207
             return;
208 208
         }
209 209
 
210 210
         $posterUrl = $this->fanart->getBestTvPoster($siteId);
211
-        if (! empty($posterUrl)) {
211
+        if (!empty($posterUrl)) {
212 212
             $this->getTvdb()->posterUrl = $posterUrl;
213 213
             $this->getTvdb()->getPoster($videoId);
214 214
         }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     private function outputFullSeason(string $title): void
221 221
     {
222
-        if (! $this->echoOutput) {
222
+        if (!$this->echoOutput) {
223 223
             return;
224 224
         }
225 225
 
@@ -242,9 +242,9 @@  discard block
 block discarded – undo
242 242
         $context = $passable->context;
243 243
         $cleanName = $parsedInfo['cleanname'];
244 244
 
245
-        $seriesNo = ! empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
246
-        $episodeNo = ! empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
247
-        $hasAirdate = ! empty($parsedInfo['airdate']);
245
+        $seriesNo = !empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
246
+        $episodeNo = !empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
247
+        $hasAirdate = !empty($parsedInfo['airdate']);
248 248
 
249 249
         if ($episodeNo === 'all') {
250 250
             // Full season release
Please login to merge, or discard this patch.
app/Services/TvProcessing/Pipes/TraktPipe.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
         }
109 109
 
110 110
         // Process episode
111
-        $seriesNo = ! empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
112
-        $episodeNo = ! empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
113
-        $hasAirdate = ! empty($parsedInfo['airdate']);
111
+        $seriesNo = !empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
112
+        $episodeNo = !empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
113
+        $hasAirdate = !empty($parsedInfo['airdate']);
114 114
 
115 115
         if ($episodeNo === 'all') {
116 116
             // Full season release
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         }
121 121
 
122 122
         // Download all episodes if new show to reduce API/bandwidth usage
123
-        if (! $trakt->countEpsByVideoID($videoId)) {
123
+        if (!$trakt->countEpsByVideoID($videoId)) {
124 124
             $trakt->getEpisodeInfo($siteId, -1, -1);
125 125
         }
126 126
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      */
182 182
     private function outputFullSeason(string $title): void
183 183
     {
184
-        if (! $this->echoOutput) {
184
+        if (!$this->echoOutput) {
185 185
             return;
186 186
         }
187 187
 
@@ -204,9 +204,9 @@  discard block
 block discarded – undo
204 204
         $context = $passable->context;
205 205
         $cleanName = $parsedInfo['cleanname'];
206 206
 
207
-        $seriesNo = ! empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
208
-        $episodeNo = ! empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
209
-        $hasAirdate = ! empty($parsedInfo['airdate']);
207
+        $seriesNo = !empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
208
+        $episodeNo = !empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
209
+        $hasAirdate = !empty($parsedInfo['airdate']);
210 210
 
211 211
         if ($episodeNo === 'all') {
212 212
             // Full season release
Please login to merge, or discard this patch.
app/Services/TvProcessing/Pipes/TvMazePipe.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
         }
113 113
 
114 114
         // Fetch poster if we have one
115
-        if (! empty($tvmazeShow['poster'] ?? '')) {
115
+        if (!empty($tvmazeShow['poster'] ?? '')) {
116 116
             $tvmaze->getPoster($videoId);
117 117
         }
118 118
 
119 119
         // Process episode
120
-        $seriesNo = ! empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
121
-        $episodeNo = ! empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
122
-        $hasAirdate = ! empty($parsedInfo['airdate']);
120
+        $seriesNo = !empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
121
+        $episodeNo = !empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
122
+        $hasAirdate = !empty($parsedInfo['airdate']);
123 123
 
124 124
         if ($episodeNo === 'all') {
125 125
             // Full season release
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         }
130 130
 
131 131
         // Download all episodes if new show to reduce API/bandwidth usage
132
-        if (! $tvmaze->countEpsByVideoID($videoId)) {
132
+        if (!$tvmaze->countEpsByVideoID($videoId)) {
133 133
             $tvmaze->getEpisodeInfo($siteId, -1, -1);
134 134
         }
135 135
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     private function outputFullSeason(string $title): void
192 192
     {
193
-        if (! $this->echoOutput) {
193
+        if (!$this->echoOutput) {
194 194
             return;
195 195
         }
196 196
 
@@ -213,9 +213,9 @@  discard block
 block discarded – undo
213 213
         $context = $passable->context;
214 214
         $cleanName = $parsedInfo['cleanname'];
215 215
 
216
-        $seriesNo = ! empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
217
-        $episodeNo = ! empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
218
-        $hasAirdate = ! empty($parsedInfo['airdate']);
216
+        $seriesNo = !empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
217
+        $episodeNo = !empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
218
+        $hasAirdate = !empty($parsedInfo['airdate']);
219 219
 
220 220
         if ($episodeNo === 'all') {
221 221
             // Full season release
Please login to merge, or discard this patch.
app/Services/TvProcessing/Pipes/TmdbPipe.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -111,14 +111,14 @@  discard block
 block discarded – undo
111 111
         }
112 112
 
113 113
         // Fetch poster if we have one
114
-        if (! empty($tmdbShow['poster'] ?? '')) {
114
+        if (!empty($tmdbShow['poster'] ?? '')) {
115 115
             $tmdb->getPoster($videoId);
116 116
         }
117 117
 
118 118
         // Process episode
119
-        $seriesNo = ! empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
120
-        $episodeNo = ! empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
121
-        $hasAirdate = ! empty($parsedInfo['airdate']);
119
+        $seriesNo = !empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
120
+        $episodeNo = !empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
121
+        $hasAirdate = !empty($parsedInfo['airdate']);
122 122
 
123 123
         if ($episodeNo === 'all') {
124 124
             // Full season release
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         }
129 129
 
130 130
         // Download all episodes if new show to reduce API/bandwidth usage
131
-        if (! $tmdb->countEpsByVideoID($videoId)) {
131
+        if (!$tmdb->countEpsByVideoID($videoId)) {
132 132
             $tmdb->getEpisodeInfo($siteId, -1, -1);
133 133
         }
134 134
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     private function outputFullSeason(string $title): void
191 191
     {
192
-        if (! $this->echoOutput) {
192
+        if (!$this->echoOutput) {
193 193
             return;
194 194
         }
195 195
 
@@ -212,9 +212,9 @@  discard block
 block discarded – undo
212 212
         $context = $passable->context;
213 213
         $cleanName = $parsedInfo['cleanname'];
214 214
 
215
-        $seriesNo = ! empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
216
-        $episodeNo = ! empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
217
-        $hasAirdate = ! empty($parsedInfo['airdate']);
215
+        $seriesNo = !empty($parsedInfo['season']) ? preg_replace('/^S0*/i', '', (string) $parsedInfo['season']) : '';
216
+        $episodeNo = !empty($parsedInfo['episode']) ? preg_replace('/^E0*/i', '', (string) $parsedInfo['episode']) : '';
217
+        $hasAirdate = !empty($parsedInfo['airdate']);
218 218
 
219 219
         if ($episodeNo === 'all') {
220 220
             // Full season release
Please login to merge, or discard this patch.