fix flag reset location

This commit is contained in:
Pélisset Vincent 2017-12-14 12:12:17 +01:00 committed by Dmitry Khomutov
parent 5c409f8856
commit d218554bfa
No known key found for this signature in database
GPG key ID: EC19426474B37AAC

View file

@ -217,9 +217,9 @@ class TechnicalDebt extends Plugin implements ZeroConfigPluginInterface
if (!$ignored){
$handle = fopen($filePath, "r");
$lineNumber = 1;
$found=false;
while (false === feof($handle)) {
$line = fgets($handle);
$found=false;
foreach ($this->searches as $search) {
if ($technicalDeptLine = trim(strstr($line, $search))) {
$fileName = str_replace($this->directory, '', $filePath);