3135 lines
95 KiB
Plaintext
3135 lines
95 KiB
Plaintext
#!/usr/bin/env php
|
||
<?php
|
||
if ($_SERVER['SCRIPT_NAME'] != '-') {
|
||
$phar = realpath($_SERVER['SCRIPT_NAME']);
|
||
} else {
|
||
$files = get_included_files();
|
||
$phar = $files[0];
|
||
}
|
||
|
||
define('__PHPLOC_PHAR__', str_replace(DIRECTORY_SEPARATOR, '/', $phar));
|
||
define('__PHPLOC_PHAR_ROOT__', 'phar://phploc-7.0.2.phar');
|
||
|
||
spl_autoload_register(
|
||
function ($class)
|
||
{
|
||
static $classes = NULL;
|
||
|
||
if ($classes === NULL) {
|
||
$classes = array(
|
||
'sebastianbergmann\\cliparser\\ambiguousoptionexception' => '/sebastian-cli-parser/exceptions/AmbiguousOptionException.php',
|
||
'sebastianbergmann\\cliparser\\exception' => '/sebastian-cli-parser/exceptions/Exception.php',
|
||
'sebastianbergmann\\cliparser\\optiondoesnotallowargumentexception' => '/sebastian-cli-parser/exceptions/OptionDoesNotAllowArgumentException.php',
|
||
'sebastianbergmann\\cliparser\\parser' => '/sebastian-cli-parser/Parser.php',
|
||
'sebastianbergmann\\cliparser\\requiredoptionargumentmissingexception' => '/sebastian-cli-parser/exceptions/RequiredOptionArgumentMissingException.php',
|
||
'sebastianbergmann\\cliparser\\unknownoptionexception' => '/sebastian-cli-parser/exceptions/UnknownOptionException.php',
|
||
'sebastianbergmann\\fileiterator\\facade' => '/phpunit-php-file-iterator/Facade.php',
|
||
'sebastianbergmann\\fileiterator\\factory' => '/phpunit-php-file-iterator/Factory.php',
|
||
'sebastianbergmann\\fileiterator\\iterator' => '/phpunit-php-file-iterator/Iterator.php',
|
||
'sebastianbergmann\\phploc\\analyser' => '/src/Analyser.php',
|
||
'sebastianbergmann\\phploc\\application' => '/src/CLI/Application.php',
|
||
'sebastianbergmann\\phploc\\arguments' => '/src/CLI/Arguments.php',
|
||
'sebastianbergmann\\phploc\\argumentsbuilder' => '/src/CLI/ArgumentsBuilder.php',
|
||
'sebastianbergmann\\phploc\\argumentsbuilderexception' => '/src/Exception/ArgumentsBuilderException.php',
|
||
'sebastianbergmann\\phploc\\collector' => '/src/Collector.php',
|
||
'sebastianbergmann\\phploc\\exception' => '/src/Exception/Exception.php',
|
||
'sebastianbergmann\\phploc\\log\\csv' => '/src/Log/Csv.php',
|
||
'sebastianbergmann\\phploc\\log\\json' => '/src/Log/Json.php',
|
||
'sebastianbergmann\\phploc\\log\\text' => '/src/Log/Text.php',
|
||
'sebastianbergmann\\phploc\\log\\xml' => '/src/Log/Xml.php',
|
||
'sebastianbergmann\\phploc\\publisher' => '/src/Publisher.php',
|
||
'sebastianbergmann\\phploc\\runtimeexception' => '/src/Exception/RuntimeException.php',
|
||
'sebastianbergmann\\version' => '/sebastian-version/Version.php'
|
||
);
|
||
}
|
||
|
||
$class = strtolower($class);
|
||
|
||
if (isset($classes[$class])) {
|
||
require 'phar://phploc-7.0.2.phar' . $classes[$class];
|
||
}
|
||
}
|
||
);
|
||
|
||
Phar::mapPhar('phploc-7.0.2.phar');
|
||
|
||
if (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == '--manifest') {
|
||
print file_get_contents(__PHPLOC_PHAR_ROOT__ . '/manifest.txt');
|
||
exit;
|
||
}
|
||
|
||
exit((new \SebastianBergmann\PHPLOC\Application)->run($_SERVER['argv']));
|
||
|
||
__HALT_COMPILER(); ?>
|
||
x |