Skip to content

Commit 01b216e

Browse files
committed
MAGETWO-32953: Fix Bamboo builds
- Fix PHPMD violations
1 parent 0e41442 commit 01b216e

File tree

19 files changed

+32
-2
lines changed

19 files changed

+32
-2
lines changed

app/code/Magento/Bundle/Model/Product/CatalogPrice.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function getCatalogPrice(\Magento\Catalog\Model\Product $product, $store
8080
*
8181
* @param \Magento\Catalog\Model\Product $product
8282
* @return null
83+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
8384
*/
8485
public function getCatalogRegularPrice(\Magento\Catalog\Model\Product $product)
8586
{

app/code/Magento/Bundle/Model/Product/Type.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ public function updateQtyOption($options, \Magento\Framework\Object $option, $va
588588
* @param mixed $qty
589589
* @param \Magento\Catalog\Model\Product $product
590590
* @return int
591+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
591592
*/
592593
public function prepareQuoteItemQty($qty, $product)
593594
{
@@ -1028,6 +1029,7 @@ public function hasOptions($product)
10281029
* @param \Magento\Catalog\Model\Product $product
10291030
* @return boolean true
10301031
* @SuppressWarnings(PHPMD.BooleanGetMethodName)
1032+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
10311033
*/
10321034
public function getForceChildItemQtyChanges($product)
10331035
{
@@ -1133,6 +1135,7 @@ public function getProductsToPurchaseByReqGroups($product)
11331135
* @param \Magento\Catalog\Model\Product $product
11341136
* @param \Magento\Framework\Object $buyRequest
11351137
* @return array
1138+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
11361139
*/
11371140
public function processBuyRequest($product, $buyRequest)
11381141
{
@@ -1165,6 +1168,7 @@ public function canConfigure($product)
11651168
*
11661169
* @param \Magento\Catalog\Model\Product $product
11671170
* @return void
1171+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
11681172
*/
11691173
public function deleteTypeSpecificData(\Magento\Catalog\Model\Product $product)
11701174
{

app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Price.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ protected function _getTaxObservingCode($attribute)
109109
/**
110110
* @param null|int|string $index
111111
* @return null|string
112+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
112113
*/
113114
public function getEscapedValue($index = null)
114115
{

app/code/Magento/Catalog/Model/Layer/Filter/AbstractFilter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public function getCleanValue()
128128
*
129129
* @param \Magento\Framework\App\RequestInterface $request
130130
* @return $this
131+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
131132
*/
132133
public function apply(\Magento\Framework\App\RequestInterface $request)
133134
{

app/code/Magento/Catalog/Model/Layer/Filter/Dynamic/Manual.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function __construct(
4949
* @param int[] $intervals
5050
* @param string $additionalRequestData
5151
* @return array
52+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5253
*/
5354
public function getItemsData(array $intervals = [], $additionalRequestData = '')
5455
{

app/code/Magento/Catalog/Model/Layer/Search/CollectionFilter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function __construct(
4949
* @param \Magento\Catalog\Model\Resource\Product\Collection $collection
5050
* @param \Magento\Catalog\Model\Category $category
5151
* @return void
52+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5253
*/
5354
public function filter(
5455
$collection,

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
use Magento\Framework\App\Filesystem\DirectoryList;
99

10+
/**
11+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
12+
*/
1013
abstract class Validator
1114
{
1215
/**

app/code/Magento/Catalog/Model/Resource/AbstractResource.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ protected function _insertAttribute($object, $attribute, $value)
345345
* @param mixed $valueId
346346
* @param mixed $value
347347
* @return $this
348+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
348349
*/
349350
protected function _updateAttribute($object, $attribute, $valueId, $value)
350351
{
@@ -490,6 +491,7 @@ protected function _getOrigObject($object)
490491
* @param AbstractAttribute $attribute
491492
* @param mixed $value
492493
* @return bool
494+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
493495
*/
494496
protected function _isAttributeValueEmpty(AbstractAttribute $attribute, $value)
495497
{

app/code/Magento/Catalog/Model/Resource/Category/Attribute/Collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ protected function _initSelect()
6868
*
6969
* @param int $typeId
7070
* @return $this
71+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
7172
*/
7273
public function setEntityTypeFilter($typeId)
7374
{

app/code/Magento/Catalog/Model/Resource/Product/Attribute/Collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ protected function _initSelect()
8989
*
9090
* @param int $typeId
9191
* @return $this
92+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
9293
*/
9394
public function setEntityTypeFilter($typeId)
9495
{

0 commit comments

Comments
 (0)