src/Command/LintCommand.php
protected function getConfigFile()
    {
        $inputPath = $this->input->getArgument('path');

        $dir = './';

        if (1 == count($inputPath) && $first = reset($inputPath)) {
            $dir = is_dir($first) ? $first : dirname($first);
        }

        $filename = rtrim($dir, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.'.phplint.yml';

        return realpath($filename);
    }
protected function getConfigFile()
    {
        $inputPath = $this->input->getArgument('path');

        $dir = './';

        if (1 == count($inputPath) && $first = reset($inputPath)) {
            $dir = is_dir($first) ? $first : dirname($first);
        }

        $filename = rtrim($dir, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.'.phplint.yml';

        return realpath($filename);
    }
protected function getConfigFile ( ) { $ inputPath = $ this -> input -> getArgument ( 'path' ) ; $ dir = './' ; if ( 1 == count ( $ inputPath ) && $ first = reset ( $ inputPath ) ) { $ dir = is_dir ( $ first ) ? $ first : dirname ( $ first ) ; } $ filename = rtrim ( $ dir , DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR . '.phplint.yml' ; return realpath ( $ filename ) ; }
Get configuration file.

@return string|null
Get configuration file .