@@ -47,7 +47,7 @@ discard block |
||
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 |
||
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 | } |
@@ -29,8 +29,8 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -124,7 +124,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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) |
@@ -13,9 +13,9 @@ |
||
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 |
@@ -102,7 +102,7 @@ discard block |
||
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 |
||
183 | 183 | } |
184 | 184 | /** |
185 | 185 | * Get one Element |
186 | - * @return mixed |
|
186 | + * @return XmlHandler |
|
187 | 187 | */ |
188 | 188 | private function arrayOne() |
189 | 189 | { |
@@ -127,7 +127,7 @@ |
||
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 | /** |
@@ -12,7 +12,7 @@ |
||
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) |
@@ -43,7 +43,7 @@ |
||
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 | { |
@@ -68,7 +68,7 @@ |
||
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(); |
@@ -49,7 +49,7 @@ |
||
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 | { |
@@ -101,7 +101,7 @@ discard block |
||
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 |
||
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 |
@@ -58,7 +58,7 @@ |
||
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 | { |
@@ -84,7 +84,7 @@ |
||
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 |
@@ -60,7 +60,7 @@ |
||
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()); |