1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00

Remove unnecessary echo

This commit is contained in:
Matt Brown 2018-04-25 11:53:10 -04:00
parent 9a1674bd0e
commit a409b3c32a
2 changed files with 0 additions and 5 deletions

View File

@ -19,7 +19,6 @@ class TemplateChecker extends Psalm\Checker\FileChecker
public function analyze(Context $context = null, $update_docblocks = false) public function analyze(Context $context = null, $update_docblocks = false)
{ {
$codebase = $this->project_checker->getCodebase(); $codebase = $this->project_checker->getCodebase();
$this->project_checker->enableCheckerCache();
$stmts = $codebase->getStatementsForFile($this->file_path); $stmts = $codebase->getStatementsForFile($this->file_path);
if (empty($stmts)) { if (empty($stmts)) {
@ -67,8 +66,6 @@ class TemplateChecker extends Psalm\Checker\FileChecker
} }
$this->checkWithViewClass($this_params, $stmts); $this->checkWithViewClass($this_params, $stmts);
$this->project_checker->disableCheckerCache();
} }
/** /**

View File

@ -136,8 +136,6 @@ class Analyzer
} }
$file_checker->analyze(null); $file_checker->analyze(null);
echo 'Current memory: ' . number_format(memory_get_usage() / (1024 * 1024), 3) . 'MB' . "\n";
}; };
if ($pool_size > 1 && count($this->files_to_analyze) > $pool_size) { if ($pool_size > 1 && count($this->files_to_analyze) > $pool_size) {