Passed
Pull Request — master (#9)
by Iakov
03:13
created
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/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.
RequestProcessor/ProcessorResponse.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
49 49
      */
50 50
     public function getData()
51 51
     {
52
-       return $this->data;
52
+        return $this->data;
53 53
     }
54 54
 
55 55
     /**
Please login to merge, or discard this patch.
RequestProcessor/Step/Common/ValidateResourceAccessStep.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
RequestProcessor/Step/Common/PaginateStep.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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' => [
Please login to merge, or discard this patch.
RequestProcessor/Step/Update/BuildUpdateFormStep.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/DefaultRequestProcessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.