PhpCsFixer\Config::create PHP Method

create() public static method

public static create ( ) : static
return static
    public static function create()
    {
        return new static();
    }

Usage Example

Example #1
0
 public function testThatCustomSymfonyFinderWorks()
 {
     $finder = new SymfonyFinder();
     $finder->in(__DIR__ . '/Fixtures/FinderDirectory');
     $config = Config::create()->finder($finder);
     $iterator = $config->getFinder()->getIterator();
     $this->assertSame(1, count($iterator));
     $iterator->rewind();
     $this->assertSame('somefile.php', $iterator->current()->getFilename());
 }
All Usage Examples Of PhpCsFixer\Config::create