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

IndexController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 3
b 0
f 0
cc 1
eloc 2
nc 1
nop 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