doc.php 760 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env php
  2. <?php
  3. declare(strict_types=1);
  4. /*
  5. * This file is part of PHP CS Fixer.
  6. *
  7. * (c) Fabien Potencier <fabien@symfony.com>
  8. * Dariusz Rumiński <dariusz.ruminski@gmail.com>
  9. *
  10. * This source file is subject to the MIT license that is bundled
  11. * with this source code in the file LICENSE.
  12. */
  13. error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
  14. require __DIR__.'/../vendor/autoload.php';
  15. use PhpCsFixer\Console\Command\DocumentationCommand;
  16. use Symfony\Component\Console\Application;
  17. use Symfony\Component\Filesystem\Filesystem;
  18. $command = new DocumentationCommand(new Filesystem());
  19. $application = new Application();
  20. $application->add($command);
  21. $application
  22. ->setDefaultCommand($command->getName(), true)
  23. ->run()
  24. ;