@@ -57,8 +57,8 @@ |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | // Apply threshold when set. |
| 60 | - if(!is_null($this->threshold)){ |
|
| 61 | - $sorted_haystack = array_filter($sorted_haystack, function ($score){ |
|
| 60 | + if (!is_null($this->threshold)) { |
|
| 61 | + $sorted_haystack = array_filter($sorted_haystack, function($score) { |
|
| 62 | 62 | return $score <= $this->threshold; |
| 63 | 63 | }); |
| 64 | 64 | } |