File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
app/code/Magento/Catalog/Model/View/Asset Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -88,31 +88,31 @@ public function __construct(
88
88
}
89
89
90
90
/**
91
- * { @inheritdoc}
91
+ * @inheritdoc
92
92
*/
93
93
public function getUrl ()
94
94
{
95
95
return $ this ->context ->getBaseUrl () . DIRECTORY_SEPARATOR . $ this ->getImageInfo ();
96
96
}
97
97
98
98
/**
99
- * { @inheritdoc}
99
+ * @inheritdoc
100
100
*/
101
101
public function getContentType ()
102
102
{
103
103
return $ this ->contentType ;
104
104
}
105
105
106
106
/**
107
- * { @inheritdoc}
107
+ * @inheritdoc
108
108
*/
109
109
public function getPath ()
110
110
{
111
111
return $ this ->context ->getPath () . DIRECTORY_SEPARATOR . $ this ->getImageInfo ();
112
112
}
113
113
114
114
/**
115
- * { @inheritdoc}
115
+ * @inheritdoc
116
116
*/
117
117
public function getSourceFile ()
118
118
{
@@ -131,23 +131,24 @@ public function getSourceContentType()
131
131
}
132
132
133
133
/**
134
- * { @inheritdoc}
134
+ * @inheritdoc
135
135
*/
136
136
public function getContent ()
137
137
{
138
138
return null ;
139
139
}
140
140
141
141
/**
142
- * { @inheritdoc}
142
+ * @inheritdoc
143
143
*/
144
144
public function getFilePath ()
145
145
{
146
146
return $ this ->filePath ;
147
147
}
148
148
149
149
/**
150
- * {@inheritdoc}
150
+ * @inheritdoc
151
+ *
151
152
* @return ContextInterface
152
153
*/
153
154
public function getContext ()
@@ -156,7 +157,7 @@ public function getContext()
156
157
}
157
158
158
159
/**
159
- * { @inheritdoc}
160
+ * @inheritdoc
160
161
*/
161
162
public function getModule ()
162
163
{
@@ -191,10 +192,11 @@ private function getImageInfo()
191
192
192
193
/**
193
194
* Converting bool into a string representation
194
- * @param $miscParams
195
+ *
196
+ * @param array $miscParams
195
197
* @return array
196
198
*/
197
- private function convertToReadableFormat ($ miscParams )
199
+ private function convertToReadableFormat (array $ miscParams )
198
200
{
199
201
$ miscParams ['image_height ' ] = 'h: ' . ($ miscParams ['image_height ' ] ?? 'empty ' );
200
202
$ miscParams ['image_width ' ] = 'w: ' . ($ miscParams ['image_width ' ] ?? 'empty ' );
You can’t perform that action at this time.
0 commit comments