diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-03-26 16:35:46 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-03-26 16:35:46 +0100 |
commit | 39dbf9509b1aa3988a14cb62402c437171dc213e (patch) | |
tree | 71408f9d15662f4e26efa9050ad6952a32ab3eaa /lib | |
parent | e66dda83df536e7bac14d5e5622f10747db63f2f (diff) | |
parent | db763027bbac7029c36f9bfb2e140ca152df2f46 (diff) | |
download | nextcloud-server-39dbf9509b1aa3988a14cb62402c437171dc213e.tar.gz nextcloud-server-39dbf9509b1aa3988a14cb62402c437171dc213e.zip |
Merge pull request #15224 from owncloud/issue/15191-app-code-checker-error-list
Correctly only send the errors of the current file to the event
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/app/codechecker.php | 5 |
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; |