Skip to content

Commit 56c4093

Browse files
author
valdislav
committed
MAGETWO-36882: Stabilizing branch
1 parent e6b7b33 commit 56c4093

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/code/Magento/Sales/Model/Resource/EntityAbstract.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ protected function processRelations(\Magento\Framework\Model\AbstractModel $obje
209209
* @param \Magento\Framework\Model\AbstractModel $object
210210
* @return $this
211211
* @throws \Exception
212+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
212213
*/
213214
public function save(\Magento\Framework\Model\AbstractModel $object)
214215
{

app/code/Magento/Sales/Model/Resource/Order.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ public function aggregateProductsByTypes($orderId, $productTypeIds = [], $isProd
101101
$select->where(
102102
sprintf(
103103
'(o.product_type %s (?))',
104-
$isProductTypeIn
105-
? 'IN'
106-
: 'NOT IN'
104+
$isProductTypeIn ? 'IN' : 'NOT IN'
107105
),
108106
$productTypeIds
109107
);

0 commit comments

Comments
 (0)