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

MainController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 4 1
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