Skip to content

Commit 0faf2ac

Browse files
committed
minor refactoring
1 parent 6ab15f7 commit 0faf2ac

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

DependencyInjection/MathielenImportEngineExtension.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,12 @@ private function addStorageProviderDef(Definition $storageLocatorDef, $config, $
305305
private function getStorageFileDefinitionFromUri($uri)
306306
{
307307
if (substr($uri, 0, 2) === '@=') {
308-
$fileDef = new Definition('SplFileInfo', array(
309-
new Expression(substr($uri, 2))
310-
));
311-
} else {
312-
$fileDef = new Definition('SplFileInfo', array(
313-
$uri
314-
));
308+
$uri = new Expression(substr($uri, 2));
315309
}
316310

317-
return $fileDef;
311+
return new Definition('SplFileInfo', array(
312+
$uri
313+
));
318314
}
319315

320316
/**

0 commit comments

Comments
 (0)