Passed
Pull Request — master (#6)
by
unknown
02:24
created
src/Doctrine/Rest/Action/RelatedItemAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Doctrine/Rest/Action/RelatedCollectionAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.