Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Commit

Permalink
Fixed cs
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed May 13, 2017
1 parent 89d9bb2 commit fe2bf11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$errorHandler->setLogger(logger());

// Handle http errors
$errorHandler->on(UnauthorizedException::class, function(Request $request, Response $response, Route $route) {
$errorHandler->on(UnauthorizedException::class, function() {
// Redirect to login page
return new RedirectResponse(baseurl('/login'));
});
Expand Down
3 changes: 2 additions & 1 deletion src/Controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public function load()
$json = $this->getRequest()->getAttribute('json');
//$params = value($json, 'params');
$result = [
'status' => 1
'status' => 1,
'test' => $json
];
return $result;
}
Expand Down
1 change: 0 additions & 1 deletion src/Util/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class Http
*
* @param Request $request
* @param Response $response
* @return void
*/
public function __construct(Request $request, Response $response)
{
Expand Down

0 comments on commit fe2bf11

Please sign in to comment.