Skip to content

Commit 6c467cf

Browse files
committed
#21675 static-test-fix
1 parent a22a736 commit 6c467cf

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function beforeSave()
112112
$this->setValue($file);
113113
return $this;
114114
}
115-
115+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
116116
$this->updateMediaDirectory(basename($file), $value['url']);
117117

118118
return $this;
@@ -125,6 +125,7 @@ public function afterLoad()
125125
{
126126
$value = $this->getValue();
127127
if ($value && !is_array($value)) {
128+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
128129
$fileName = $this->_getUploadDir() . '/' . basename($value);
129130
$fileInfo = null;
130131
if ($this->_mediaDirectory->isExist($fileName)) {
@@ -135,6 +136,7 @@ public function afterLoad()
135136
'url' => $url,
136137
'file' => $value,
137138
'size' => is_array($stat) ? $stat['size'] : 0,
139+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
138140
'name' => basename($value),
139141
'type' => $this->getMimeType($fileName),
140142
'exists' => true,

0 commit comments

Comments
 (0)