src/PhpGitHooks/Module/Configuration/Service/PreCommitProcessor.php 1 location
|
@@ 23-35 (lines=13) @@
|
20 |
|
* |
21 |
|
* @return PreCommit |
22 |
|
*/ |
23 |
|
public function process(PreCommit $preCommitData, IOInterface $input) |
24 |
|
{ |
25 |
|
$this->io = $input; |
26 |
|
if (true === $preCommitData->isUndefined()) { |
27 |
|
$preCommitData = PreCommitConfigurator::configure($this->io, $preCommitData); |
28 |
|
} |
29 |
|
|
30 |
|
if (true === $preCommitData->isEnabled()) { |
31 |
|
$preCommitData = $preCommitData->setExecute($this->configTools($preCommitData->getExecute())); |
32 |
|
} |
33 |
|
|
34 |
|
return $preCommitData; |
35 |
|
} |
36 |
|
|
37 |
|
/** |
38 |
|
* @param ExecuteInterface $execute |
src/PhpGitHooks/Module/Configuration/Service/PrePushProcessor.php 1 location
|
@@ 23-35 (lines=13) @@
|
20 |
|
* |
21 |
|
* @return PrePush |
22 |
|
*/ |
23 |
|
public function process(PrePush $prePushData, IOInterface $input) |
24 |
|
{ |
25 |
|
$this->input = $input; |
26 |
|
if (true === $prePushData->isUndefined()) { |
27 |
|
$prePushData = PrePushConfigurator::configure($this->input, $prePushData); |
28 |
|
} |
29 |
|
|
30 |
|
if (true === $prePushData->isEnabled()) { |
31 |
|
$prePushData = $prePushData->setExecute($this->configTools($prePushData->getExecute())); |
32 |
|
} |
33 |
|
|
34 |
|
return $prePushData; |
35 |
|
} |
36 |
|
|
37 |
|
/** |
38 |
|
* @param ExecuteInterface $execute |