php-cs-fixer 687 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env php
  2. <?php
  3. /*
  4. * This file is part of the Symfony CS utility.
  5. *
  6. * (c) Fabien Potencier <fabien@symfony.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. /**
  12. * @author Fabien Potencier <fabien@symfony.com>
  13. */
  14. if (version_compare(phpversion(), '5.3.6', '<')) {
  15. echo "PHP needs to be a minimum version of PHP 5.3.6\n";
  16. exit(1);
  17. }
  18. // installed via composer?
  19. if (file_exists($a = __DIR__.'/../../autoload.php')) {
  20. require_once $a;
  21. } else {
  22. require_once __DIR__.'/vendor/autoload.php';
  23. }
  24. use Symfony\CS\Console\Application;
  25. $application = new Application();
  26. $application->run();