| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function createNewPost() |
||
| 45 | { |
||
| 46 | //Security checks |
||
| 47 | $this->onlyAdmin(); |
||
| 48 | if (!$this->request->isPost()) { |
||
| 49 | $this->alertBox->setAlert('Only post messages allowed', 'error'); |
||
| 50 | $this->response->redirect('admin'); |
||
| 51 | } |
||
| 52 | $posts = $this->container->getRequest()->getDataFull(); |
||
| 53 | |||
| 54 | //TODO |
||
| 55 | //Slug, check if duplicate |
||
| 56 | //Tags, check if duplicate before creating new tag |
||
| 57 | //Tags, must have created the post and got the id before associating the tags |
||
| 58 | //grab author from session |
||
| 59 | |||
| 60 | echo "<pre>"; |
||
| 61 | var_dump($posts); |
||
| 62 | die(); |
||
|
1 ignored issue
–
show
|
|||
| 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.