Passed
Push — main ( f74cce...006b59 )
by Pranjal
12:43
created
src/Request.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
     private function getContentValue(string $key): mixed
49 49
     {
50 50
         if ($this->getContent()) {
51
-            try{
51
+            try {
52 52
                 return \Safe\json_decode($this->getContent())->$key;
53
-            }catch(Exception $e){
53
+            } catch (Exception $e) {
54 54
                 return null;
55 55
             }
56 56
         }
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
     public function all(): array
76 76
     {
77 77
         if ($this->getContent()) {
78
-            try{
78
+            try {
79 79
                 return array_merge($this->request->all(), $this->query->all(), \Safe\json_decode($this->getContent(), true));
80
-            }catch(Exception $e){
80
+            } catch (Exception $e) {
81 81
                 return array_merge($this->request->all(), $this->query->all());
82 82
             }
83 83
         }
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
     public function has(string $key): bool
92 92
     {
93 93
         if ($this->getContent()) {
94
-            try{
94
+            try {
95 95
                 return isset(\Safe\json_decode($this->getContent())->$key) || $this->request->has($key) || $this->query->has($key);
96
-            }catch(Exception $e){
96
+            } catch (Exception $e) {
97 97
                 return $this->request->has($key) || $this->query->has($key);
98 98
             }
99 99
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         if ($this->getContent()) {
51 51
             try{
52 52
                 return \Safe\json_decode($this->getContent())->$key;
53
-            }catch(Exception $e){
53
+            } catch(Exception $e){
54 54
                 return null;
55 55
             }
56 56
         }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         if ($this->getContent()) {
78 78
             try{
79 79
                 return array_merge($this->request->all(), $this->query->all(), \Safe\json_decode($this->getContent(), true));
80
-            }catch(Exception $e){
80
+            } catch(Exception $e){
81 81
                 return array_merge($this->request->all(), $this->query->all());
82 82
             }
83 83
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         if ($this->getContent()) {
94 94
             try{
95 95
                 return isset(\Safe\json_decode($this->getContent())->$key) || $this->request->has($key) || $this->query->has($key);
96
-            }catch(Exception $e){
96
+            } catch(Exception $e){
97 97
                 return $this->request->has($key) || $this->query->has($key);
98 98
             }
99 99
         }
Please login to merge, or discard this patch.