From 05c1d7e398381d6dffeb358262f4ad97db7e9624 Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Tue, 28 Jan 2020 15:03:16 +0000 Subject: [PATCH] Clean up code --- src/Random.php | 4 ++-- test/phpunit/RandomTest.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Random.php b/src/Random.php index 9101b7a..f1e1bb9 100644 --- a/src/Random.php +++ b/src/Random.php @@ -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(); } } diff --git a/test/phpunit/RandomTest.php b/test/phpunit/RandomTest.php index f2c292b..6d56ebb 100644 --- a/test/phpunit/RandomTest.php +++ b/test/phpunit/RandomTest.php @@ -1,7 +1,6 @@