We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in lib/LogParser.php, line 175
This loop uses a function. To avoid the overhead of executing the function n times, you should precalculate it before the loop.
$file = $this->getSplFileObject(); foreach ($hosts as $host) { $testConfiguration = $this->getTestConfiguration(); $testConfiguration[$host] = (!isset($testConfiguration[$host]) ? [] : $testConfiguration[$host]); $this->setTestConfiguration($testConfiguration); for ($i = 0; $i < $this->getNumberOfLine(); $i++) { $line = $file->current(); if ('' !== trim($line)) { $this->parseOneLine($line); } $file->next();
Posted from SensioLabsInsight
The text was updated successfully, but these errors were encountered:
fix: SensioInsight reported use of a function in loops - fixes #56
9ce8eb5
No branches or pull requests
in lib/LogParser.php, line 175
Posted from SensioLabsInsight
The text was updated successfully, but these errors were encountered: