| Total Complexity | 9 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Test1Controller extends CoreController |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @Filter(type="before") |
||
| 16 | */ |
||
| 17 | public function before() |
||
| 18 | { |
||
| 19 | echo "b1"; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @Filter(type="after") |
||
| 24 | */ |
||
| 25 | public function after() |
||
| 26 | { |
||
| 27 | echo "a1"; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @Template("test1.tmpl") |
||
| 32 | */ |
||
| 33 | public function test1() |
||
| 34 | { |
||
| 35 | } |
||
| 36 | |||
| 37 | public function test2() |
||
| 38 | { |
||
| 39 | $this->Test1->test1(); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @Header(allowMethod="post") |
||
| 44 | */ |
||
| 45 | public function test3() |
||
| 47 | } |
||
| 48 | |||
| 49 | public function test4() |
||
| 50 | { |
||
| 51 | throw new ForbiddenAccessException("error"); |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @ExceptionHandler("WebStream\Exception\Extend\ForbiddenAccessException") |
||
| 56 | */ |
||
| 57 | public function test4Error($params) |
||
| 58 | { |
||
| 59 | var_dump($params); |
||
| 60 | } |
||
| 61 | |||
| 62 | |||
| 63 | public function test9() |
||
| 65 | |||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @CustomControllerAnnotation(type="custom") |
||
| 70 | */ |
||
| 71 | public function test10() |
||
| 73 | } |
||
| 74 | } |
||
| 75 |
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.