doc.php 673 B

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