Applied fixes from StyleCI

This commit is contained in:
onigoetz
2016-07-27 15:32:51 -04:00
committed by Stéphane Goetz
parent cfc8d30ba2
commit 2314516ce9
52 changed files with 477 additions and 424 deletions

@ -76,12 +76,12 @@ if (php_sapi_name() === 'cli-server') {
}
if (file_exists('vendor/autoload.php')) {
require_once('vendor/autoload.php');
require_once 'vendor/autoload.php';
} elseif (file_exists('daux.phar')) {
define('PHAR_DIR', __DIR__);
require_once("phar://" . __DIR__ . "/daux.phar/vendor/autoload.php");
require_once 'phar://' . __DIR__ . '/daux.phar/vendor/autoload.php';
} else {
throw new Exception("Impossible to load Daux, missing vendor/ or daux.phar");
throw new Exception('Impossible to load Daux, missing vendor/ or daux.phar');
}
\Todaymade\Daux\Server\Server::serve($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], $_REQUEST);