Test Failed
Push — master ( 4abc3b...a9eb80 )
by Julien
04:29
created

beforeSoftDeleteCondition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * This file is part of the Zemit Framework.
4
 *
5
 * (c) Zemit Team <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE.txt
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Zemit\Mvc\Controller\Behavior\Skip;
12
13
use Phalcon\Events\Event;
14
use Zemit\Di\Injectable;
15
use Zemit\Mvc\Controller\Rest;
16
17
/**
18
 * Class SkipSoftDeleteCondition
19
 *
20
 * @author Julien Turbide <[email protected]>
21
 * @copyright Zemit Team <[email protected]>
22
 *
23
 * @since 1.0
24
 * @version 1.0
25
 *
26
 * @package Zemit\Mvc\Controller\Behavior\Skip
27
 */
28
class SkipSoftDeleteCondition extends Injectable
29
{
30
    /**
31
     * Stop operation
32
     * @return false
33
     */
34
    public function getSoftDeleteCondition(Event $event, Rest $controller, $softDeleteCondition) {
1 ignored issue
show
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

34
    public function getSoftDeleteCondition(/** @scrutinizer ignore-unused */ Event $event, Rest $controller, $softDeleteCondition) {

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 $controller 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

34
    public function getSoftDeleteCondition(Event $event, /** @scrutinizer ignore-unused */ Rest $controller, $softDeleteCondition) {

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 $softDeleteCondition 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

34
    public function getSoftDeleteCondition(Event $event, Rest $controller, /** @scrutinizer ignore-unused */ $softDeleteCondition) {

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...
35
        return false;
36
    }
37
}
38