Test Failed
Push — master ( 53dff4...be6004 )
by Pol
05:20
created
src/NGramsTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
     {
18 18
         $ngrams = iterator_to_array($ngrams);
19 19
 
20
-        return count(array_filter($ngrams, function ($n) use ($substring) {
20
+        return count(array_filter($ngrams, function($n) use ($substring) {
21 21
             return $n === $substring;
22
-        }))/count($ngrams);
22
+        })) / count($ngrams);
23 23
     }
24 24
 
25 25
     /**
Please login to merge, or discard this patch.