@@ -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 | { |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Doctrine\ORM\Mapping as ORM; |
7 | 7 | use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; |
8 | 8 | use Doctrine\ORM\Mapping\UniqueConstraint; |
9 | -use Symfony\Component\Validator\Constraints as Assert; |
|
10 | 9 | use Symfony\Component\Serializer\Annotation\Groups; |
11 | 10 | use DeejayPoolBundle\Entity\AvdItem; |
12 | 11 | use DeejayPoolBundle\Entity\SvItem; |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | public function setBpm($bpm) |
276 | 276 | { |
277 | 277 | if (filter_var($bpm, FILTER_VALIDATE_INT) || filter_var($bpm, FILTER_VALIDATE_FLOAT)) { |
278 | - if ( $bpm <= 160 && $bpm >= 60) { |
|
278 | + if ($bpm <= 160 && $bpm >= 60) { |
|
279 | 279 | $this->bpm = abs($bpm); |
280 | 280 | } |
281 | 281 | } |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | */ |
345 | 345 | public function setFullPath($fullPath) |
346 | 346 | { |
347 | - $pattern = '#('.DIRECTORY_SEPARATOR.')\1+#'; |
|
347 | + $pattern = '#(' . DIRECTORY_SEPARATOR . ')\1+#'; |
|
348 | 348 | $replacement = DIRECTORY_SEPARATOR; |
349 | 349 | $fullPath = preg_replace($pattern, $replacement, $fullPath); |
350 | 350 | |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | public function setType($type) |
428 | 428 | { |
429 | 429 | if (!in_array($type, self::getTypes())) { |
430 | - throw new \InvalidArgumentException(sprintf('%s is not a valid type. See %s', $type, self::class.'::getTypes()')); |
|
430 | + throw new \InvalidArgumentException(sprintf('%s is not a valid type. See %s', $type, self::class . '::getTypes()')); |
|
431 | 431 | } |
432 | 432 | |
433 | 433 | $this->type = $type; |
@@ -770,7 +770,7 @@ discard block |
||
770 | 770 | $patern = '/^(?P<providerId>\d{1,9}\_\d{1,9})\_/'; |
771 | 771 | } |
772 | 772 | |
773 | - if (preg_match($patern, $fileName, $matches)){ |
|
773 | + if (preg_match($patern, $fileName, $matches)) { |
|
774 | 774 | $this->setProviderId($matches['providerId']); |
775 | 775 | } |
776 | 776 | } |