Skip to content

Commit 12022eb

Browse files
AC-9843:: i18n:collect-phrases breaks the translations integrity
1 parent 22cb145 commit 12022eb

File tree

1 file changed

+4
-4
lines changed
  • setup/src/Magento/Setup/Module/I18n/Parser/Adapter

1 file changed

+4
-4
lines changed

setup/src/Magento/Setup/Module/I18n/Parser/Adapter/Js.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Js extends AbstractAdapter
2727
public function __construct(
2828
File $fileSystem
2929
) {
30-
$this->_fileSystem = $fileSystem;
30+
$this->_filesystem = $fileSystem;
3131
}
3232
/**
3333
* Covers
@@ -52,7 +52,7 @@ public function __construct(
5252
protected function _parse()
5353
{
5454

55-
$fileHandle = $this->_fileSystem->fileOpen($this->_file, 'r');
55+
$fileHandle = $this->_filesystem->fileOpen($this->_file, 'r');
5656
$lineNumber = 0;
5757
try {
5858
while (($line = $this->fileReadLine($fileHandle, 0)) !== false) {
@@ -76,12 +76,12 @@ protected function _parse()
7676
}
7777
}
7878
} catch (\Exception $e) {
79-
$this->_fileSystem->fileClose($fileHandle);
79+
$this->_filesystem->fileClose($fileHandle);
8080
throw new FileSystemException(
8181
new \Magento\Framework\Phrase('Stream get line failed %1', [$e->getMessage()])
8282
);
8383
}
84-
$this->_fileSystem->fileClose($fileHandle);
84+
$this->_filesystem->fileClose($fileHandle);
8585
}
8686

8787
/**

0 commit comments

Comments
 (0)