Passed
Branch request-processor (31ada2)
by Iakov
02:59
created
RequestProcessor/ProcessorResponse.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
48 48
      */
49 49
     public function getData()
50 50
     {
51
-       return $this->data;
51
+        return $this->data;
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
RequestProcessor/DefaultRequestProcessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,15 +91,15 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
RequestProcessor/Step/Common/BuildSelectQueryStep.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
RequestProcessor/Step/Update/BuildUpdateForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
RequestProcessor/Step/Create/BuildCreateFormStep.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
Security/AccessManager.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.