Completed
Push — master ( 3bb683...8cf661 )
by Korotkov
01:35
created

MainController::actionIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Web\Controllers;
4
5
use App\Web\WebController;
6
7
class MainController extends WebController
8
{
9
10
    /**
11
     * @Routing(url = '')
12
     */
13
    public function actionIndex()
14
    {
15
        return $this->twig('index.html.twig', $this->data());
0 ignored issues
show
Bug introduced by
It seems like $this->data() targeting Rudra\ControllerTrait::data() can also be of type string; however, App\Web\WebController::twig() does only seem to accept array, maybe add an additional type check?

This check looks at variables that are passed out again to other methods.

If the outgoing method call has stricter type requirements than the method itself, an issue is raised.

An additional type check may prevent trouble.

Loading history...
16
    }
17
}
18