Completed
Pull Request — master (#5)
by Christophe
02:50
created
src/Entity/Media.php 3 patches
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.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     }
284 284
 
285 285
     /**
286
-     * @return string
286
+     * @return boolean
287 287
      */
288 288
     public function getExist()
289 289
     {
@@ -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)
@@ -756,7 +756,7 @@  discard block
 block discarded – undo
756 756
     }
757 757
 
758 758
     /**
759
-     * @return string
759
+     * @return boolean
760 760
      */
761 761
     public function getTagged()
762 762
     {
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -6,11 +6,7 @@
 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
-use DeejayPoolBundle\Entity\AvdItem;
12
-use DeejayPoolBundle\Entity\SvItem;
13
-use DeejayPoolBundle\Entity\FranchisePoolItem;
14 10
 
15 11
 /**
16 12
  * Media
Please login to merge, or discard this patch.