From 2c296cc7fb24f94f5eb4bf1acd10502dcb0125af Mon Sep 17 00:00:00 2001 From: Yada Clintjens Date: Wed, 17 Jan 2024 09:52:41 +0100 Subject: [PATCH] Fix typos --- src/Decoder.php | 4 ++-- tests/FunctionalDecoderTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Decoder.php b/src/Decoder.php index d26ad43..2ad8c7d 100644 --- a/src/Decoder.php +++ b/src/Decoder.php @@ -256,10 +256,10 @@ private function readHeader($header) throw new RuntimeException('Invalid header checksum, expected "' . $record['checksum'] . '", but calculated "' . $checksum . '" (looks like the archive is corrupted)'); } - // padding consits of X NULL bytes after record entry until next BLOCK_SIZE boundary + // padding consists of X NULL bytes after record entry until next BLOCK_SIZE boundary $record['padding'] = (self::BLOCK_SIZE - ($record['size'] % self::BLOCK_SIZE)) % self::BLOCK_SIZE; - // filename consits of prefix and name + // filename consists of prefix and name $record['filename'] = $record['prefix'] . $record['name']; return $record; diff --git a/tests/FunctionalDecoderTest.php b/tests/FunctionalDecoderTest.php index 8034e75..11c6e06 100644 --- a/tests/FunctionalDecoderTest.php +++ b/tests/FunctionalDecoderTest.php @@ -71,7 +71,7 @@ public function testStreamingSingleEmptyEmitsSingleEntryWithEmptyStream() Loop::run(); } - public function testCompleteEndSingleEmtpyBehavesSameAsStreaming() + public function testCompleteEndSingleEmptyBehavesSameAsStreaming() { $this->decoder->on('entry', $this->expectCallableOnce()); $this->decoder->on('close', $this->expectCallableOnce());