@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function toHttpResponse() |
39 | 39 | { |
40 | 40 | if (!$this->isHttpReady) { |
41 | - throw new ProcessingException('Response is not ready yet to be set as http'); |
|
41 | + throw new ProcessingException('Response is not ready yet to be set as http'); |
|
42 | 42 | } |
43 | 43 | $this->createResponse($this->request); |
44 | 44 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function getData() |
50 | 50 | { |
51 | - return $this->data; |
|
51 | + return $this->data; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -91,15 +91,15 @@ |
||
91 | 91 | foreach ($strategy as $step) { /** @var StepInterface $step */ |
92 | 92 | if (!in_array($step->requiresBefore(), $executedSteps)) { |
93 | 93 | throw new ProcessingException( |
94 | - "Request didn't pass required steps yet. Try to adjust your processing strategy\n" . |
|
95 | - "Required steps are: " . implode(',', $step->requiresBefore()) |
|
94 | + "Request didn't pass required steps yet. Try to adjust your processing strategy\n". |
|
95 | + "Required steps are: ".implode(',', $step->requiresBefore()) |
|
96 | 96 | ); |
97 | 97 | |
98 | 98 | } |
99 | 99 | |
100 | 100 | $response = $step->execute(); |
101 | 101 | |
102 | - if(!$response) { |
|
102 | + if (!$response) { |
|
103 | 103 | throw new ProcessingException( |
104 | 104 | sprintf('RequestProcessor didn\'t receive any response from %s'), get_class($step)); |
105 | 105 | } |
@@ -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 | } |
@@ -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()); |
@@ -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; |