Passed
Push — master ( de3edc...ee7b73 )
by Anton
03:00
created
src/Debug/StateCollector/HttpCollector.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function populate(StateInterface $state): void
41 41
     {
42
-        if ($this->request === null) {
42
+        if ($this->request === null){
43 43
             return;
44 44
         }
45 45
 
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
 
49 49
         $state->setVariable('headers', $this->request->getHeaders());
50 50
 
51
-        if ($this->request->getQueryParams() !== []) {
51
+        if ($this->request->getQueryParams() !== []){
52 52
             $state->setVariable('query', $this->request->getQueryParams());
53 53
         }
54 54
 
55
-        if ($this->request->getParsedBody() !== null) {
55
+        if ($this->request->getParsedBody() !== null){
56 56
             $state->setVariable('data', $this->request->getParsedBody());
57 57
         }
58 58
     }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,8 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function populate(StateInterface $state): void
41 41
     {
42
-        if ($this->request === null) {
42
+        if ($this->request === null)
43
+        {
43 44
             return;
44 45
         }
45 46
 
@@ -48,11 +49,13 @@  discard block
 block discarded – undo
48 49
 
49 50
         $state->setVariable('headers', $this->request->getHeaders());
50 51
 
51
-        if ($this->request->getQueryParams() !== []) {
52
+        if ($this->request->getQueryParams() !== [])
53
+        {
52 54
             $state->setVariable('query', $this->request->getQueryParams());
53 55
         }
54 56
 
55
-        if ($this->request->getParsedBody() !== null) {
57
+        if ($this->request->getParsedBody() !== null)
58
+        {
56 59
             $state->setVariable('data', $this->request->getParsedBody());
57 60
         }
58 61
     }
Please login to merge, or discard this patch.