Passed
Branch 2.0.0 (c5bb78)
by Chubarov
09:06
created
src/Handlers/JsonHandler.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function checkIntegrity($response)
49 49
     {
50
-       return isset( json_decode($response)->{$this->jsonPrefix} );
50
+        return isset( json_decode($response)->{$this->jsonPrefix} );
51 51
     }
52 52
 
53 53
     /**
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
             {
89 89
                 $result[$key] = $this->objectToArray($value);
90 90
             } else{
91
-               if (gettype($value) != 'object')
92
-               {
93
-                   $result[$key] = $value;
94
-               } else{
95
-                   $result[$key] = get_object_vars($value);
96
-               }
91
+                if (gettype($value) != 'object')
92
+                {
93
+                    $result[$key] = $value;
94
+                } else{
95
+                    $result[$key] = get_object_vars($value);
96
+                }
97 97
 
98 98
             }
99 99
         }
Please login to merge, or discard this patch.
src/KernelBpm.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
     ];
30 30
 
31 31
     protected $handlers = [
32
-      'xml'  => XmlHandler::class,
33
-      'json' => JsonHandler::class,
32
+        'xml'  => XmlHandler::class,
33
+        'json' => JsonHandler::class,
34 34
     ];
35 35
 
36 36
     protected $collection;
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
     public function action($action, callable $callback)
148 148
     {
149 149
 
150
-         extract($this->splitAction($action));
150
+            extract($this->splitAction($action));
151 151
 
152
-         $action  = $this->setAction($action);
153
-         $this->setHandler($handler);
152
+            $action  = $this->setAction($action);
153
+            $this->setHandler($handler);
154 154
 
155 155
         $action->injectionKernel($this);
156 156
         call_user_func($callback, $action);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         try {
181 181
             Assertion::regex($collection, '/[A-z]+Collection$/');
182 182
         } catch(AssertionFailedException $e) {
183
-           throw new \Exception("Expected word 'Collection' in parameter method setCollection received : " .  $e->getValue());
183
+            throw new \Exception("Expected word 'Collection' in parameter method setCollection received : " .  $e->getValue());
184 184
         }
185 185
 
186 186
         return $this->collection = $collection;
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     }
125 125
 
126 126
     /**
127
-     * @return Handler
127
+     * @return \Illuminate\Container\Container
128 128
      */
129 129
     public function getHandler()
130 130
     {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     /**
135 135
      * Set the response handler
136 136
      * @param string $typeHandler default xml
137
-     * @return Action
137
+     * @return \Illuminate\Container\Container
138 138
      */
139 139
     public function setHandler($typeHandler = 'xml')
140 140
     {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     }
153 153
 
154 154
     /**
155
-     * @param $typeAction string
155
+     * @param string $typeAction string
156 156
      * @return Action
157 157
      */
158 158
     public function setAction($typeAction)
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     /**
199 199
      * Set collection for correct query
200 200
      * @param string $collection
201
-     * @return mixed
201
+     * @return string
202 202
      * @throws \Exception
203 203
      */
204 204
     public function setCollection($collection)
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         return app()->make(ClientInterface::class);
229 229
     }
230 230
     /**
231
-     * @param $action
231
+     * @param string $action
232 232
      * @return array
233 233
      */
234 234
     private function splitAction($action)
Please login to merge, or discard this patch.
src/ServiceProviders/ActionsServiceProviders.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
     public function register()
15 15
     {
16
-       app()->bind(Read::class,   Read::class);
17
-       app()->bind(Create::class, Create::class);
18
-       app()->bind(Update::class, Update::class);
19
-       app()->bind(Delete::class, Delete::class);
16
+        app()->bind(Read::class,   Read::class);
17
+        app()->bind(Create::class, Create::class);
18
+        app()->bind(Update::class, Update::class);
19
+        app()->bind(Delete::class, Delete::class);
20 20
     }
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
src/Handlers/XmlHandler.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
-     * @param $response
105
+     * @param \SimpleXMLElement $response
106 106
      * @return bool
