Passed
Push — master ( b017fa...6506ed )
by Julien
05:31 queued 23s
created

Security   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A beforeQuery() 0 2 1
1
<?php
2
3
/**
4
 * This file is part of the Zemit Framework.
5
 *
6
 * (c) Zemit Team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.txt
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zemit\Db\Events;
13
14
use Phalcon\Db\Adapter\AbstractAdapter;
15
use Phalcon\Events\EventInterface;
16
use Zemit\Di\Injectable;
17
18
/**
19
 * Database Events Security
20
 * @todo
21
 */
22
class Security extends Injectable
23
{
24 4
    public function beforeQuery(EventInterface $event, AbstractAdapter $connection)
1 ignored issue
show
Unused Code introduced by
The parameter $connection 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

24
    public function beforeQuery(EventInterface $event, /** @scrutinizer ignore-unused */ AbstractAdapter $connection)

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

24
    public function beforeQuery(/** @scrutinizer ignore-unused */ EventInterface $event, AbstractAdapter $connection)

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...
25
    {
26
//        $model = '';
27
//        $acl = $this->security->getAcl('controllers');
28
//        $event->stop();
29 4
    }
30
}
31