| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 18 | 
| Code Lines | 10 | 
| Lines | 18 | 
| Ratio | 100 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 31 | View Code Duplication | public function spam(HTTPRequest $request) | |
| 32 |     { | ||
| 33 | $ids = array(); | ||
| 34 | |||
| 35 |         foreach ($this->getRecords() as $record) { | ||
| 36 | array_push($ids, $record->ID); | ||
| 37 | $record->markSpam(); | ||
| 38 | } | ||
| 39 | |||
| 40 | $response = new HTTPResponse(Convert::raw2json(array( | ||
| 41 | 'done' => true, | ||
| 42 | 'records' => $ids | ||
| 43 | ))); | ||
| 44 | |||
| 45 |         $response->addHeader('Content-Type', 'text/json'); | ||
| 46 | |||
| 47 | return $response; | ||
| 48 | } | ||
| 49 | |||
| 73 | 
This check marks private properties in classes that are never used. Those properties can be removed.