@@ -38,7 +38,7 @@ |
||
38 | 38 | protected function success(\stdClass $response) |
39 | 39 | { |
40 | 40 | $found = isset($response->result); |
41 | - $data = $found ? $response->result : null; |
|
41 | + $data = $found ? $response->result : null; |
|
42 | 42 | $message = $found ? 'Order info fetched successfully' : 'The order was not found'; |
43 | 43 | $this |
44 | 44 | ->setSuccess(1) |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | $result = ''; |
34 | 34 | $params = $this->compileAsArray($dto); |
35 | - array_walk($params, function ($value, $key) use (&$result) { |
|
35 | + array_walk($params, function($value, $key) use (&$result) { |
|
36 | 36 | $result .= "{$key}=$value&"; |
37 | 37 | }); |
38 | 38 | return $result; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $params = array_merge($request, $public); |
75 | 75 | ksort($params); |
76 | 76 | $result = ''; |
77 | - array_walk($params, function ($value, $key) use (&$result) { |
|
77 | + array_walk($params, function($value, $key) use (&$result) { |
|
78 | 78 | $result .= $key . $value; |
79 | 79 | }); |
80 | 80 | return $result; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function compile(array $request = []): string |
25 | 25 | { |
26 | 26 | $result = ''; |
27 | - array_walk($request, function ($value, $key) use (&$result) { |
|
27 | + array_walk($request, function($value, $key) use (&$result) { |
|
28 | 28 | $result .= "{$key}=$value&"; // Exact business policy |
29 | 29 | }); |
30 | 30 | return $result; |
@@ -27,5 +27,5 @@ |
||
27 | 27 | * @param DtoInterface $data |
28 | 28 | * @return string |
29 | 29 | */ |
30 | - public function compileToSignature(DtoInterface $data): string ; |
|
30 | + public function compileToSignature(DtoInterface $data): string; |
|
31 | 31 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | $result = []; |
25 | 25 | $attributes = get_object_vars($this); |
26 | - array_walk($attributes, function ($value, $attribute) use (&$result) { |
|
26 | + array_walk($attributes, function($value, $attribute) use (&$result) { |
|
27 | 27 | $result[$this->unCamelize($attribute)] = $value; |
28 | 28 | }); |
29 | 29 | return $result; |