Fix code style

This commit is contained in:
Adrien Crivelli 2017-12-23 14:40:51 +09:00
parent 453f8f1821
commit 80e46707aa
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class Sample
{ {
$tempFolder = sys_get_temp_dir() . '/phpspreadsheet'; $tempFolder = sys_get_temp_dir() . '/phpspreadsheet';
if (!is_dir($tempFolder)) { if (!is_dir($tempFolder)) {
if (! mkdir($tempFolder) && ! is_dir($tempFolder)) { if (!mkdir($tempFolder) && !is_dir($tempFolder)) {
throw new \RuntimeException(sprintf('Directory "%s" was not created', $tempFolder)); throw new \RuntimeException(sprintf('Directory "%s" was not created', $tempFolder));
} }
} }