Finder.php 774 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /*
  3. * This file is part of PHP CS Fixer.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. * Dariusz Rumiński <dariusz.ruminski@gmail.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. namespace PhpCsFixer;
  12. use Symfony\Component\Finder\Finder as BaseFinder;
  13. /**
  14. * @author Fabien Potencier <fabien@symfony.com>
  15. * @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
  16. */
  17. class Finder extends BaseFinder
  18. {
  19. public function __construct()
  20. {
  21. parent::__construct();
  22. $this
  23. ->files()
  24. ->name('*.php')
  25. ->name('*.phpt')
  26. ->ignoreDotFiles(true)
  27. ->ignoreVCS(true)
  28. ->exclude('vendor')
  29. ;
  30. }
  31. }