Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fashxp authored and actions-user committed May 7, 2021
1 parent 65ed121 commit ee43a45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Mapping/Operator/Simple/ImportAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public function process($inputData, bool $dryRun = false)
$asset = Asset::getByPath($this->parentFolderPath . '/' . $filename);
}
if (empty($asset)) {

if($fileUrl && $assetData = @file_get_contents($fileUrl)) {
if ($fileUrl && $assetData = @file_get_contents($fileUrl)) {
$parent = Asset\Service::createFolderByPath($this->parentFolderPath);
$filename = $this->getSafeFilename($this->parentFolderPath, $filename);

Expand All @@ -76,7 +75,6 @@ public function process($inputData, bool $dryRun = false)
} else {
$asset->save();
}

} else {
$this->applicationLogger->error("Could not import asset data from `$fileUrl` ", [
'component' => PimcoreDataImporterBundle::LOGGER_COMPONENT_PREFIX . $this->configName,
Expand Down

0 comments on commit ee43a45

Please sign in to comment.