Completed
Push — master ( 3ca75f...613104 )
by Adeola
02:25
created

index.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
if (PHP_SAPI == 'cli-server') {
4
    // To help the built-in PHP dev server, check if the request was actually for
5
    // something which should probably be served as a static file
6
    $file = __DIR__.$_SERVER['REQUEST_URI'];
7
    if (is_file($file)) {
8
        return false;
9
    }
10
}
11
12
// set timezone for timestamps etc
13
date_default_timezone_set('UTC');
14
15
require __DIR__.'/vendor/autoload.php';
16
17
// Run app
18
$app = (new Demo\App(__DIR__.'/'))->get();
19
$app->run();
0 ignored issues
show
The method run() does not seem to exist on object<Demo\App>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
20