Completed
Push — master ( 57e7bf...14d857 )
by dima
02:20
created

IndexController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 14 1
1
<?php
2
3
namespace Frameworkless\Controllers;
4
5
use Core\Modules\UserList\UserList;
6
use Symfony\Component\HttpFoundation\Response;
7
8
class IndexController extends BaseController {
9
10
11
	/**
12
	 * Return index page (/)
13
	 *
14
	 * @param array $args
15
	 * @return Response
16
	 */
17
	public function get($args) {
0 ignored issues
show
Unused Code introduced by
The parameter $args is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
		
19
		$result = \App::getModule(UserList::class,[
20
					"limit" => 2
21
				]);
22
		
23
		$result .= \App::getModule(UserList::class,[
24
					"limit" => 1
25
				]);
26
		
27
		return $this->render('pages/index.html.twig', [
28
				"content" => $result,
29
		]);
30
	}
31
32
}
33