IndexController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 6
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 19
rs 10
c 6
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 10 1
1
<?php
2
namespace Frameworkless\Controllers;
3
4
use Core\Modules\UserList\UserList as UserListModule;
5
use Symfony\Component\HttpFoundation\Response;
6
7
class IndexController extends BaseController{
8
9
    /**
10
     * Return index page (/)
11
     *
12
     * @param array $args
0 ignored issues
show
Bug introduced by
There is no parameter named $args. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
13
     * @return Response
14
     */
15
    public function get(){
16
17
	$result = \App::getModule(UserListModule::class, [
18
		    "limit" => 50
19
	]);
20
21
	return new Response($this->render('pages/index.html.twig', [
22
		    "content" => $result,
23
	]));
24
    }
25
}
26