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

N98_Magerun_Bootstrap::getLoader()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 11
rs 9.4285
cc 3
eloc 7
nc 2
nop 0
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