src/Helper/GitDirHelper.php
protected function getValidator()
    {
        $helper = $this;

        // @codingStandardsIgnoreStart
        return function ($dir) use ($helper) {
            $dir = rtrim($dir, '\\/');
            if (!is_dir($helper->getDotGitDirectory($dir))) {
                throw new LogicException('No information about git directory.');
            }

            return $dir;
        };
        // @codingStandardsIgnoreEnd
    }
protected function getValidator()
    {
        $helper = $this;

        // @codingStandardsIgnoreStart
        return function ($dir) use ($helper) {
            $dir = rtrim($dir, '\\/');
            if (!is_dir($helper->getDotGitDirectory($dir))) {
                throw new LogicException('No information about git directory.');
            }

            return $dir;
        };
        // @codingStandardsIgnoreEnd
    }
protected function getValidator ( ) { $ helper = $ this ; // @codingStandardsIgnoreStart return function ( $ dir ) use ( $ helper ) { $ dir = rtrim ( $ dir , '\\/' ) ; if ( ! is_dir ( $ helper -> getDotGitDirectory ( $ dir ) ) ) { throw new LogicException ( 'No information about git directory.' ) ; } return $ dir ; } ; // @codingStandardsIgnoreEnd }
Get GIT root directory validator

@return \Closure
Get GIT root directory validator