Skip to content

Commit c33e292

Browse files
authored
Merge pull request #756 from magento-south/MAGETWO-63171
[SOUTH] MAGETWO-63171: Update Magento Zend Framework 1 to latest version - MAGETWO-63171 Fix Zend Mail vulnerability - for 2.1.x - MAGETWO-63329 Travis build is red for 2.1
2 parents 723247c + e4f39af commit c33e292

File tree

21 files changed

+120
-103
lines changed

21 files changed

+120
-103
lines changed

app/code/Magento/Catalog/Model/Product.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,6 +2616,7 @@ private function getMediaGalleryProcessor()
26162616
/**
26172617
* Set the associated products
26182618
* @param array $productIds
2619+
* @return void
26192620
*/
26202621
public function setAssociatedProductIds(array $productIds)
26212622
{

app/code/Magento/Catalog/Model/Product/Option/Type/File.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class File extends \Magento\Catalog\Model\Product\Option\Type\DefaultType
8686
* @param \Magento\Framework\Escaper $escaper
8787
* @param array $data
8888
* @param Filesystem $filesystem
89+
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
8990
*/
9091
public function __construct(
9192
\Magento\Checkout\Model\Session $checkoutSession,

app/code/Magento/Catalog/Pricing/Render/FinalPriceBox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private function isMsrpPriceApplicable()
9393
{
9494
$moduleManager = $this->getModuleManager();
9595

96-
if (!$moduleManager->isEnabled('Magento_Msrp') || !$moduleManager->isOutputEnabled('Magento_Msrp') ) {
96+
if (!$moduleManager->isEnabled('Magento_Msrp') || !$moduleManager->isOutputEnabled('Magento_Msrp')) {
9797
return false;
9898
}
9999

app/code/Magento/Catalog/Test/Unit/Model/Indexer/Product/Flat/Table/BuilderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,3 @@ public function testAddColumn()
4545
$this->assertEquals($builder, $builder->addColumn('test', \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER));
4646
}
4747
}
48-

app/code/Magento/Catalog/Test/Unit/Model/ProductTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ public function testGetIdentities($expected, $origData, $data, $isDeleted = fals
656656

657657
/**
658658
* @return array
659+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
659660
*/
660661
public function getIdentitiesProvider()
661662
{

app/code/Magento/Catalog/Test/Unit/Pricing/Render/FinalPriceBoxTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
/**
1414
* Class FinalPriceBoxTest
15+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1516
*/
1617
class FinalPriceBoxTest extends \PHPUnit_Framework_TestCase
1718
{
@@ -71,6 +72,9 @@ class FinalPriceBoxTest extends \PHPUnit_Framework_TestCase
7172
/** @var Manager|\PHPUnit_Framework_MockObject_MockObject */
7273
private $moduleManager;
7374

75+
/**
76+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
77+
*/
7478
protected function setUp()
7579
{
7680
$this->product = $this->getMock(
@@ -231,7 +235,6 @@ public function testRenderMsrpEnabled()
231235
->with('Magento_Msrp')
232236
->willReturn(true);
233237

234-
235238
$this->priceInfo->expects($this->once())
236239
->method('getPrice')
237240
->with($this->equalTo('msrp_price'))

app/code/Magento/ConfigurableProduct/Test/Unit/Pricing/Render/FinalPriceBoxTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
/**
1414
* Class FinalPriceBoxTest
15+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1516
*/
1617
class FinalPriceBoxTest extends \PHPUnit_Framework_TestCase
1718
{
@@ -71,6 +72,9 @@ class FinalPriceBoxTest extends \PHPUnit_Framework_TestCase
7172
/** @var Manager|\PHPUnit_Framework_MockObject_MockObject */
7273
private $moduleManager;
7374

75+
/**
76+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
77+
*/
7478
protected function setUp()
7579
{
7680
$this->product = $this->getMock(

app/code/Magento/Customer/Controller/Adminhtml/Index/Save.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
use Magento\Customer\Model\Metadata\Form;
1414
use Magento\Framework\Exception\LocalizedException;
1515

16-
16+
/**
17+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18+
*/
1719
class Save extends \Magento\Customer\Controller\Adminhtml\Index
1820
{
1921
/**

app/code/Magento/GiftMessage/Test/Unit/Model/GiftMessageConfigProviderTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\GiftMessage\Test\Unit\Model;
77

8+
use Magento\Framework\App\Config\ScopeConfigInterface;
89
use Magento\GiftMessage\Helper\Message as GiftMessageHelper;
910
use Magento\Store\Model\ScopeInterface as Scope;
1011
use Magento\Customer\Model\Context as CustomerContext;
@@ -13,6 +14,7 @@
1314

1415
/**
1516
* GiftMessage config provider test
17+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1618
*/
1719
class GiftMessageConfigProviderTest extends \PHPUnit_Framework_TestCase
1820
{
@@ -68,7 +70,7 @@ protected function setUp()
6870
$this->storeManagerMock = $this->getMock(\Magento\Store\Model\StoreManagerInterface::class, [], [], '', false);
6971
$this->localeFormatMock = $this->getMock(\Magento\Framework\Locale\FormatInterface::class, [], [], '', false);
7072
$this->formKeyMock = $this->getMock(\Magento\Framework\Data\Form\FormKey::class, [], [], '', false);
71-
$this->scopeConfigMock = $this->getMock(\Magento\Framework\App\Config\ScopeConfigInterface::class, [], [], '', false);
73+
$this->scopeConfigMock = $this->getMock(ScopeConfigInterface::class, [], [], '', false);
7274
$contextMock = $this->getMock(\Magento\Framework\App\Helper\Context::class, [], [], '', false);
7375
$this->cartRepositoryMock = $this->getMock(
7476
\Magento\GiftMessage\Api\CartRepositoryInterface::class,

app/code/Magento/Paypal/Model/Config/StructurePlugin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class StructurePlugin
5555
/**
5656
* @param ScopeDefiner $scopeDefiner
5757
* @param BackendHelper $helper
58+
* @param PaymentSectionModifier|null $paymentSectionModifier
5859
*/
5960
public function __construct(
6061
ScopeDefiner $scopeDefiner,

0 commit comments

Comments
 (0)