| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function html(Request $request, Response $response, Admin $app, EntityInterface $entity) |
||
|
|
|||
| 13 | { |
||
| 14 | $id = $request->getAttribute('id'); |
||
| 15 | |||
| 16 | $form = static::createForm($entity, $app, $id); |
||
| 17 | $form['data']->val($entity->read($id)); |
||
| 18 | |||
| 19 | //Render template |
||
| 20 | return $app['templates']->render('pages/read', [ |
||
| 21 | 'entity' => $entity, |
||
| 22 | 'form' => $form, |
||
| 23 | 'id' => $id, |
||
| 24 | ]); |
||
| 25 | } |
||
| 26 | } |
||
| 27 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.