Passed
Push — develop ( e4768a...6d9d8a )
by Nikolay
04:23
created

ViewEventsPlugin   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 1
dl 0
loc 4
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A beforeRenderView() 0 2 1
1
<?php
2
/*
3
 * MikoPBX - free phone system for small business
4
 * Copyright (C) 2017-2023 Alexey Portnov and Nikolay Beketov
5
 *
6
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation; either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License along with this program.
17
 * If not, see <https://www.gnu.org/licenses/>.
18
 */
19
20
21
22
namespace MikoPBX\AdminCabinet\Plugins;
23
24
use Phalcon\Di\Injectable;
25
use Phalcon\Events\Event;
26
use Phalcon\Mvc\ViewInterface;
27
28
/**
29
 * SecurityPlugin
30
 *
31
 * This is the security plugin which controls that users only have access to the modules they're assigned to
32
 */
33
class ViewEventsPlugin extends Injectable
34
{
35
    public function beforeRenderView(Event $event, ViewInterface $view)
0 ignored issues
show
Unused Code introduced by
The parameter $view is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

35
    public function beforeRenderView(Event $event, /** @scrutinizer ignore-unused */ ViewInterface $view)

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

Loading history...
Unused Code introduced by
The parameter $event is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

35
    public function beforeRenderView(/** @scrutinizer ignore-unused */ Event $event, ViewInterface $view)

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

Loading history...
36
    {
37
38
    }
39
}
40