@@ -32,7 +32,7 @@ |
||
32 | 32 | ); |
33 | 33 | } |
34 | 34 | |
35 | - $harmonics = array_filter($harmonics, function (Harmonic $harmonic) { |
|
35 | + $harmonics = array_filter($harmonics, function(Harmonic $harmonic) { |
|
36 | 36 | return $this->validateDistance($harmonic); |
37 | 37 | }); |
38 | 38 |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | return ( |
75 | 75 | $harmonic->isNatural() |
76 | 76 | || ($distance >= $this->minDistance && $distance <= $this->maxDistance) |
77 | - ) && $bowedDistance >= $this->minBowedDistance; |
|
77 | + ) && $bowedDistance >= $this->minBowedDistance; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | */ |
83 | 83 | private function getPhysicalStringLength(Harmonic $harmonic): float |
84 | 84 | { |
85 | - $string = $harmonic->getString(); |
|
85 | + $string = $harmonic->getString(); |
|
86 | 86 | |
87 | - return $string instanceof InstrumentStringInterface |
|
87 | + return $string instanceof InstrumentStringInterface |
|
88 | 88 | ? $string->getPhysicalLength() |
89 | 89 | : 500.0; |
90 | 90 | } |
@@ -25,12 +25,12 @@ |
||
25 | 25 | '' => self::ACCIDENTAL_NATURAL, |
26 | 26 | self::PATTERN_ACCIDENTAL_FLAT => self::ACCIDENTAL_FLAT, |
27 | 27 | self::PATTERN_ACCIDENTAL_SHARP => self::ACCIDENTAL_SHARP, |
28 | - '(\-|' . self::PATTERN_ACCIDENTAL_QUARTER . self::PATTERN_ACCIDENTAL_FLAT . ')' => self::ACCIDENTAL_QUARTER_FLAT, |
|
29 | - '(\+|' . self::PATTERN_ACCIDENTAL_QUARTER . self::PATTERN_ACCIDENTAL_SHARP . ')' => self::ACCIDENTAL_QUARTER_SHARP, |
|
30 | - '( |