@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | use TextUtils\NGram; |
4 | 4 | |
5 | -if (! function_exists('bigram')) { |
|
5 | +if (!function_exists('bigram')) { |
|
6 | 6 | /** |
7 | 7 | * Generate a bi-gram for the provided string. |
8 | 8 | * |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | } |
19 | 19 | } |
20 | 20 | |
21 | -if (! function_exists('trigram')) { |
|
21 | +if (!function_exists('trigram')) { |
|
22 | 22 | /** |
23 | 23 | * Generate a tri-gram for the provided string. |
24 | 24 | * |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | } |
36 | 36 | |
37 | -if (! function_exists('ngram')) { |
|
37 | +if (!function_exists('ngram')) { |
|
38 | 38 | /** |
39 | 39 | * Generate a tri-gram for the provided string. |
40 | 40 | * |
@@ -47,6 +47,6 @@ discard block |
||
47 | 47 | */ |
48 | 48 | function ngram(string $text, int $length = 3) |
49 | 49 | { |
50 | - return NGram::for($text, $length); |
|
50 | + return NGram::for ($text, $length); |
|
51 | 51 | } |
52 | 52 | } |