Skip to content

Commit 2c296cc

Browse files
committed
Fix typos
1 parent 4faf1c4 commit 2c296cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Decoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ private function readHeader($header)
256256
throw new RuntimeException('Invalid header checksum, expected "' . $record['checksum'] . '", but calculated "' . $checksum . '" (looks like the archive is corrupted)');
257257
}
258258

259-
// padding consits of X NULL bytes after record entry until next BLOCK_SIZE boundary
259+
// padding consists of X NULL bytes after record entry until next BLOCK_SIZE boundary
260260
$record['padding'] = (self::BLOCK_SIZE - ($record['size'] % self::BLOCK_SIZE)) % self::BLOCK_SIZE;
261261

262-
// filename consits of prefix and name
262+
// filename consists of prefix and name
263263
$record['filename'] = $record['prefix'] . $record['name'];
264264

265265
return $record;

tests/FunctionalDecoderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testStreamingSingleEmptyEmitsSingleEntryWithEmptyStream()
7171
Loop::run();
7272
}
7373

74-
public function testCompleteEndSingleEmtpyBehavesSameAsStreaming()
74+
public function testCompleteEndSingleEmptyBehavesSameAsStreaming()
7575
{
7676
$this->decoder->on('entry', $this->expectCallableOnce());
7777
$this->decoder->on('close', $this->expectCallableOnce());

0 commit comments

Comments
 (0)