Skip to content

Commit

Permalink
refactor isEmpty method
Browse files Browse the repository at this point in the history
  • Loading branch information
johanrosenson committed Apr 1, 2021
1 parent 74e841f commit f8c5b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Buffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function clean() : void
*/
public function isEmpty() : bool
{
return count($this) === 0;
return ! $this->isNotEmpty();
}

/**
Expand Down

0 comments on commit f8c5b32

Please sign in to comment.