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

Namespace1Controller::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
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
}