summaryrefslogtreecommitdiffstats
path: root/lib/private/app/codechecker.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-26 15:33:31 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-26 15:33:31 +0100
commitdb763027bbac7029c36f9bfb2e140ca152df2f46 (patch)
treef0b3cdef0459eadb20e37638e7e4da37160a2859 /lib/private/app/codechecker.php
parent0d786c381b8d4656e6bbcb5ef2b33e718ea639eb (diff)
downloadnextcloud-server-db763027bbac7029c36f9bfb2e140ca152df2f46.tar.gz
nextcloud-server-db763027bbac7029c36f9bfb2e140ca152df2f46.zip
Correctly only send the errors of the current file to the event
Diffstat (limited to 'lib/private/app/codechecker.php')
-rw-r--r--lib/private/app/codechecker.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/app/codechecker.php b/lib/private/app/codechecker.php
index dbec53579a8..f9d24be6ad1 100644
--- a/lib/private/app/codechecker.php
+++ b/lib/private/app/codechecker.php
@@ -103,8 +103,9 @@ class CodeChecker extends BasicEmitter {
foreach ($iterator as $file) {
/** @var SplFileInfo $file */
$this->emit('CodeChecker', 'analyseFileBegin', [$file->getPathname()]);
- $errors = array_merge($this->analyseFile($file), $errors);
- $this->emit('CodeChecker', 'analyseFileFinished', [$errors]);
+ $fileErrors = $this->analyseFile($file);
+ $this->emit('CodeChecker', 'analyseFileFinished', [$fileErrors]);
+ $errors = array_merge($fileErrors, $errors);
}
return $errors;