Skip to content

Commit

Permalink
- Fixed rewrite content on running validators.
Browse files Browse the repository at this point in the history
  • Loading branch information
andkirby committed Oct 28, 2014
1 parent c471bec commit 44b1efc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LibHooks/commithook.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config>
<version>1.4.1</version>
<version>1.4.2</version>
<supported_hooks>
<hook>pre-commit</hook>
<hook>commit-msg</hook>
Expand Down
2 changes: 1 addition & 1 deletion LibHooks/lib/PreCommit/Processor/PreCommit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 44b1efc

Please sign in to comment.