@@ -97,9 +97,9 @@ discard block |
||
| 97 | 97 | $result->setError("mtime() returns error"); |
| 98 | 98 | return $result; |
| 99 | 99 | } |
| 100 | - $age = (time()-$mtime); |
|
| 101 | - $age = round($age/60); // sec-to-min |
|
| 102 | - if ($age > (int)$this->maxage) { |
|
| 100 | + $age = (time() - $mtime); |
|
| 101 | + $age = round($age / 60); // sec-to-min |
|
| 102 | + if ($age > (int) $this->maxage) { |
|
| 103 | 103 | $result->setSuccess(false); |
| 104 | 104 | $result->setError($this->filename." is to old!"); |
| 105 | 105 | return $result; |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | return $result; |
| 121 | 121 | } |
| 122 | 122 | $linenr = 0; |
| 123 | - while($line = fgets($fp)) { |
|
| 123 | + while ($line = fgets($fp)) { |
|
| 124 | 124 | $linenr++; |
| 125 | 125 | if (preg_match('~'.$this->unwantedRegex.'~i', $line)) { |
| 126 | 126 | $result->setSuccess(false); |