Applied fixes from StyleCI
This commit is contained in:
committed by
Stéphane Goetz
parent
cfc8d30ba2
commit
2314516ce9
daux
index.phplibs
Compiler.phpProcessor.php
Console
ContentTypes
ContentTypeHandler.php
Daux.phpDauxHelper.phpMarkdown
Format
Base
Confluence
HTML
HTMLFile
Server
Tree
templates
tests
@ -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);
|
||||
|
Reference in New Issue
Block a user