Completed
Push — master ( 3a251c...418eb4 )
by Johannes Skov
02:51
created

index.php ➔ run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 9.4285
1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 22 and the first side effect is on line 14.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
/**
3
 * VisualPHPUnit
4
 *
5
 * VisualPHPUnit is a visual front-end for PHPUnit.
6
 *
7
 * PHP Version 5.3<
8
 *
9
 * @author Johannes Skov Frandsen <[email protected]>
10
 * @copyright 2011-2015 VisualPHPUnit
11
 * @license http://opensource.org/licenses/BSD-3-Clause The BSD License
12
 * @link https://github.com/VisualPHPUnit/VisualPHPUnit VisualPHPUnit
13
 */
14
require __DIR__ . '/../vendor/autoload.php';
15
use Visualphpunit\Api\Application\Vpu;
16
17
/**
18
 * Prevent app to be added to the $GLOBALS
19
 *
20
 * @return void
21
 */
22
function run()
23
{
24
    $app = new Vpu();
25
    $app->run();
26
}
27
28
run();
29
30