PhpGitHooks\Module\Configuration\Tests\Stub\PhpCsFixerResponseStub::create PHP Method

create() public static method

public static create ( boolean $phpCsFixer, boolean $psr0, boolean $psr1, boolean $psr2, boolean $symfony, string | null $options ) : PhpCsFixerResponse
$phpCsFixer boolean
$psr0 boolean
$psr1 boolean
$psr2 boolean
$symfony boolean
$options string | null
return PhpGitHooks\Module\Configuration\Contract\Response\PhpCsFixerResponse
    public static function create($phpCsFixer, $psr0, $psr1, $psr2, $symfony, $options)
    {
        return new PhpCsFixerResponse($phpCsFixer, $psr0, $psr1, $psr2, $symfony, $options);
    }

Usage Example

 /**
  * @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)));
 }
PhpCsFixerResponseStub