doc.php 699 B

123456789101112131415161718192021222324252627282930
  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. $command = new DocumentationCommand();
  18. $application = new Application();
  19. $application->add($command);
  20. $application
  21. ->setDefaultCommand($command->getName(), true)
  22. ->run()
  23. ;