@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | use Yiisoft\Yii\Runner\Http\HttpApplicationRunner; |
| 6 | 6 | |
| 7 | 7 | if (getenv('YII_ENV') === 'test') { |
| 8 | - $c3 = dirname(__DIR__) . '/c3.php'; |
|
| 8 | + $c3=dirname(__DIR__) . '/c3.php'; |
|
| 9 | 9 | if (file_exists($c3)) { |
| 10 | 10 | require_once $c3; |
| 11 | 11 | } |
@@ -18,17 +18,17 @@ discard block |
||
| 18 | 18 | if (PHP_SAPI === 'cli-server') { |
| 19 | 19 | // Serve static files as is. |
| 20 | 20 | /** @psalm-suppress MixedArgument */ |
| 21 | - $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); |
|
| 21 | + $path=parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); |
|
| 22 | 22 | if (is_file(__DIR__ . $path)) { |
| 23 | 23 | return false; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | // Explicitly set for URLs with dot. |
| 27 | - $_SERVER['SCRIPT_NAME'] = '/index.php'; |
|
| 27 | + $_SERVER['SCRIPT_NAME']='/index.php'; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | require_once dirname(__DIR__) . '/autoload.php'; |
| 31 | 31 | |
| 32 | 32 | // Run HTTP application runner |
| 33 | -$runner = new HttpApplicationRunner(dirname(__DIR__), $_ENV['YII_DEBUG'], $_ENV['YII_ENV']); |
|
| 33 | +$runner=new HttpApplicationRunner(dirname(__DIR__), $_ENV['YII_DEBUG'], $_ENV['YII_ENV']); |
|
| 34 | 34 | $runner->run(); |