@@ -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; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
116 | - * @param $key |
|
116 | + * @param string $key |
|
117 | 117 | * @param array $array |
118 | 118 | * @return void |
119 | 119 | */ |
@@ -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 |
@@ -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(); |
@@ -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()); |
@@ -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 |
@@ -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 | { |
@@ -66,8 +66,8 @@ |
||
66 | 66 | $body = [ |
67 | 67 | 'body' => $this->kernel->getHandler()->create($this->data) |
68 | 68 | ]; |
69 | - $this->merge($body); |
|
70 | - return $this; |
|
69 | + $this->merge($body); |
|
70 | + return $this; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | private function merge(array $newParameters) |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | app()->bind(Logger::class, function(){ |
16 | 16 | $log = new Logger(KernelBpm::class); |
17 | - return $log->pushHandler(new StreamHandler(KernelBpm::PATH_LOG . date('Y-m-d'). '.txt', Logger::DEBUG)); |
|
17 | + return $log->pushHandler(new StreamHandler(KernelBpm::PATH_LOG . date('Y-m-d'). '.txt', Logger::DEBUG)); |
|
18 | 18 | }); |
19 | 19 | } |
20 | 20 | } |
21 | 21 | \ No newline at end of file |