-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make hooker able to deal with undefined hook types
Also add list of known hook types
- Loading branch information
1 parent
6816a83
commit 8f7dfd1
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: bigtallbill | ||
* Date: 3/9/15 | ||
* Time: 9:01 PM | ||
*/ | ||
|
||
namespace Bigtallbill\Hooker; | ||
|
||
|
||
class HookUnknown extends Hook { | ||
|
||
/** | ||
* @param array $argv | ||
* | ||
* @param array $config | ||
* | ||
* @param string $type The commit hook type | ||
* | ||
* @return bool True if the hook passes checks False if any errors are encountered | ||
*/ | ||
public function execute($argv, array $config, $type) | ||
{ | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters