Passed
Push — master ( 620416...a29fb4 )
by Rougin
02:02
created

TestController::greet()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace App\Example;
4
5
use App\Facades\View;
6
7
/**
8
 * Test Controller
9
 *
10
 * @package App
11
 * @author  Rougin Royce Gutib <[email protected]>
12
 */
13
class TestController
14
{
15
    /**
16
     * Greets you with a "lorem ipsum" text.
17
     *
18
     * @return string
19
     */
20 3
    public function greet()
21
    {
22 3
        return View::render('fixture.test');
0 ignored issues
show
Bug Best Practice introduced by
The method App\Facades\View::render() is not static, but was called statically. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

22
        return View::/** @scrutinizer ignore-call */ render('fixture.test');
Loading history...
23
    }
24
}
25