From 44b1efcafc834f96435b316d5e575a3b3038ed3c Mon Sep 17 00:00:00 2001 From: Andrew Roslik Date: Tue, 28 Oct 2014 20:23:17 +0200 Subject: [PATCH] - Fixed rewrite content on running validators. --- LibHooks/commithook.xml.dist | 2 +- LibHooks/lib/PreCommit/Processor/PreCommit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LibHooks/commithook.xml.dist b/LibHooks/commithook.xml.dist index 8557219..1181ccd 100644 --- a/LibHooks/commithook.xml.dist +++ b/LibHooks/commithook.xml.dist @@ -1,6 +1,6 @@ - 1.4.1 + 1.4.2 pre-commit commit-msg diff --git a/LibHooks/lib/PreCommit/Processor/PreCommit.php b/LibHooks/lib/PreCommit/Processor/PreCommit.php index fd793ac..ff30534 100644 --- a/LibHooks/lib/PreCommit/Processor/PreCommit.php +++ b/LibHooks/lib/PreCommit/Processor/PreCommit.php @@ -207,7 +207,7 @@ public function runFiltersByExtension($ext, $content, $file, $filePath) public function runValidatorsByExtension($ext, $content, $file, $filePath) { foreach ($this->getValidators($ext) as $validatorName) { - $content = $this->_loadValidator($validatorName) + $this->_loadValidator($validatorName) ->validate($content, $file, $filePath); } }