PhpCsFixer\Console\ConfigurationResolver::getConfigFile PHP Метод

getConfigFile() публичный Метод

Returns config file path.
public getConfigFile ( ) : null | string
Результат null | string
    public function getConfigFile()
    {
        if (null === $this->configFile) {
            $this->getConfig();
        }
        return $this->configFile;
    }

Usage Example

 /**
  * @dataProvider provideResolveConfigFileDefaultCases
  */
 public function testResolveConfigFileChooseFile($expectedFile, $expectedClass, $path, $cwdPath = null)
 {
     $resolver = $this->resolver->setOption('path', array($path));
     if (null !== $cwdPath) {
         $resolver->setCwd($cwdPath);
     }
     $resolver->resolve();
     $this->assertSame($expectedFile, $this->resolver->getConfigFile());
     $this->assertInstanceOf($expectedClass, $this->resolver->getConfig());
 }
All Usage Examples Of PhpCsFixer\Console\ConfigurationResolver::getConfigFile