Total Complexity | 12 |
Total Lines | 89 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class Test1Controller extends CoreController |
||
15 | { |
||
16 | /** |
||
17 | * @Filter(type="before") |
||
18 | */ |
||
19 | public function before() |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @Filter(type="after") |
||
26 | */ |
||
27 | public function after() |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @Template("test1.tmpl") |
||
34 | */ |
||
35 | public function test1() |
||
36 | { |
||
37 | $this->Test1->test1(); |
||
38 | } |
||
39 | |||
40 | public function test2() |
||
41 | { |
||
42 | $this->Test1->test2(); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @Header(allowMethod="post") |
||
47 | */ |
||
48 | public function test3() |
||
50 | } |
||
51 | |||
52 | public function test4() |
||
53 | { |
||
54 | throw new ForbiddenAccessException("error"); |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @ExceptionHandler("WebStream\Exception\Extend\ForbiddenAccessException") |
||
59 | */ |
||
60 | public function test4Error($params) |
||
61 | { |
||
62 | echo $params['method']; |
||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @Alias(name="test5") |
||
67 | */ |
||
68 | public function test5Alias() |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * @Validate(key="test", rule="required", method="get") |
||
75 | */ |
||
76 | public function test6() |
||
77 | { |
||
78 | echo "t6"; |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * @Validate(key="test", rule="length[3]") |
||
83 | */ |
||
84 | public function test7() |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * @Validate(key="test", rule="regexp[/\d+/]") |
||
91 | */ |
||
92 | public function test8() |
||
93 | { |
||
94 | echo "t8"; |
||
95 | } |
||
96 | |||
97 | /** |
||
98 | * @CustomControllerAnnotation(name="t10") |
||
99 | */ |
||
100 | public function test10() |
||
103 | } |
||
104 | } |
||
105 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.