Skip to content

Commit aaa28b8

Browse files
authored
#22132: Fixed static tests
1 parent c65ead5 commit aaa28b8

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/Theme/Model/Design/Backend

1 file changed

+3
-0
lines changed

app/code/Magento/Theme/Model/Design/Backend/File.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public function beforeSave()
104104
return $this;
105105
}
106106

107+
//phpcs:ignore Magento2.Functions.DiscouragedFunction
107108
$this->updateMediaDirectory(basename($file), $value['url']);
108109

109110
return $this;
@@ -116,6 +117,7 @@ public function afterLoad()
116117
{
117118
$value = $this->getValue();
118119
if ($value && !is_array($value)) {
120+
//phpcs:ignore Magento2.Functions.DiscouragedFunction
119121
$fileName = $this->_getUploadDir() . '/' . basename($value);
120122
$fileInfo = null;
121123
if ($this->_mediaDirectory->isExist($fileName)) {
@@ -126,6 +128,7 @@ public function afterLoad()
126128
'url' => $url,
127129
'file' => $value,
128130
'size' => is_array($stat) ? $stat['size'] : 0,
131+
//phpcs:ignore Magento2.Functions.DiscouragedFunction
129132
'name' => basename($value),
130133
'type' => $this->getMimeType($fileName),
131134
'exists' => true,

0 commit comments

Comments
 (0)