PhpCsFixer\Config::getFinder PHP Method

getFinder() public method

public getFinder ( )
    public function getFinder()
    {
        if (null === $this->finder) {
            $this->finder = new Finder();
        }
        return $this->finder;
    }

Usage Example

 public function testResolvePathWithFileThatIsNotExcluded()
 {
     $dir = __DIR__;
     $this->config->getFinder()->in($dir)->notPath('foo-' . basename(__FILE__));
     $this->resolver->setOption('path', array(__FILE__))->resolve();
     $this->assertCount(1, $this->resolver->getConfig()->getFinder());
 }
All Usage Examples Of PhpCsFixer\Config::getFinder