107 107
      */
108 108
     public function checkIntegrity($response)
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     }
184 184
     /**
185 185
      *  Get one Element
186
-     * @return mixed
186
+     * @return XmlHandler
187 187
      */
188 188
     private function arrayOne()
189 189
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
      */
128 128
     public function toArray()
129 129
     {
130
-       return  $this->xmlToArrayRecursive($this->validText);
130
+        return  $this->xmlToArrayRecursive($this->validText);
131 131
     }
132 132
 
133 133
     /**
Please login to merge, or discard this patch.
src/Assistants/ConstructorUrl.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     /**
14 14
      * Concatenation Url In Curl
15
-     * @param $newParameters string
15
+     * @param string $newParameters string
16 16
      * @return $this
17 17
      */
18 18
     protected function concatenationUrlCurl($newParameters)
Please login to merge, or discard this patch.
src/Actions/Delete.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-     * @return \agoalofalife\bpm\Contracts\Handler
46
+     * @return \Illuminate\Container\Container
47 47
      */
48 48
     public function processData()
49 49
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
 
70 70
         $response =  $this->kernel->getCurl()->request($this->HTTP_TYPE, $urlHome . $url,
71
-                     $this->headers()->getCookie()->httpErrorsFalse()->get()
71
+                        $this->headers()->getCookie()->httpErrorsFalse()->get()
72 72
         );
73 73
 
74 74
         $body = $response->getBody();
Please login to merge, or discard this patch.
src/Actions/Read.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     }
50 50
 
51 51
     /**
52
-     * @return array url -> string , http_type -> string
52
+     * @return \Illuminate\Container\Container url -> string , http_type -> string
53 53
      */
54 54
     public function processData()
55 55
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             }
102 102
             $ParameterQuery.=  " ".$param;
103 103
         }
104
-         $this->concatenationUrlCurl($ParameterQuery);
104
+            $this->concatenationUrlCurl($ParameterQuery);
105 105
 
106 106
         return $this;
107 107
     }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         $urlHome      = config($this->kernel->getPrefixConfig() . '.UrlHome');
148 148
 
149 149
         $response     = $this->kernel->getCurl()->request($this->HTTP_TYPE, $urlHome . $url,
150
-                         $this->debug()->headers()->getCookie()->httpErrorsFalse()->get()
150
+                            $this->debug()->headers()->getCookie()->httpErrorsFalse()->get()
151 151
         );
152 152
         $body         = $response->getBody();
153 153
 
Please login to merge, or discard this patch.
src/Actions/Update.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-     * @return \agoalofalife\bpm\Contracts\Handler
61
+     * @return \Illuminate\Container\Container
62 62
      */
63 63
     public function processData()
64 64
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         $urlHome    = config($this->kernel->getPrefixConfig() . '.UrlHome');
85 85
 
86 86
         $response   =  $this->kernel->getCurl()->request($this->HTTP_TYPE, $urlHome . $url,
87
-                       $this->headers()->getCookie()->body()->httpErrorsFalse()->get()
87
+                        $this->headers()->getCookie()->body()->httpErrorsFalse()->get()
88 88
         );
89 89
         $body       = $response->getBody();
90 90
 
Please login to merge, or discard this patch.
src/Actions/Create.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
         $this->headers()->getCookie()->body()->httpErrorsFalse()->get();
62 62
         $response   =  $this->kernel->getCurl()->request($this->HTTP_TYPE, $urlHome . $url,
63
-                       $this->headers()->getCookie()->body()->httpErrorsFalse()->get()
63
+                        $this->headers()->getCookie()->body()->httpErrorsFalse()->get()
64 64
         );
65 65
         $body       = $response->getBody();
66 66
         $this->kernel->getHandler()->parse($body->getContents());
Please login to merge, or discard this patch.