Passed
Push — master ( a14023...ec1592 )
by Ferry
05:48
created

Hooks::hookRowIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Crocodicstudio\Crudbooster\CBCoreModule;
4
5
trait Hooks
6
{
7
    public function hookBeforeDelete($idsArray)
0 ignored issues
show
Unused Code introduced by
The parameter $idsArray 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

7
    public function hookBeforeDelete(/** @scrutinizer ignore-unused */ $idsArray)

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...
8
    {
9
        
10
    }
11
12
    public function hookAfterDelete($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id 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

12
    public function hookAfterDelete(/** @scrutinizer ignore-unused */ $id)

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...
13
    {
14
        
15
    }
16
17
    public function hookBeforeEdit(&$arr, $id)
0 ignored issues
show
Unused Code introduced by
The parameter $arr 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

17
    public function hookBeforeEdit(/** @scrutinizer ignore-unused */ &$arr, $id)

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

17
    public function hookBeforeEdit(&$arr, /** @scrutinizer ignore-unused */ $id)

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...
18
    {
19
        
20
    }
21
22
    public function hookAfterEdit($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id 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

22
    public function hookAfterEdit(/** @scrutinizer ignore-unused */ $id)

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...
23
    {
24
        
25
    }
26
27
    public function hookAfterAdd($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id 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

27
    public function hookAfterAdd(/** @scrutinizer ignore-unused */ $id)

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...
28
    {
29
        
30
    }
31
32
    public function hookBeforeAdd(&$arr)
0 ignored issues
show
Unused Code introduced by
The parameter $arr 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

32
    public function hookBeforeAdd(/** @scrutinizer ignore-unused */ &$arr)

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...
33
    {
34
        
35
    }
36
37
    public function hookQueryIndex(&$query)
0 ignored issues
show
Unused Code introduced by
The parameter $query 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

37
    public function hookQueryIndex(/** @scrutinizer ignore-unused */ &$query)

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...
38
    {
39
        
40
    }
41
}