@@ -24,7 +24,7 @@ |
||
24 | 24 | $queryBuilder->from($reflection->getName(), 'e'); |
25 | 25 | |
26 | 26 | foreach ($reflection->getProperties() as $property) { |
27 | - if($this->accessManager->canAccessProperty($property)) { |
|
27 | + if ($this->accessManager->canAccessProperty($property)) { |
|
28 | 28 | $queryBuilder |
29 | 29 | ->addSelect('e.'.$property->getName()); |
30 | 30 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | foreach ($reflection->getProperties() as $property) { |
39 | 39 | if ($this->accessManager->canCreateProperty($property)) { |
40 | - if($annotation = $this->reader->getPropertyAnnotation($property, Form::class)) { |
|
40 | + if ($annotation = $this->reader->getPropertyAnnotation($property, Form::class)) { |
|
41 | 41 | $builder->add($property->getName(), $annotation->type, $annotation->options); |
42 | 42 | } |
43 | 43 | $builder->add($property->getName()); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | if ($annotation = $this->reader->getPropertyAnnotation($property, Access::class)) { |
56 | - return $this->hasRoleWithAccess($annotation); |
|
56 | + return $this->hasRoleWithAccess($annotation); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | return false; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public function toHttpResponse() |
40 | 40 | { |
41 | 41 | if (!$this->isHttpReady) { |
42 | - throw new ProcessingException('Response is not ready yet to be set as http'); |
|
42 | + throw new ProcessingException('Response is not ready yet to be set as http'); |
|
43 | 43 | } |
44 | 44 | return $this->createResponse($this->request); |
45 | 45 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function getData() |
51 | 51 | { |
52 | - return $this->data; |
|
52 | + return $this->data; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $reflection = $this->getFromResponse('reflection'); |
46 | 46 | $method = $this->validatorMap[$this->request->getMethod()]; |
47 | 47 | if (!call_user_func([$this->accessManager, $method], $reflection)) { |
48 | - throw new AccessDeniedHttpException(); |
|
48 | + throw new AccessDeniedHttpException(); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | return new ProcessorResponse($this->request, $this->response->getData()); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | throw new NotFoundHttpException(); |
49 | 49 | } |
50 | 50 | |
51 | - $queryBuilder->setFirstResult($this->maxPerPage * ($currentPage - 1)); |
|
51 | + $queryBuilder->setFirstResult($this->maxPerPage*($currentPage - 1)); |
|
52 | 52 | $queryBuilder->setMaxResults($this->maxPerPage); |
53 | 53 | |
54 | 54 | return $this->createResponse(['response_data' => [ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | foreach ($reflection->getProperties() as $property) { |
21 | 21 | if ($this->accessManager->canUpdateProperty($property)) { |
22 | - if($annotation = $this->reader->getPropertyAnnotation($property, Form::class)) { |
|
22 | + if ($annotation = $this->reader->getPropertyAnnotation($property, Form::class)) { |
|
23 | 23 | $builder->add($property->getName(), $annotation->type, $annotation->options); |
24 | 24 | } |
25 | 25 | $builder->add($property->getName()); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $step->setPreviousResponse($response); |
42 | 42 | $response = $step->execute(); |
43 | 43 | |
44 | - if(!$response) { |
|
44 | + if (!$response) { |
|
45 | 45 | throw new ProcessingException( |
46 | 46 | sprintf('RequestProcessor didn\'t receive any response from %s', get_class($step))); |
47 | 47 | } |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | foreach ($step->requiresBefore() as $requiredStep) { |
60 | 60 | if (!in_array($requiredStep, $this->executedSteps)) { |
61 | 61 | throw new ProcessingException( |
62 | - "Request didn't pass required steps yet. Try to adjust your processing strategy\n" . |
|
63 | - "Required steps are: " . implode(',', $step->requiresBefore()) |
|
62 | + "Request didn't pass required steps yet. Try to adjust your processing strategy\n". |
|
63 | + "Required steps are: ".implode(',', $step->requiresBefore()) |
|
64 | 64 | ); |
65 | 65 | } |
66 | 66 | } |