@@ -4,5 +4,5 @@ |
||
| 4 | 4 | interface EnumOutputMode |
| 5 | 5 | { |
| 6 | 6 | const MODE_ENTITY = 0; |
| 7 | - const MODE_JSON = 1; |
|
| 7 | + const MODE_JSON = 1; |
|
| 8 | 8 | } |
| 9 | 9 | \ No newline at end of file |
@@ -56,6 +56,6 @@ |
||
| 56 | 56 | $apiData = $curl->exec($this->getEndpointUrl(), $this->parameters->array()); |
| 57 | 57 | |
| 58 | 58 | |
| 59 | - return (new CurlResponseHandler())->handle($apiData, $this->getResponseClassnameByCondition($apiData)); |
|
| 59 | + return (new CurlResponseHandler())->handle($apiData, $this->getResponseClassnameByCondition($apiData)); |
|
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | \ No newline at end of file |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | protected function draw(array $result, string $responseClassName): AbstractResponse |
| 48 | 48 | { |
| 49 | 49 | $collection = new EntityCollection(); |
| 50 | - array_walk($result, function ($item) use ($collection, $responseClassName) { |
|
| 50 | + array_walk($result, function($item) use ($collection, $responseClassName) { |
|
| 51 | 51 | if (!empty($item)) { |
| 52 | 52 | $collection->push(ResponseDtoBuilder::make($responseClassName, $item)); |
| 53 | 53 | } |