Passed
Push — master ( b4e066...d02e97 )
by Edson
01:27
created

test()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
include '../vendor/autoload.php';
4
5
use Router\Route;
6
7
Route::get('/', function() {
8
    echo "hello";
9
});
10
11
Route::get('/@name/@id:[0-9]{3}', function($name, $id) {
12
    echo "hello, $name ($id)!";
13
});
14