Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jan 28, 2020
1 parent 27c0f71 commit 05c1d7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Random.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function getBytes(int $size):string {

/** @throws SeedSizeOutOfBoundsException */
private function checkSeedSize(string $seed):void {
$strlen = strlen($seed);
if($strlen === 0 || $strlen % 16 !== 0) {
$strLen = strlen($seed);
if($strLen === 0 || $strLen % 16 !== 0) {
throw new SeedSizeOutOfBoundsException();
}
}
Expand Down
1 change: 0 additions & 1 deletion test/phpunit/RandomTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace g105b\drng\Test;

use Exception;
use g105b\drng\SeedSizeOutOfBoundsException;
use PHPUnit\Framework\TestCase;
use g105b\drng\Random;
Expand Down

0 comments on commit 05c1d7e

Please sign in to comment.