@@ -34,18 +34,18 @@ class NewVideo extends \Magento\Backend\Block\Widget\Form\Generic
34
34
35
35
/**
36
36
* @param \Magento\Backend\Block\Template\Context $context
37
- * @param \Magento\ProductVideo\Helper\Media $mediaHelper
38
- * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
39
37
* @param \Magento\Framework\Registry $registry
40
38
* @param \Magento\Framework\Data\FormFactory $formFactory
39
+ * @param \Magento\ProductVideo\Helper\Media $mediaHelper
40
+ * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
41
41
* @param array $data
42
42
*/
43
43
public function __construct (
44
44
\Magento \Backend \Block \Template \Context $ context ,
45
- \Magento \ProductVideo \Helper \Media $ mediaHelper ,
46
- \Magento \Framework \Json \EncoderInterface $ jsonEncoder ,
47
45
\Magento \Framework \Registry $ registry ,
48
46
\Magento \Framework \Data \FormFactory $ formFactory ,
47
+ \Magento \ProductVideo \Helper \Media $ mediaHelper ,
48
+ \Magento \Framework \Json \EncoderInterface $ jsonEncoder ,
49
49
array $ data = []
50
50
) {
51
51
parent ::__construct ($ context , $ registry , $ formFactory , $ data );
@@ -269,11 +269,10 @@ protected function addMediaRoleAttributes(Fieldset $fieldset)
269
269
protected function getNoteVideoUrl ()
270
270
{
271
271
$ result = __ ('YouTube and Vimeo supported. ' );
272
- if (is_null ( $ this ->mediaHelper ->getYouTubeApiKey ()) ) {
272
+ if ($ this ->mediaHelper ->getYouTubeApiKey () === null ) {
273
273
$ result = __ (
274
274
'Vimeo supported.<br /> '
275
- . 'To add YouTube video, please <a href="%1">enter YouTube API Key</a> first. '
276
- ,
275
+ . 'To add YouTube video, please <a href="%1">enter YouTube API Key</a> first. ' ,
277
276
$ this ->getConfigApiKeyUrl ()
278
277
);
279
278
}
0 commit comments