Skip to content

Commit

Permalink
fix: ci code style
Browse files Browse the repository at this point in the history
  • Loading branch information
augustas committed Oct 15, 2024
1 parent 810ab96 commit bcc643e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/oatbox/filesystem/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ public function write($mixed, $mimeType = null)
}
$this->getFileSystem()->writeStream($this->getPrefix(), $resource, $config);
} else {
throw new \InvalidArgumentException('Value to be written has to be: string, resource or StreamInterface, ' .
'"' . gettype($mixed) . '" given.');
throw new \InvalidArgumentException(sprintf(
'Value to be written has to be: string, resource or StreamInterface, "%s" given.',
gettype($mixed)
));
}
} catch (FilesystemException $e) {
return false;
Expand Down

0 comments on commit bcc643e

Please sign in to comment.