Completed
Push — master ( ac011d...56c397 )
by Mikołaj
03:19
created

AdminController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 2
1
<?php
2
3
namespace Egzaminer\Controller;
4
5
abstract class AdminController extends AbstractController
6
{
7
    /**
8
     * Constructor.
9
     *
10
     * @param array $container
11
     */
12
    public function __construct($container)
13
    {
14
        parent::__construct($container);
15
16
        if (!$this->isLogged()) {
17
            $this->redirect('/admin/login');
18
            $this->terminate();
19
        }
20
    }
21
}
22