@@ -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; |