/** * @return PreCommitResponse */ public static function createAllEnabled() { $bool = true; return self::create($bool, static::GOOD_JOB, static::FIX_YOUR_CODE, $bool, $bool, $bool, PhpMdResponseStub::createEnabled(), PhpCsResponseStub::createEnabled(), PhpCsFixerResponseStub::createEnabled(), PhpUnitResponseStub::createEnabled(), PhpUnitStrictCoverageResponseStub::createEnabled(), PhpUnitGuardCoverageResponseStub::createEnabled()); }
/** * @param bool $preCommit * @param bool $commitMsg * @param bool $prePush * * @return ConfigurationDataResponse */ public static function createCustom($preCommit, $commitMsg, $prePush) { return self::create(PreCommitResponseStub::create($preCommit, PreCommitResponseStub::GOOD_JOB, PreCommitResponseStub::FIX_YOUR_CODE, $preCommit, $preCommit, $preCommit, PhpMdResponseStub::create($preCommit, PhpMdResponseStub::OPTIONS), PhpCsResponseStub::create($preCommit, PhpCsResponseStub::STANDARD), PhpCsFixerResponseStub::create($preCommit, $preCommit, $preCommit, $preCommit, $preCommit), PhpUnitResponseStub::create($preCommit, $preCommit, PhpUnitResponseStub::OPTIONS), PhpUnitStrictCoverageResponseStub::create($preCommit, PhpUnitStrictCoverageResponseStub::MINIMUM), PhpUnitGuardCoverageResponseStub::create($preCommit, PhpUnitGuardCoverageResponseStub::WARNING_MESSAGE)), CommitMsgResponseStub::create($commitMsg, CommitMsgResponseStub::REGULAR_EXPRESSION), PrePushResponseStub::create($prePush, PrePushResponseStub::RIGHT_MESSAGE, PrePushResponseStub::ERROR_MESSAGE, PhpUnitResponseStub::create($prePush, $prePush, PhpUnitResponseStub::OPTIONS), PhpUnitStrictCoverageResponseStub::create($prePush, PhpUnitStrictCoverageResponseStub::MINIMUM), PhpUnitGuardCoverageResponseStub::create($prePush, PhpUnitGuardCoverageResponseStub::WARNING_MESSAGE))); }