Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
papac committed May 19, 2023
1 parent 13da0a4 commit 8c5c581
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Router/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,10 @@ private function routeLoader(string $method, string $path, callable|string|array

static::$routes[$method][] = $route;

if ($this->auto_csrf === true
&& in_array($method, ['POST', 'DELETE', 'PUT'])) {
if (
$this->auto_csrf === true
&& in_array($method, ['POST', 'DELETE', 'PUT'])
) {
$route->middleware('csrf');
}

Expand Down

0 comments on commit 8c5c581

Please sign in to comment.