Completed
Push — master ( ee0121...2fa707 )
by Sinnarasa
06:26
created

Namespace1Controller::index2()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 6
nc 2
nop 1
1
<?php
2
namespace JetFire\Routing\Block1;
3
4
class Namespace1Controller {
5
6
    public function index(){
7
        return ['message' => 'index'];
8
    }
9
10
    public function index2($id){
11
        if($id == 2){
12
            header('Location: http://localhost/JetFire/Routing/block/search1-1-tse');
13
            return true;
14
        }else {
15
            return 'Index-' . $id;
16
        }
17
    }
18
19
}