Skip to content

Commit

Permalink
Simplified Item::notExpired() method logic
Browse files Browse the repository at this point in the history
  • Loading branch information
PHLAK committed Mar 1, 2017
1 parent 75ba472 commit be8f0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function expired()
*/
public function notExpired()
{
return Carbon::now()->lte($this->expires);
return ! $this->expired();
}

/**
Expand Down

0 comments on commit be8f0b8

Please sign in to comment.