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