Passed
Branch coverage (b726da)
by Christophe
02:51
created
src/Entity/Media.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
780 780
     }
781 781
 
782 782
     /**
783
-     * @return string
783
+     * @return boolean
784 784
      */
785 785
     public function getTagged()
786 786
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.