Skip to content

Commit 872a24b

Browse files
author
Dmitry Kologrivov
committed
Fix csmd for fixes of PR
1 parent 99696c1 commit 872a24b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

app/code/Magento/ProductVideo/Block/Adminhtml/Product/Edit/NewVideo.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ class NewVideo extends \Magento\Backend\Block\Widget\Form\Generic
3434

3535
/**
3636
* @param \Magento\Backend\Block\Template\Context $context
37-
* @param \Magento\ProductVideo\Helper\Media $mediaHelper
38-
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
3937
* @param \Magento\Framework\Registry $registry
4038
* @param \Magento\Framework\Data\FormFactory $formFactory
39+
* @param \Magento\ProductVideo\Helper\Media $mediaHelper
40+
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
4141
* @param array $data
4242
*/
4343
public function __construct(
4444
\Magento\Backend\Block\Template\Context $context,
45-
\Magento\ProductVideo\Helper\Media $mediaHelper,
46-
\Magento\Framework\Json\EncoderInterface $jsonEncoder,
4745
\Magento\Framework\Registry $registry,
4846
\Magento\Framework\Data\FormFactory $formFactory,
47+
\Magento\ProductVideo\Helper\Media $mediaHelper,
48+
\Magento\Framework\Json\EncoderInterface $jsonEncoder,
4949
array $data = []
5050
) {
5151
parent::__construct($context, $registry, $formFactory, $data);
@@ -269,11 +269,10 @@ protected function addMediaRoleAttributes(Fieldset $fieldset)
269269
protected function getNoteVideoUrl()
270270
{
271271
$result = __('YouTube and Vimeo supported.');
272-
if (is_null($this->mediaHelper->getYouTubeApiKey())) {
272+
if ($this->mediaHelper->getYouTubeApiKey() === null) {
273273
$result = __(
274274
'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.',
277276
$this->getConfigApiKeyUrl()
278277
);
279278
}

app/code/Magento/ProductVideo/Model/Plugin/ExternalVideoEntryProcessor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class ExternalVideoEntryProcessor
4848

4949
/**
5050
* @param \Magento\Catalog\Model\ResourceModel\Product\Attribute\Backend\Media $resourceEntryMediaGallery
51+
* @param \Magento\ProductVideo\Model\ResourceModel\Video $videoResourceModel
5152
*/
5253
public function __construct(
5354
\Magento\Catalog\Model\ResourceModel\Product\Attribute\Backend\Media $resourceEntryMediaGallery,

app/code/Magento/ProductVideo/Model/Plugin/ExternalVideoResourceBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(\Magento\ProductVideo\Model\ResourceModel\Video $vid
3636
public function afterDuplicate(Media $originalResourceModel, array $valueIdMap)
3737
{
3838
$mediaGalleryEntitiesData = $this->videoResourceModel->loadByIds(array_keys($valueIdMap));
39-
foreach($mediaGalleryEntitiesData as $row) {
39+
foreach ($mediaGalleryEntitiesData as $row) {
4040
$row['value_id'] = $valueIdMap[$row['value_id']];
4141
$this->videoResourceModel->insertOnDuplicate($row);
4242
}

0 commit comments

Comments
 (0)