Completed
Push — master ( 8c0b34...7b920c )
by Patrick
01:31
created
src/HarmonicCalculator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Note.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
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
-        '(
Please login to merge, or discard this patch.