Passed
Push — main ( cf1b5a...097c10 )
by Marc
03:29
created

admin_route()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 5
rs 10
1
<?php
2
echo __FILE__;
3
4
function admin_route(string $uri, string $method = HTTP_GET): ?\stdClass {
0 ignored issues
show
Unused Code introduced by
The parameter $uri 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

4
function admin_route(/** @scrutinizer ignore-unused */ string $uri, string $method = HTTP_GET): ?\stdClass {

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

4
function admin_route(string $uri, /** @scrutinizer ignore-unused */ string $method = HTTP_GET): ?\stdClass {

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...
5
    $content = new stdClass();
6
    $content->template = '';
7
8
    return $content;
9
}
10