@@ -22,7 +22,7 @@ |
||
| 22 | 22 | public function __construct(array $stringFrequencies = null, float $stopLength = null) |
| 23 | 23 | { |
| 24 | 24 | if (null === $stringFrequencies) { |
| 25 | - $stringFrequencies = array_map(function ($name) { |
|
| 25 | + $stringFrequencies = array_map(function($name) { |
|
| 26 | 26 | return Note::fromName($name)->getFrequency(); |
| 27 | 27 | }, $this->getDefaultNames()); |
| 28 | 28 | } |
@@ -259,7 +259,7 @@ |
||
| 259 | 259 | $accidental = trim($accidental); |
| 260 | 260 | |
| 261 | 261 | foreach (self::$accidentalPatterns as $pattern => $replacement) { |
| 262 | - if (preg_match('/^' . $pattern . '$/iu', $accidental)) { |
|
| 262 | + if (preg_match('/^'.$pattern.'$/iu', $accidental)) { |
|
| 263 | 263 | return $replacement; |
| 264 | 264 | } |
| 265 | 265 | } |