This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | class TestClass |
||
4 | { |
||
5 | public $pub; |
||
6 | protected $pro; |
||
7 | private $pri; |
||
8 | |||
9 | public static $pubstat; |
||
10 | protected static $prostat; |
||
11 | private static $pristat; |
||
0 ignored issues
–
show
|
|||
12 | |||
13 | /** |
||
14 | * This is a constructor for a TestClass with the first |
||
15 | * line of the docstring split into two different lines. |
||
16 | * |
||
17 | * And here's some more information about it |
||
18 | */ |
||
19 | public function __construct() |
||
20 | { |
||
21 | $this->pub = array('pub'); |
||
22 | $this->pro = array('pro'); |
||
23 | $this->pri = array('pri'); |
||
24 | } |
||
25 | |||
26 | private static function static_method() |
||
0 ignored issues
–
show
function static_method() does not seem to conform to the naming convention (^(?:[a-z]|__)[a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
27 | { |
||
28 | } |
||
29 | |||
30 | final public function final_method() |
||
0 ignored issues
–
show
function final_method() does not seem to conform to the naming convention (^(?:[a-z]|__)[a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
31 | { |
||
32 | } |
||
33 | |||
34 | private function array_hint(array $x) |
||
0 ignored issues
–
show
function array_hint() does not seem to conform to the naming convention (^(?:[a-z]|__)[a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
35 | { |
||
36 | } |
||
37 | |||
38 | private function class_hint(TestClass $x) |
||
0 ignored issues
–
show
function class_hint() does not seem to conform to the naming convention (^(?:[a-z]|__)[a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
39 | { |
||
40 | } |
||
41 | |||
42 | private function ref(&$x) |
||
0 ignored issues
–
show
|
|||
43 | { |
||
44 | } |
||
45 | |||
46 | private function default_method($x = 1234) |
||
0 ignored issues
–
show
function default_method() does not seem to conform to the naming convention (^(?:[a-z]|__)[a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() |
|||
47 | { |
||
48 | } |
||
49 | |||
50 | final protected static function mix(array &$x, TestClass $y = null, $z = array(1, 2, 3), $_ = 'string') |
||
0 ignored issues
–
show
$_ does not seem to conform to the naming convention (^[a-z][a-zA-Z0-9]*$ ).
This check examines a number of code elements and verifies that they conform to the given naming conventions. You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods. ![]() The parameter $_ is not named in camelCase.
This check marks parameter names that have not been written in camelCase. In camelCase names are written without any punctuation, the start of each new word being marked
by a capital letter. Thus the name database connection string becomes ![]() |
|||
51 | { |
||
52 | } |
||
53 | |||
54 | public function __clone() |
||
55 | { |
||
56 | return new self(); |
||
57 | } |
||
58 | |||
59 | public function __invoke($x) |
||
0 ignored issues
–
show
|
|||
60 | { |
||
61 | return 'woot'; |
||
62 | } |
||
63 | |||
64 | public function __ToStRiNg() |
||
65 | { |
||
66 | return 'I am totally a string'; |
||
67 | } |
||
68 | |||
69 | public function __get($param) |
||
70 | { |
||
71 | return 'Ouch!'; |
||
72 | } |
||
73 | } |
||
74 |
This check marks private properties in classes that are never used. Those properties can be removed.