Skip to content

Commit

Permalink
minor cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Dec 31, 2019
1 parent 51ae1b7 commit daa6442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Archive7z.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ private function decorateCmdCompress(): array
$out[] = '-p' . $this->password;

// Encrypt archive header if 7z archive
if ($this->encryptFilenames && (pathinfo($this->filename, PATHINFO_EXTENSION) === '7z')) {
if ($this->encryptFilenames && '7z' === \pathinfo($this->filename, PATHINFO_EXTENSION)) {
$out[] = '-mhe=on';
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Archive7zTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ public function testCantGetEntriesPasswdEncFiles(string $archiveName): void

try {
$obj->getEntries();
self::fail(sprintf("Expected '%s' Exception.", ProcessFailedException::class));
self::fail(\sprintf("Expected '%s' Exception.", ProcessFailedException::class));
} catch (ProcessFailedException $e) {
self::assertInstanceOf(ProcessFailedException::class, $e);
self::assertRegExp('/Can not open encrypted archive\. Wrong password\?/', $e->getMessage());
Expand Down

0 comments on commit daa6442

Please sign in to comment.