| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function index(HTTPRequest $request) |
||
|
|
|||
| 22 | { |
||
| 23 | $ids = []; |
||
| 24 | |||
| 25 | foreach ($this->getRecords() as $comment) { |
||
| 26 | array_push($ids, $comment->ID); |
||
| 27 | $this->updateComment($comment); |
||
| 28 | } |
||
| 29 | |||
| 30 | $response = new HTTPResponse(Convert::raw2json([ |
||
| 31 | 'done' => true, |
||
| 32 | 'records' => $ids, |
||
| 33 | ])); |
||
| 34 | |||
| 35 | $response->addHeader('Content-Type', 'application/json'); |
||
| 36 | |||
| 37 | return $response; |
||
| 38 | } |
||
| 39 | |||
| 47 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.