Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yadaiio committed Jan 17, 2024
1 parent 4faf1c4 commit 2c296cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Decoder.php
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/FunctionalDecoderTest.php
Expand Up @@ -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());
Expand Down

0 comments on commit 2c296cc

Please sign in to comment.