@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | } |
| 534 | 534 | |
| 535 | 535 | /** |
| 536 | - * @param Genre $artist |
|
| 536 | + * @param Artist $artist |
|
| 537 | 537 | * @return $this |
| 538 | 538 | */ |
| 539 | 539 | public function removeArtist(Artist $artist) |
@@ -780,7 +780,7 @@ discard block |
||
| 780 | 780 | } |
| 781 | 781 | |
| 782 | 782 | /** |
| 783 | - * @return string |
|
| 783 | + * @return boolean |
|
| 784 | 784 | */ |
| 785 | 785 | public function getTagged() |
| 786 | 786 | { |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | public function setBpm($bpm) |
| 233 | 233 | { |
| 234 | 234 | if (filter_var($bpm, FILTER_VALIDATE_INT) || filter_var($bpm, FILTER_VALIDATE_FLOAT)) { |
| 235 | - if ( $bpm <= 160 && $bpm >= 60) { |
|
| 235 | + if ($bpm <= 160 && $bpm >= 60) { |
|
| 236 | 236 | $this->bpm = abs($bpm); |
| 237 | 237 | } |
| 238 | 238 | } |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | */ |
| 277 | 277 | public function setFullPath($fullPath) |
| 278 | 278 | { |
| 279 | - $pattern = '#('.DIRECTORY_SEPARATOR.')\1+#'; |
|
| 279 | + $pattern = '#(' . DIRECTORY_SEPARATOR . ')\1+#'; |
|
| 280 | 280 | $replacement = DIRECTORY_SEPARATOR; |
| 281 | 281 | $fullPath = preg_replace($pattern, $replacement, $fullPath); |
| 282 | 282 | |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | public function setType($type) |
| 360 | 360 | { |
| 361 | 361 | if (!in_array($type, self::getTypes())) { |
| 362 | - throw new \InvalidArgumentException(sprintf('%s is not a valid type. See %s', $type, self::class.'::getTypes()')); |
|
| 362 | + throw new \InvalidArgumentException(sprintf('%s is not a valid type. See %s', $type, self::class . '::getTypes()')); |
|
| 363 | 363 | } |
| 364 | 364 | |
| 365 | 365 | $this->type = $type; |