Skip to content

Commit

Permalink
Codestyle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Chernyi committed Mar 1, 2018
1 parent 9723582 commit 769548b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function register(Container $container): void
if (!($config['before'] ?? null)) {
$config['before'] = function (ServerRequestInterface $request, array $args) use ($container) {
$token = $request->getAttribute($config['attribute'] ?? 'token');
$container['user'] = (array)(is_object($token) && property_exists($token, 'data') ? $token->data : ($token['data'] ?? $token));
$container['user'] = (array) (is_object($token) && property_exists($token, 'data') ? $token->data : ($token['data'] ?? $token));

return $request;
};
Expand Down

0 comments on commit 769548b

Please sign in to comment.