Skip to content

Commit f516364

Browse files
author
Dale Sikkema
committed
MAGETWO-31834: Fatal error if trying to navigate to Frontend at first time after install
- style fixes
1 parent c44caaf commit f516364

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/Code/Generator

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Code/Generator/Io.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ public function writeResultFile($fileName, $content)
9696
* multiple processes are attempting to access the generated file simultaneously.
9797
*/
9898
$content = "<?php\n" . $content;
99-
$rand = rand(0,1024);
99+
$rand = rand(0, 1024);
100100
$tmpFile = $fileName . ".$rand";
101101
$this->filesystemDriver->filePutContents($tmpFile, $content);
102102

103103
try {
104104
$result = $this->filesystemDriver->rename($tmpFile, $fileName);
105-
} catch(FilesystemException $e) {
105+
} catch (FilesystemException $e) {
106106
if (!file_exists($fileName)) {
107107
throw $e;
108108
} else {

0 commit comments

Comments
 (0)