Completed
Branch dev (c992ef)
by Darko
06:17
created
nntmux/processing/tv/TVMaze.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
      * Main processing director function for scrapers
56 56
      * Calls work query function and initiates processing.
57 57
      *
58
-     * @param      $groupID
59
-     * @param      $guidChar
58
+     * @param      string $groupID
59
+     * @param      string $guidChar
60 60
      * @param      $process
61 61
      * @param bool $local
62 62
      */
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      * Returns a formatted array of show data or false if no match.
224 224
      *
225 225
      *
226
-     * @param string|null|array $cleanName
226
+     * @param string $cleanName
227 227
      * @return array|bool|false
228 228
      */
229 229
     protected function getShowInfo($cleanName)
Please login to merge, or discard this patch.
nntmux/processing/tv/TraktTv.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
      * Main processing director function for scrapers
92 92
      * Calls work query function and initiates processing.
93 93
      *
94
-     * @param      $groupID
95
-     * @param      $guidChar
94
+     * @param      string $groupID
95
+     * @param      string $guidChar
96 96
      * @param      $process
97 97
      * @param bool $local
98 98
      */
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
     /**
292 292
      * Retrieve info of TV programme from site using it's API.
293 293
      *
294
-     * @param string|null|array $name Title of programme to look up. Usually a cleaned up version from releases table.
294
+     * @param string $name Title of programme to look up. Usually a cleaned up version from releases table.
295 295
      *
296 296
      * @return array|false    False on failure, an array of information fields otherwise.
297 297
      */
Please login to merge, or discard this patch.
nntmux/processing/tv/TV.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
     /**
364 364
      * Sets the TV show's image column to found (1).
365 365
      *
366
-     * @param $videoId
366
+     * @param integer $videoId
367 367
      */
368 368
     public function setCoverFound($videoId): void
369 369
     {
@@ -375,8 +375,8 @@  discard block
 block discarded – undo
375 375
      * Returns the ID value or false if none found.
376 376
      *
377 377
      *
378
-     * @param $column
379
-     * @param $id
378
+     * @param string $column
379
+     * @param integer $id
380 380
      * @return bool|\Illuminate\Database\Eloquent\Model|mixed|null|static
381 381
      */
382 382
     public function getSiteByID($column, $id)
Please login to merge, or discard this patch.
nntmux/utility/Utility.php 1 patch
Doc Comments   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     /**
191 191
      * Detect if the command is accessible on the system.
192 192
      *
193
-     * @param $cmd
193
+     * @param string $cmd
194 194
      *
195 195
      * @return bool|null Returns true if found, false if not found, and null if which is not detected.
196 196
      */
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
     }
281 281
 
282 282
     /**
283
-     * @param array  $elements
283
+     * @param string[]  $elements
284 284
      * @param string $prefix
285 285
      *
286 286
      * @return string
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
      * Operates directly on the text string, but also returns the result for situations requiring a
308 308
      * return value (use in ternary, etc.)/
309 309
      *
310
-     * @param $text        String variable to strip.
310
+     * @param string $text        String variable to strip.
311 311
      *
312 312
      * @return string    The stripped variable.
313 313
      */
@@ -372,6 +372,9 @@  discard block
 block discarded – undo
372 372
         return $string === '' ? false : $string;
373 373
     }
374 374
 
375
+    /**
376
+     * @param string|null $path
377
+     */
375 378
     public static function setCoversConstant($path)
376 379
     {
377 380
         if (! defined('NN_COVERS')) {
@@ -467,7 +470,7 @@  discard block
 block discarded – undo
467 470
      *
468 471
      * @param array $options See details below.
469 472
      *
470
-     * @return bool|mixed
473
+     * @return string
471 474
      * @static
472 475
      */
473 476
     public static function getUrl(array $options = [])
@@ -1076,7 +1079,7 @@  discard block
 block discarded – undo
1076 1079
     /**
1077 1080
      * Simple function to reduce duplication in html string formatting.
1078 1081
      *
1079
-     * @param $string
1082
+     * @param string $string
1080 1083
      *
1081 1084
      * @return string
1082 1085
      */
Please login to merge, or discard this patch.
nntmux/processing/Videos.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
     /**
237 237
      * Supplementary function for getByTitle that queries for a like match.
238 238
      *
239
-     * @param        $title
239
+     * @param        string $title
240 240
      * @param        $type
241 241
      * @param int    $source
242 242
      *
Please login to merge, or discard this patch.
nntmux/ColorCLI.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     }
187 187
 
188 188
     /**
189
-     * @param $fg
189
+     * @param string $fg
190 190
      * @param string $opt
191 191
      * @param string $bg
192 192
      * @return string
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     }
207 207
 
208 208
     /**
209
-     * @param $str
209
+     * @param string $str
210 210
      * @return string
211 211
      */
212 212
     public static function debug($str): string
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     }
216 216
 
217 217
     /**
218
-     * @param $str
218
+     * @param string $str
219 219
      * @return string
220 220
      */
221 221
     public static function info($str): string
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     }
225 225
 
