3644 lines
848 KiB
Executable File
3644 lines
848 KiB
Executable File
#!/usr/bin/env php
|
||
<?php
|
||
/**
|
||
* Define global constant that marks this as PHPMD phar release.
|
||
*/
|
||
define('PHP_PMD_RELEASE', 'phar');
|
||
|
||
Phar::mapPhar( 'phpmd.phar' );
|
||
|
||
// Configure include path to use this phar
|
||
set_include_path('phar://phpmd.phar/' . PATH_SEPARATOR . get_include_path());
|
||
|
||
if (isset($argv) && realpath($argv[0]) === __FILE__) {
|
||
|
||
// Load command line utility
|
||
include_once 'phar://phpmd.phar/vendor/autoload.php';
|
||
|
||
// Run command line interface
|
||
exit(\PHPMD\TextUI\Command::main($argv));
|
||
}
|
||
__HALT_COMPILER(); ?>
|
||
À |