Passed
Pull Request — master (#20)
by Peter
02:27
created
AnalyzerText/Filter/Filter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     protected function getPreviousWord($shift = 1)
78 78
     {
79
-        return $this->getNextWord($shift * -1);
79
+        return $this->getNextWord($shift*-1);
80 80
     }
81 81
 
82 82
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $position = $this->getText()->key();
92 92
 
93 93
         try {
94
-            $this->getText()->seek($position + $shift);
94
+            $this->getText()->seek($position+$shift);
95 95
         } catch (\OutOfBoundsException $e) {
96 96
             return null;
97 97
         }
Please login to merge, or discard this patch.
AnalyzerText/Analyzer/Frequency.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,9 +70,9 @@
 block discarded – undo
70 70
     public function getPercent()
71 71
     {
72 72
         if (empty($this->percent) && ($frequencies = $this->getFrequency())) {
73
-            $ratio = max($frequencies) / 100;
73
+            $ratio = max($frequencies)/100;
74 74
             foreach ($frequencies as $word => $frequency) {
75
-                $this->percent[$word] = $frequency / $ratio;
75
+                $this->percent[$word] = $frequency/$ratio;
76 76
             }
77 77
         }
78 78
 
Please login to merge, or discard this patch.
AnalyzerText/Filter/WordList/WordList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
                 // удаляем слова из последовательности
87 87
                 $key = $this->getText()->key();
88 88
                 for ($i = 1; $i < $sequence_length; ++$i) {
89
-                    $this->getText()->seek($key + $i);
89
+                    $this->getText()->seek($key+$i);
90 90
                     $this->getText()->remove();
91 91
                 }
92 92
                 $this->getText()->seek($key);
Please login to merge, or discard this patch.