@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function handle($request) |
| 29 | 29 | { |
| 30 | 30 | $entity = $this->repository()->findByIdentifier($request); |
| 31 | - $method = 'get' . ucfirst($this->relatedKey); |
|
| 31 | + $method = 'get'.ucfirst($this->relatedKey); |
|
| 32 | 32 | $relatedEntity = $entity->{$method}(); |
| 33 | 33 | |
| 34 | 34 | $this->authorize($request, $relatedEntity); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | $entity = $this->repository()->findByIdentifier($request); |
| 48 | 48 | $qb = $this->relatedRepository()->sourceQueryBuilder(); |
| 49 | - $qb->andWhere($this->relatedRepository()->alias() . '.' . $this->relatedKey . ' = ' . ((int)$request->getId())); |
|
| 49 | + $qb->andWhere($this->relatedRepository()->alias().'.'.$this->relatedKey.' = '.((int) $request->getId())); |
|
| 50 | 50 | $this->applyPagination($request, $qb); |
| 51 | 51 | $this->applyFilter($request, $qb); |
| 52 | 52 | |