src/Paraunit/File/TempDirectory.php 1 location
|
@@ 83-85 (lines=3) @@
|
80 |
|
return; |
81 |
|
} |
82 |
|
|
83 |
|
if (! mkdir($path) && ! is_dir($path)) { |
84 |
|
throw new \RuntimeException('Unable to create temporary directory ' . $path); |
85 |
|
} |
86 |
|
} |
87 |
|
} |
88 |
|
|
src/Paraunit/Parser/JSON/LogPrinter.php 1 location
|
@@ 279-281 (lines=3) @@
|
276 |
|
private function getLogFilename(): string |
277 |
|
{ |
278 |
|
$logDir = $this->getLogDirectory(); |
279 |
|
if (! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) { |
280 |
|
throw new \RuntimeException('Cannot create folder for JSON logs'); |
281 |
|
} |
282 |
|
|
283 |
|
$logFilename = getenv(EnvVariables::PROCESS_UNIQUE_ID); |
284 |
|
if ($logFilename === false) { |