src/PhpGitHooks/Module/Configuration/Service/PreCommitProcessor.php 1 location
|
@@ 37-49 (lines=13) @@
|
34 |
|
* |
35 |
|
* @return PreCommit |
36 |
|
*/ |
37 |
|
public function process(PreCommit $preCommitData, IOInterface $input) |
38 |
|
{ |
39 |
|
$this->io = $input; |
40 |
|
if (true === $preCommitData->isUndefined()) { |
41 |
|
$preCommitData = PreCommitConfigurator::configure($this->io, $preCommitData); |
42 |
|
} |
43 |
|
|
44 |
|
if (true === $preCommitData->isEnabled()) { |
45 |
|
$preCommitData = $preCommitData->setExecute($this->configTools($preCommitData->getExecute())); |
46 |
|
} |
47 |
|
|
48 |
|
return $preCommitData; |
49 |
|
} |
50 |
|
|
51 |
|
/** |
52 |
|
* @param ExecuteInterface $execute |
src/PhpGitHooks/Module/Configuration/Service/PrePushProcessor.php 1 location
|
@@ 37-49 (lines=13) @@
|
34 |
|
* |
35 |
|
* @return PrePush |
36 |
|
*/ |
37 |
|
public function process(PrePush $prePushData, IOInterface $input) |
38 |
|
{ |
39 |
|
$this->input = $input; |
40 |
|
if (true === $prePushData->isUndefined()) { |
41 |
|
$prePushData = PrePushConfigurator::configure($this->input, $prePushData); |
42 |
|
} |
43 |
|
|
44 |
|
if (true === $prePushData->isEnabled()) { |
45 |
|
$prePushData = $prePushData->setExecute($this->configTools($prePushData->getExecute())); |
46 |
|
} |
47 |
|
|
48 |
|
return $prePushData; |
49 |
|
} |
50 |
|
|
51 |
|
/** |
52 |
|
* @param ExecuteInterface $execute |