We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c44caaf commit f516364Copy full SHA for f516364
lib/internal/Magento/Framework/Code/Generator/Io.php
@@ -96,13 +96,13 @@ public function writeResultFile($fileName, $content)
96
* multiple processes are attempting to access the generated file simultaneously.
97
*/
98
$content = "<?php\n" . $content;
99
- $rand = rand(0,1024);
+ $rand = rand(0, 1024);
100
$tmpFile = $fileName . ".$rand";
101
$this->filesystemDriver->filePutContents($tmpFile, $content);
102
103
try {
104
$result = $this->filesystemDriver->rename($tmpFile, $fileName);
105
- } catch(FilesystemException $e) {
+ } catch (FilesystemException $e) {
106
if (!file_exists($fileName)) {
107
throw $e;
108
} else {
0 commit comments