@@ -246,7 +246,7 @@ |
||
246 | 246 | */ |
247 | 247 | protected function __toArray() |
248 | 248 | { |
249 | - return array_map(function ($value) { |
|
249 | + return array_map(function($value) { |
|
250 | 250 | if (is_object($value) && method_exists($value, 'toArray')) { |
251 | 251 | return $value->toArray(); |
252 | 252 | } else { |
@@ -418,8 +418,8 @@ discard block |
||
418 | 418 | */ |
419 | 419 | protected function accessTokenMiddleware() |
420 | 420 | { |
421 | - return function ($handler) { |
|
422 | - return function ($request, $options) use ($handler) { |
|
421 | + return function($handler) { |
|
422 | + return function($request, $options) use ($handler) { |
|
423 | 423 | $option['query']['access_token'] = $this->getAccessToken(); |
424 | 424 | $option['query']['timestamp'] = time(); |
425 | 425 | $option['query']['nonce'] = Support\generate_nonce(); |
@@ -436,8 +436,8 @@ discard block |
||
436 | 436 | */ |
437 | 437 | protected function advertiserIdMiddleware() |
438 | 438 | { |
439 | - return function ($handler) { |
|
440 | - return function ($request, $options) use ($handler) { |
|
439 | + return function($handler) { |
|
440 | + return function($request, $options) use ($handler) { |
|
441 | 441 | $option['form_params']['account_id'] = $this->getAdvertiserId(); |
442 | 442 | |
443 | 443 | return $handler($request, $options); |