Total Complexity | 5 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | trait FlashTrait |
||
18 | { |
||
19 | /** |
||
20 | * @param string $message |
||
21 | * @return $this |
||
22 | */ |
||
23 | protected function success($message) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param string $message |
||
30 | * @return $this |
||
31 | */ |
||
32 | protected function info($message) |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param string $message |
||
39 | * @return $this |
||
40 | */ |
||
41 | protected function warning($message) |
||
42 | { |
||
43 | return $this->flash('warning', $message); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param string $message |
||
48 | * @return $this |
||
49 | */ |
||
50 | protected function error($message) |
||
51 | { |
||
52 | return $this->flash('error', $message); |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @param string $type |
||
57 | * @param string $message |
||
58 | * @return $this |
||
59 | */ |
||
60 | protected function flash($type, $message) |
||
64 | } |
||
65 | } |
||
66 |
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.