Completed
Push — master ( ea0efc...8ffed2 )
by Cheren
04:19
created

CoreEventHandler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A implementedEvents() 0 6 1
A onControllerSetup() 0 3 1
1
<?php
2
/**
3
 * CakeCMS Core
4
 *
5
 * This file is part of the of the simple cms based on CakePHP 3.
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @package   Core
10
 * @license   MIT
11
 * @copyright MIT License http://www.opensource.org/licenses/mit-license.php
12
 * @link      https://github.com/CakeCMS/Core".
13
 * @author    Sergey Kalistratov <[email protected]>
14
 */
15
16
namespace Core\Event;
17
18
use Cake\Event\Event;
19
use Cake\Event\EventListenerInterface;
20
21
/**
22
 * Class CoreEventHandler
23
 *
24
 * @package Core\Event
25
 */
26
class CoreEventHandler implements EventListenerInterface
27
{
28
29
    /**
30
     * Returns a list of events this object is implementing.
31
     *
32
     * @return array
33
     */
34
    public function implementedEvents()
35
    {
36
        return [
37
            'Controller.setup' => 'onControllerSetup'
38
        ];
39
    }
40
41
    /**
42
     * @param Event $event
43
     * @SuppressWarnings("unused")
44
     */
45
    public function onControllerSetup(Event $event)
0 ignored issues
show
Unused Code introduced by
The parameter $event 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...
46
    {
47
    }
48
}
49