1 Star 0 Fork 0

Charles/PHP-CS-Fixer

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
php-cs-fixer 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
Dariusz Ruminski 提交于 2016-08-17 05:32 +08:00 . Merge branch '1.12'
#!/usr/bin/env php
<?php
/*
* This file is part of the PHP CS utility.
*
* (c) Fabien Potencier <fabien@symfony.com>
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
/**
* @author Fabien Potencier <fabien@symfony.com>
* @author Dariusz Rumiński <dariusz.ruminski@gmail.com>
*/
if (defined('HHVM_VERSION_ID')) {
if (HHVM_VERSION_ID < 30900) {
fwrite(STDERR, "HHVM needs to be a minimum version of HHVM 3.9.0\n");
exit(1);
}
} elseif (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50306 || PHP_VERSION_ID >= 70200) {
fwrite(STDERR, "PHP needs to be a minimum version of PHP 5.3.6 and maximum version of PHP 7.1.*\n");
exit(1);
}
set_error_handler(function ($severity, $message, $file, $line) {
if ($severity & error_reporting()) {
throw new ErrorException($message, 0, $severity, $file, $line);
}
});
// installed via composer?
if (file_exists($a = __DIR__.'/../../autoload.php')) {
require_once $a;
} else {
require_once __DIR__.'/vendor/autoload.php';
}
use PhpCsFixer\Console\Application;
$application = new Application();
$application->run();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/zzzdtz/PHP-CS-Fixer.git
git@gitee.com:zzzdtz/PHP-CS-Fixer.git
zzzdtz
PHP-CS-Fixer
PHP-CS-Fixer
master

搜索帮助