Total Complexity | 5 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class Post extends AdminController |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * page for new post |
||
14 | */ |
||
15 | public function new() |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Lists all the posts |
||
27 | */ |
||
28 | public function list() |
||
29 | { |
||
30 | $this->onlyAdmin(); |
||
31 | |||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Shows the post to modify and update |
||
36 | * @param $idPost |
||
37 | */ |
||
38 | public function modify($idPost) |
||
|
|||
39 | { |
||
40 | $this->onlyAdmin(); |
||
41 | |||
42 | } |
||
43 | |||
44 | public function createNewPost() |
||
63 | } |
||
64 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.