sugared-rim-php-cs-fixer
#!/usr/bin/env php
<?php
use SugaredRim\PhpCsFixer\Console\Application;
set_error_handler(function ($severity, $message, $file, $line) {
if ($severity & error_reporting()) {
throw new ErrorException($message, 0, $severity, $file, $line);
}
});
if (!ini_get('date.timezone')) {
date_default_timezone_set('UTC');
}
foreach ([
__DIR__.'/../../autoload.php',
__DIR__.'/../vendor/autoload.php',
__DIR__.'/vendor/autoload.php',
] as $file) {
if (file_exists($file)) {
require $file;
break;
}
}
unset($file);
(new Application())->run();