diff --git a/src/PhpSpreadsheet/Helper/Sample.php b/src/PhpSpreadsheet/Helper/Sample.php index d021c922..c637e119 100644 --- a/src/PhpSpreadsheet/Helper/Sample.php +++ b/src/PhpSpreadsheet/Helper/Sample.php @@ -141,7 +141,7 @@ class Sample { $tempFolder = sys_get_temp_dir() . '/phpspreadsheet'; 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)); } }