Skip to content

Commit

Permalink
Utilize php7 feature.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jul 4, 2017
1 parent 0a2cdb7 commit 317b1c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions RouteResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Orchestra\Http;

use Illuminate\Support\Arr;
use Illuminate\Support\NamespacedItemResolver;
use Illuminate\Contracts\Foundation\Application;

Expand Down Expand Up @@ -213,7 +212,7 @@ protected function prepareValidRoute($route, $item, $query, array $options)
$appends = [];
$mode = $this->mode();

if (!! Arr::get($options, 'csrf', false)) {
if (!! ($options['csrf'] ?? false)) {
$appends['_token'] = $this->getCsrfToken();
}

Expand Down

0 comments on commit 317b1c3

Please sign in to comment.