Test::menu()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace LibreNMS\Plugins;
4
5
class Test
6
{
7
    public static function menu()
8
    {
9
        echo '<li><a href="plugin/p=Test">Test</a></li>';
10
    }
11
12
    //end menu()
13
14
    public function device_overview_container($device)
0 ignored issues
show
Unused Code introduced by
The parameter $device 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

14
    public function device_overview_container(/** @scrutinizer ignore-unused */ $device)

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...
15
    {
16
        echo '<div class="container-fluid"><div class="row"> <div class="col-md-12"> <div class="panel panel-default panel-condensed"> <div class="panel-heading"><strong>' . get_class() . ' Plugin </strong> </div>';
17
        echo '  Example plugin in "Device - Overview" tab <br>';
18
        echo '</div></div></div></div>';
19
    }
20
21
    public function port_container($device, $port)
0 ignored issues
show
Unused Code introduced by
The parameter $port 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

21
    public function port_container($device, /** @scrutinizer ignore-unused */ $port)

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

21
    public function port_container(/** @scrutinizer ignore-unused */ $device, $port)

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...
22
    {
23
        echo '<div class="container-fluid"><div class="row"> <div class="col-md-12"> <div class="panel panel-default panel-condensed"> <div class="panel-heading"><strong>' . get_class() . ' plugin in "Port" tab</strong> </div>';
24
        echo 'Example display in Port tab</br>';
25
        echo '</div></div></div></div>';
26
    }
27
}
28