Skip to content

Commit 1be3df8

Browse files
author
Olga Kopylova
committed
MAGETWO-44736: Contribute Ogres Bugfixes
- fixed code style
1 parent a3ac6d3 commit 1be3df8

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

app/code/Magento/Developer/Model/XmlCatalog/Format/PhpStorm.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ class PhpStorm implements FormatInterface
2222
*/
2323
private $currentDirRead;
2424

25-
/**
26-
* @var WriteInterface
27-
*/
28-
private $currentDirWrite;
29-
3025
/**
3126
* @var \Magento\Framework\Filesystem\File\WriteFactory
3227
*/
@@ -68,7 +63,7 @@ public function generateCatalog(array $dictionary, $configFilePath)
6863
$nodeList = $xpath->query('/project');
6964
$projectNode = $nodeList->item(0);
7065
$file->close();
71-
} catch (FileSystemException $f){
66+
} catch (FileSystemException $f) {
7267
//create file if does not exists
7368
$dom = new \DOMDocument();
7469
$projectNode = $dom->createElement('project');

lib/internal/Magento/Framework/Config/Dom/UrnResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ public function getRealPath($schema)
4343
$package = $componentRegistrar
4444
->getPath(ComponentRegistrar::LIBRARY, $matches['vendor'] . '/' . $matches['framework']);
4545
} else {
46-
throw new NotFoundException(new Phrase("Unsupported format of schema location: '%1'", $schema));
46+
throw new NotFoundException(new Phrase("Unsupported format of schema location: '%1'", [$schema]));
4747
}
4848
$schemaPath = $package . '/' . $matches['path'];
4949
if (empty($package) || !file_exists($schemaPath)) {
5050
throw new NotFoundException(
51-
new Phrase("Could not locate schema: '%1' at '%2'", $schema, $schemaPath)
51+
new Phrase("Could not locate schema: '%1' at '%2'", [$schema, $schemaPath])
5252
);
5353
}
5454
return $schemaPath;

0 commit comments

Comments
 (0)