Completed
Push — master ( 0c8d1b...0c71fb )
by Tom
06:41 queued 02:14
created

N98_Magerun_Bootstrap   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 25
rs 10
1
<?php
2
3
if (!class_exists('N98\MagerunBootstrap')) {
4
    require_once __DIR__ . '/N98/MagerunBootstrap.php';
5
}
6
7
try {
8
    return N98\MagerunBootstrap::createApplication();
9
} catch (Exception $e) {
10
    printf("%s: %s\n", get_class($e), $e->getMessage());
11
    if (array_intersect(array('-vvv', '-vv', '-v', '--verbose'), $argv)) {
12
        printf("%s\n", $e->getTraceAsString());
13
    }
14
    exit(1);
15
}
16