226 226
     /**
227
-     * @param $str
227
+     * @param string $str
228 228
      * @return string
229 229
      */
230 230
     public static function notice($str): string
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     }
270 270
 
271 271
     /**
272
-     * @param $str
272
+     * @param string $str
273 273
      * @return string
274 274
      */
275 275
     public static function alternate($str): string
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     }
279 279
 
280 280
     /**
281
-     * @param $str
281
+     * @param string $str
282 282
      * @return string
283 283
      */
284 284
     public static function tmuxOrange($str): string
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     }
306 306
 
307 307
     /**
308
-     * @param $str
308
+     * @param string $str
309 309
      * @return string
310 310
      */
311 311
     public static function alternateOver($str): string
Please login to merge, or discard this patch.
nntmux/processing/post/ProcessAdditional.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
     protected $tmpPath;
549 549
 
550 550
     /**
551
-     * @param $guidChar
551
+     * @param string $guidChar
552 552
      * @param string $groupID
553 553
      * @throws \RuntimeException
554 554
      * @throws \Exception
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
     /**
610 610
      * Get all releases that need to be processed.
611 611
      *
612
-     * @param int|string $groupID
612
+     * @param string $groupID
613 613
      * @param string     $guidChar
614 614
      *
615 615
      * @void
@@ -1695,7 +1695,7 @@  discard block
 block discarded – undo
1695 1695
     }
1696 1696
 
1697 1697
     /**
1698
-     * @param $fileLocation
1698
+     * @param string $fileLocation
1699 1699
      * @param $fileExtension
1700 1700
      * @return bool
1701 1701
      * @throws \Exception
@@ -2165,7 +2165,7 @@  discard block
 block discarded – undo
2165 2165
     }
2166 2166
 
2167 2167
     /**
2168
-     * @param $fileLocation
2168
+     * @param string $fileLocation
2169 2169
      * @throws \Exception
2170 2170
      */
2171 2171
     protected function _siftPAR2Info($fileLocation)
@@ -2252,7 +2252,7 @@  discard block
 block discarded – undo
2252 2252
     }
2253 2253
 
2254 2254
     /**
2255
-     * @param $fileLocation
2255
+     * @param string $fileLocation
2256 2256
      * @throws \Exception
2257 2257
      */
2258 2258
     protected function _processNfoFile($fileLocation)
@@ -2268,7 +2268,7 @@  discard block
 block discarded – undo
2268 2268
     }
2269 2269
 
2270 2270
     /**
2271
-     * @param $fileLocation
2271
+     * @param string $fileLocation
2272 2272
      * @throws \Exception
2273 2273
      */
2274 2274
     protected function _processVideoFile($fileLocation)
Please login to merge, or discard this patch.
nntmux/NZBGet.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      *
143 143
      * @param string $guid Release identifier.
144 144
      *
145
-     * @return bool|mixed
145
+     * @return Request
146 146
      */
147 147
     public function sendURLToNZBGet($guid)
148 148
     {
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
      *
408 408
      * @param string $url NZBGet URL to verify.
409 409
      *
410
-     * @return bool|string
410
+     * @return string|false
411 411
      */
412 412
     public function verifyURL($url)
413 413
     {
Please login to merge, or discard this patch.
nntmux/libraries/Cache.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
      * Store data on the cache server.
40 40
      *
41 41
      *
42
-     * @param $key
42
+     * @param string $key
43 43
      * @param $data
44
-     * @param $expiration
44
+     * @param integer $expiration
45 45
      * @return bool
46 46
      * @throws \nntmux\libraries\CacheException
47 47
      */
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * Attempt to retrieve a value from the cache server, if not set it.
65 65
      *
66 66
      *
67
-     * @param $key
67
+     * @param string $key
68 68
      * @return bool|mixed|string
69 69
      * @throws \nntmux\libraries\CacheException
70 70
      */
Please login to merge, or discard this patch.