Skip to content

Commit

Permalink
fix logical operator
Browse files Browse the repository at this point in the history
  • Loading branch information
psion-ar committed Jun 22, 2024
1 parent d2fb9ae commit 92ef2f5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 107 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/fix-php-code-style.yml

This file was deleted.

79 changes: 0 additions & 79 deletions pint.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function image(
null|string $extension = null
): string {
$this->directory = $directory ?? sys_get_temp_dir();
if ( ! is_dir($this->directory) && ! is_writable($this->directory)) {
if ( ! is_dir($this->directory) || ! is_writable($this->directory)) {
throw new InvalidArgumentException(sprintf('Directory "%s" is not writable.', $this->directory));
}

Expand Down

0 comments on commit 92ef2f5

Please sign in to comment.