Conditions | 5 |
Paths | 6 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
143 | private function detect() : void |
||
144 | { |
||
145 | if($this->detected) { |
||
146 | return; |
||
147 | } |
||
148 | |||
149 | $this->detected = true; |
||
150 | $this->found = array(); |
||
151 | $this->count = 0; |
||
152 | |||
153 | foreach(self::$words as $word) |
||
154 | { |
||
155 | if(stripos($this->subject, $word) !== false) |
||
156 | { |
||
157 | $this->count++; |
||
158 | $this->found[] = $word; |
||
159 | } |
||
160 | |||
161 | if($this->count >= $this->minWords) { |
||
162 | break; |
||
163 | } |
||
186 |