Skip to content

Commit

Permalink
[refactor]
Browse files Browse the repository at this point in the history
  • Loading branch information
z-song committed Sep 19, 2018
1 parent c6c727c commit 788173a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Middleware/LogOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ protected function inAllowedMethods($method)
return true;
}

return $allowedMethods->map('strtoupper')->contains($method);
return $allowedMethods->map(function ($method) {
return strtoupper($method);
})->contains($method);
}

/**
Expand Down

0 comments on commit 788173a

Please sign in to comment.