Completed
Push — master ( e28719...2f5354 )
by Tim
02:17
created

BackendController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A listAction() 0 10 1
1
<?php
2
/**
3
 * BackendController
4
 */
5
6
namespace HDNET\Calendarize\Controller;
7
8
/**
9
 * BackendController
10
 */
11
class BackendController extends AbstractController
12
{
13
14
    protected $indexRepository;
15
16
    /**
17
     *
18
     */
19
    public function listAction()
20
    {
21
        $this->settings['timeFormat'] = 'H:i';
22
        $this->settings['dateFormat'] = 'd.m.Y';
23
24
        $this->view->assignMultiple([
25
            'indices' => $this->indexRepository->findAll(),
26
            'settings' => $this->settings,
27
        ]);
28
    }
29
30
}
31