Completed
Push — master ( f7801c...d59d58 )
by Oleg
02:19
created

webapp/index.php (1 issue)

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
// Run system and get app
4
require __DIR__ . '/../app/__autoload.php';
5
require __DIR__ . '/../app/Application.php';
6
7
/*die(
0 ignored issues
show
Unused Code Comprehensibility introduced by
60% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
8
    var_dump(
9
        exec('whoami'),
10
        get_current_user()
11
    )
12
);*/
13
14
// Get kernel
15
$app = new \App\Application('debug', false);
16
17
// Run framework
18
$response = $app->run(new \Micro\Web\Request);
19
20
// Send response
21
$response->send();
22
23
// Kill application
24
$app->terminate();
25