andela-araimi /
Emoji-REST-API
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
|
|||
| 20 |
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.