Skip to content

Commit c90ed84

Browse files
author
Victor Rad
committed
Merge remote-tracking branch 'origin/MAGETWO-47865' into pr-368
2 parents 0f8c7ac + 330dae5 commit c90ed84

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

app/code/Magento/ConfigurableProduct/Block/Plugin/Product/Media/Gallery.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ class Gallery extends \Magento\Catalog\Block\Product\View\AbstractView
2929

3030
/**
3131
* Gallery constructor.
32+
* @param \Magento\Catalog\Block\Product\Context $context
33+
* @param \Magento\Framework\Stdlib\ArrayUtils $arrayUtils
3234
* @param \Magento\Catalog\Model\Product\Gallery\ReadHandler $productGalleryReadHandler
3335
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
3436
* @param \Magento\Framework\Json\DecoderInterface $jsonDecoder
35-
* @param \Magento\Catalog\Block\Product\Context $context
36-
* @param \Magento\Framework\Stdlib\ArrayUtils $arrayUtils
3737
* @param array $data
3838
*/
3939
public function __construct(
40+
\Magento\Catalog\Block\Product\Context $context,
41+
\Magento\Framework\Stdlib\ArrayUtils $arrayUtils,
4042
\Magento\Catalog\Model\Product\Gallery\ReadHandler $productGalleryReadHandler,
4143
\Magento\Framework\Json\EncoderInterface $jsonEncoder,
4244
\Magento\Framework\Json\DecoderInterface $jsonDecoder,
43-
\Magento\Catalog\Block\Product\Context $context,
44-
\Magento\Framework\Stdlib\ArrayUtils $arrayUtils,
4545
array $data = []
4646
) {
4747
$this->productGalleryReadHandler = $productGalleryReadHandler;

app/code/Magento/ProductVideo/view/frontend/web/js/fotorama-add-video-events.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ define([
137137
$widget.videoData = $widget.options.VideoData;
138138
}
139139

140-
$('#product-options-wrapper').find('[option-selected]').each(function (item) {
140+
$('#product-options-wrapper').find('[option-selected]').each(function () {
141141
var key = $(this).attr('attribute-code') + '_' + $(this).attr('option-selected');
142+
142143
if ($widget.options.OptionsVideoData && $widget.options.OptionsVideoData[key]) {
143144
$widget.options.VideoData = $widget.options.OptionsVideoData[key];
144145
} else {

dev/tests/static/framework/Magento/Sniffs/Whitespace/MultipleEmptyLinesSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
4040
$lines = $tokens[$next]['line'] - $tokens[$stackPtr]['line'];
4141
if ($lines > 1) {
4242
$error = 'Code must not contain multiple empty lines in a row; found %s empty lines';
43-
$data = array($lines);
43+
$data = [$lines];
4444
$phpcsFile->addError($error, $stackPtr, 'MultipleEmptyLines', $data);
4545
}
4646
}

0 commit comments

Comments
 (0)