Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mlantz committed May 15, 2017
1 parent 5cd2664 commit 2a42036
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Illuminate/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,7 @@ public function is()
*/
public function isRouteName($name)
{
if ($this->route()->getName() == $name) {
return true;
}

return false;
return $this->route()->getName() === $name;
}

/**
Expand Down

0 comments on commit 2a42036

Please sign in to comment.