Completed
Push — master ( 93636f...f5108b )
by Iman
17s
created

GetCurrentX::getCurrentId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace crocodicstudio\crudbooster\Modules\PrivilegeModule;
4
5
trait GetCurrentX
6
{
7
    public static function getCurrentModule()
8
    {
9
        return GetCurrentX::getCurrentModule();
0 ignored issues
show
Bug introduced by
Are you sure the usage of crocodicstudio\crudboost...ntX::getCurrentModule() targeting crocodicstudio\crudboost...ntX::getCurrentModule() seems to always return null.

This check looks for function or method calls that always return null and whose return value is used.

class A
{
    function getObject()
    {
        return null;
    }

}

$a = new A();
if ($a->getObject()) {

The method getObject() can return nothing but null, so it makes no sense to use the return value.

The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.

Loading history...
10
    }
11
12
    public static function getCurrentMenuId()
13
    {
14
        return GetCurrentX::getCurrentMenuId();
0 ignored issues
show
Bug introduced by
Are you sure the usage of crocodicstudio\crudboost...ntX::getCurrentMenuId() targeting crocodicstudio\crudboost...ntX::getCurrentMenuId() seems to always return null.

This check looks for function or method calls that always return null and whose return value is used.

class A
{
    function getObject()
    {
        return null;
    }

}

$a = new A();
if ($a->getObject()) {

The method getObject() can return nothing but null, so it makes no sense to use the return value.

The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.

Loading history...
15
    }
16
17
    public static function getCurrentId()
18
    {
19
        return GetCurrentX::getCurrentId();
0 ignored issues
show
Bug introduced by
Are you sure the usage of crocodicstudio\crudboost...urrentX::getCurrentId() targeting crocodicstudio\crudboost...urrentX::getCurrentId() seems to always return null.

This check looks for function or method calls that always return null and whose return value is used.

class A
{
    function getObject()
    {
        return null;
    }

}

$a = new A();
if ($a->getObject()) {

The method getObject() can return nothing but null, so it makes no sense to use the return value.

The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.

Loading history...
20
    }
21
22
    public static function getCurrentMethod()
23
    {
24
        return GetCurrentX::getCurrentMethod();
0 ignored issues
show
Bug introduced by
Are you sure the usage of crocodicstudio\crudboost...ntX::getCurrentMethod() targeting crocodicstudio\crudboost...ntX::getCurrentMethod() seems to always return null.

This check looks for function or method calls that always return null and whose return value is used.

class A
{
    function getObject()
    {
        return null;
    }

}

$a = new A();
if ($a->getObject()) {

The method getObject() can return nothing but null, so it makes no sense to use the return value.

The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.

Loading history...
25
    }
26
27
}