Completed
Push — master ( e17a12...0c99d9 )
by Christophe
07:05 queued 04:25
created
src/Entity/Media.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.