| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function show($entityId, $contentId) |
||
| 11 | { |
||
| 12 | $entity = Entity::query()->findOrFail($entityId); |
||
| 13 | |||
| 14 | ContentRepository::setTable($entity->table_name); |
||
| 15 | $content = ContentRepository::findOrFail($contentId); |
||
| 16 | |||
| 17 | return view( |
||
| 18 | 'front.content.show', |
||
| 19 | array_merge(['content' => $content, 'entityId' => $entityId], ContentRepository::adjacent($contentId)) |
||
| 20 | ); |
||
| 23 |