Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
cf05a84
fix for Wrong price amount on product page #11717
HirokazuNishi May 26, 2018
67a2038
Fixed line exceeds issue.
gelanivishal May 28, 2018
12f2e93
MAGETWO-89407: [2.3] PayPal Payments Pro settings gets from wrong store
OlgaVasyltsun May 29, 2018
d1446bf
MAGETWO-89407: [2.3] PayPal Payments Pro settings gets from wrong store
OlgaVasyltsun May 29, 2018
769352f
MAGETWO-92134: [2.2.x] Payment Failed Email is not generated
ameysar May 29, 2018
8559900
MAGETWO-92134: [2.2.x] Payment Failed Email is not generated
ameysar May 29, 2018
67ad165
DocBloc typo fixes
rogyar May 29, 2018
3cc1dc4
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-92134
ameysar May 29, 2018
6f4e81b
MAGETWO-90762: [2.3.0] Placing an order takes more time then usual
svitja May 30, 2018
15c920e
MAGETWO-90349: Template file 'header.html' is not found.
ameysar May 30, 2018
107aa22
MAGETWO-66217: Product Url key value comes from product name on store…
zakdma May 30, 2018
e71aa35
MAGETWO-90349: Template file 'header.html' is not found.
ameysar May 30, 2018
ea9c0f1
MAGETWO-90762: [2.3.0] Placing an order takes more time then usual
svitja May 30, 2018
bdc6d47
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-92134
ameysar May 30, 2018
6cc997e
[fix] PHPDoc and type hints
May 28, 2018
026da34
MAGETWO-89991: Change default AVS and CVV codes for Signifyd
zakdma May 30, 2018
aa41f77
MAGETWO-92134: [2.2.x] Payment Failed Email is not generated
ameysar May 30, 2018
401c7d1
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-90349
ameysar May 30, 2018
fdd33f7
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-90762
svitja May 30, 2018
556bad2
MAGETWO-89407: [2.3] PayPal Payments Pro settings gets from wrong store
OlgaVasyltsun May 30, 2018
b8fe9e8
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-66217
zakdma May 30, 2018
ef8e84d
Merge branch '2.3-develop' into MAGETWO-89991
zakdma May 30, 2018
e7a296f
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-90349
ameysar May 31, 2018
6a0e8cb
MAGETWO-66217: Product Url key value comes from product name on store…
zakdma May 31, 2018
483c858
MAGETWO-91104: [2.3.0] Using a multiselect product attribute with a c…
svitja May 31, 2018
69e6087
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-91104
svitja May 31, 2018
0e09c78
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-90762
OlgaVasyltsun May 31, 2018
f38d3e4
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-90349
ameysar May 31, 2018
f8355ae
MAGETWO-64173: Browser back button issue (Checkout pages)
OlgaVasyltsun May 31, 2018
c93a64e
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-92134
ameysar May 31, 2018
5542c81
MAGETWO-92134: [2.2.x] Payment Failed Email is not generated
ameysar May 31, 2018
3ac0add
MAGETWO-91104: [2.3.0] Using a multiselect product attribute with a c…
svitja May 31, 2018
9e4cc7b
[forwardpport] fixes in config module #15511
Jun 1, 2018
075a64c
MAGETWO-90349: Template file 'header.html' is not found.
ameysar Jun 1, 2018
0413b68
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-90349
ameysar Jun 1, 2018
9b1b80e
MAGETWO-90349: Template file 'header.html' is not found.
ameysar Jun 1, 2018
45da022
MAGETWO-91807: Error when adding a product to the cart in the backend…
svitja Jun 1, 2018
c5eab1c
MAGETWO-90349: Template file 'header.html' is not found.
zakdma Jun 1, 2018
ec83580
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-90349
zakdma Jun 1, 2018
662a316
MAGETWO-90349: Template file 'header.html' is not found.
zakdma Jun 1, 2018
760e889
MAGETWO-92247: Verify that product price is displayed on additional s…
dthampy May 27, 2018
d2e7668
MAGETWO-92247: Verify that product price is displayed on additional s…
cpartica Jun 2, 2018
3c0946d
MAGETWO-91436: Custom Options are corruputed when saving product to a…
dthampy Jun 1, 2018
f6a82ff
ENGCOM-1782: [Forwardport] Fixes in config module #15649
magento-engcom-team Jun 2, 2018
ff02c91
Add missing property, fixed incorrect proprty type, add missing throw…
dmytro-ch Jun 2, 2018
f0eb540
Fixed typos:
dverkade Jun 2, 2018
0b4a3d0
ENGCOM-1783: Fix minor issues in ui export converter classes #15692
magento-engcom-team Jun 3, 2018
31cbafe
MAGETWO-91807: Error when adding a product to the cart in the backend…
svitja Jun 4, 2018
1a55c1a
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-91807
svitja Jun 4, 2018
6bc77cb
art: Fix typo in method name
avoelkl May 25, 2018
c494d73
Revert ":pencil2: Fix typos in Multishipping and User module"
avoelkl May 25, 2018
6e2dea6
bug: Add phpdoc return type
avoelkl May 25, 2018
9850d9c
Remove unneeded white space
dmanners May 25, 2018
365bfb4
hitesh-wagento May 23, 2018
7924b0b
ENGCOM-1810: [Forwardport] Resolved : UI Component listing action col…
magento-engcom-team Jun 4, 2018
868c077
Prevent multiple add-to-cart initializations in case of ajax loaded c…
vovayatsyuk May 21, 2018
10955cd
ENGCOM-1818: [Forwardport] Prevent multiple add-to-cart initializatio…
magento-engcom-team Jun 4, 2018
486f7a7
Error 500 in Module Manager
flancer64 May 15, 2018
1b5d1d1
Fixed according to review
May 21, 2018
c2765a7
Update AbstractMultishipping.php
VladimirZaets Jun 4, 2018
c36fdc2
ENGCOM-1811: [Forwardport] Fix method name (typo) #15745
magento-engcom-team Jun 4, 2018
bf2e3c5
ENGCOM-1827: [Forwardport] Docblock typo fixes #15572
magento-engcom-team Jun 4, 2018
a4e9c9b
ENGCOM-1829: Fixes in catalog component blocks [2.3-develop] #15558
magento-engcom-team Jun 4, 2018
52b3100
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-89991
ameysar Jun 4, 2018
27e9d2f
fix: support multiple minisearch widget instances
May 17, 2018
9e03568
ENGCOM-1845: [Forwardport] fix: support multiple minisearch widget in…
magento-engcom-team Jun 5, 2018
c825e04
ENGCOM-1851: [Forwardport] [Resolved : Styling <select> by changing l…
magento-engcom-team Jun 5, 2018
f3066c6
ENGCOM-1857: [Forwardport] Error 500 in Module Manager #15755
magento-engcom-team Jun 5, 2018
279655a
MAGETWO-90787: Swagger does not render correctly for many POST/PUT op…
zakdma Jun 5, 2018
8770b41
Merge remote-tracking branch 'origin/MAGETWO-89407' into 2.3-develop-…
zakdma Jun 5, 2018
3c60f87
Merge remote-tracking branch 'origin/MAGETWO-89991' into 2.3-develop-…
zakdma Jun 5, 2018
43b3714
Merge remote-tracking branch 'origin/MAGETWO-90762' into 2.3-develop-…
zakdma Jun 5, 2018
d128d03
Merge remote-tracking branch 'origin/MAGETWO-90787' into 2.3-develop-…
zakdma Jun 5, 2018
009ddf5
Merge remote-tracking branch 'origin/MAGETWO-91104' into 2.3-develop-…
zakdma Jun 5, 2018
1825c06
Merge remote-tracking branch 'origin/MAGETWO-91807' into 2.3-develop-…
zakdma Jun 5, 2018
a393505
Merge remote-tracking branch 'origin/MAGETWO-92134' into 2.3-develop-…
zakdma Jun 5, 2018
78e0d13
Merge remote-tracking branch 'origin/MAGETWO-66217' into 2.3-develop-…
zakdma Jun 5, 2018
745d99d
Merge remote-tracking branch 'origin/MAGETWO-90349' into 2.3-develop-…
zakdma Jun 5, 2018
71bfdc6
Merge remote-tracking branch 'origin/MAGETWO-64173' into 2.3-develop-…
zakdma Jun 5, 2018
843fa11
ENGCOM-1689: fix for Wrong price amount on product page #11717 #15540
magento-engcom-team Jun 5, 2018
110ee75
Format the javascript code
yogeshsuhagiya May 3, 2018
3994790
Refactor JS code and added JS component file
yogeshsuhagiya May 4, 2018
8281b38
Fixed issue of line feed at end of the file
yogeshsuhagiya May 4, 2018
e7dc28f
ENGCOM-1871: [Forwardport] Format the javascript code #10 #15833
magento-engcom-team Jun 5, 2018
4bb4155
ENGCOM-1873: Fixed a couple of typos #15695
magento-engcom-team Jun 5, 2018
ea8c241
Fixed return type hinting in DocBlocks
rogyar Jun 5, 2018
539039c
ENGCOM-1877: Fixed return type hinting in DocBlocks for Wishlist modu…
magento-engcom-team Jun 5, 2018
5aaf95b
merge magento/2.3-develop into magento-honey-badgers/MAGETWO-91436-Cu…
Jun 5, 2018
2136fca
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-9143…
cpartica Jun 5, 2018
92392b5
MAGETWO-91436: Custom Options are corruputed when saving product to a…
cpartica Jun 5, 2018
5565a24
Merge pull request #2650 from magento-honey-badgers/MAGETWO-91436-Cus…
cpartica Jun 6, 2018
e6e0868
Merge remote-tracking branch 'origin/2.3-develop' into 2.3-develop-pr21
zakdma Jun 6, 2018
2e6669e
ENGCOM-1877: Fixed return type hinting in DocBlocks for Wishlist modu…
Jun 6, 2018
bd29d28
ENGCOM-1873: Fixed a couple of typos #15695
Jun 6, 2018
c5f9fb4
ENGCOM-1871: [Forwardport] Format the javascript code #10 #15833
Jun 6, 2018
7291e70
ENGCOM-1857: [Forwardport] Error 500 in Module Manager #15755
Jun 6, 2018
bf5f004
ENGCOM-1851: [Forwardport] [Resolved : Styling <select> by changing l…
Jun 6, 2018
cfa7196
ENGCOM-1845: [Forwardport] fix: support multiple minisearch widget in…
Jun 6, 2018
27807fd
ENGCOM-1829: Fixes in catalog component blocks [2.3-develop] #15558
Jun 6, 2018
65d27f5
ENGCOM-1827: [Forwardport] Docblock typo fixes #15572
Jun 6, 2018
50ff419
ENGCOM-1818: [Forwardport] Prevent multiple add-to-cart initializatio…
Jun 6, 2018
c5f43cf
ENGCOM-1811: [Forwardport] Fix method name (typo) #15745
Jun 6, 2018
b821f30
ENGCOM-1810: [Forwardport] Resolved : UI Component listing action col…
Jun 6, 2018
eabf3cb
ENGCOM-1783: Fix minor issues in ui export converter classes #15692
Jun 6, 2018
7e1b294
ENGCOM-1782: [Forwardport] Fixes in config module #15649
Jun 6, 2018
d3cf6ff
ENGCOM-1689: fix for Wrong price amount on product page #11717 #15540
Jun 6, 2018
8f9f374
ENGCOM-1810: [Forwardport] Resolved : UI Component listing action col…
Jun 6, 2018
c62d922
:arrows_clockwise: [EngCom] Public Pull Requests - 2.3-develop
Jun 6, 2018
0687df0
Merge remote-tracking branch 'origin/2.3-develop' into 2.3-develop-pr21
zakdma Jun 6, 2018
d3a849c
Merge pull request #2656 from magento-tsg/2.3-develop-pr21
Jun 6, 2018
21ce9fb
hitesh-wagento Jun 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 57 additions & 18 deletions app/code/Magento/Authorizenet/Model/Directpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
*/
namespace Magento\Authorizenet\Model;

use Magento\Framework\HTTP\ZendClientFactory;
use Magento\Framework\App\ObjectManager;
use Magento\Payment\Model\Method\ConfigInterface;
use Magento\Payment\Model\Method\TransparentInterface;
use Magento\Sales\Model\Order\Email\Sender\OrderSender;

/**
* Authorize.net DirectPost payment method model.
Expand Down Expand Up @@ -102,7 +101,7 @@ class Directpost extends \Magento\Authorizenet\Model\Authorizenet implements Tra
protected $response;

/**
* @var OrderSender
* @var \Magento\Sales\Model\Order\Email\Sender\OrderSender
*/
protected $orderSender;

Expand All @@ -123,6 +122,16 @@ class Directpost extends \Magento\Authorizenet\Model\Authorizenet implements Tra
*/
private $psrLogger;

/**
* @var \Magento\Sales\Api\PaymentFailuresInterface
*/
private $paymentFailures;

/**
* @var \Magento\Sales\Model\Order
*/
private $order;

/**
* @param \Magento\Framework\Model\Context $context
* @param \Magento\Framework\Registry $registry
Expand All @@ -134,18 +143,19 @@ class Directpost extends \Magento\Authorizenet\Model\Authorizenet implements Tra
* @param \Magento\Framework\Module\ModuleListInterface $moduleList
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
* @param \Magento\Authorizenet\Helper\Data $dataHelper
* @param Directpost\Request\Factory $requestFactory
* @param Directpost\Response\Factory $responseFactory
* @param \Magento\Authorizenet\Model\Directpost\Request\Factory $requestFactory
* @param \Magento\Authorizenet\Model\Directpost\Response\Factory $responseFactory
* @param \Magento\Authorizenet\Model\TransactionService $transactionService
* @param \Magento\Framework\HTTP\ZendClientFactory $httpClientFactory
* @param \Magento\Sales\Model\OrderFactory $orderFactory
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Quote\Api\CartRepositoryInterface $quoteRepository
* @param OrderSender $orderSender
* @param \Magento\Sales\Model\Order\Email\Sender\OrderSender $orderSender
* @param \Magento\Sales\Api\TransactionRepositoryInterface $transactionRepository
* @param \Magento\Framework\Model\ResourceModel\AbstractResource $resource
* @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
* @param array $data
* @param \Magento\Sales\Api\PaymentFailuresInterface|null $paymentFailures
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
Expand All @@ -161,16 +171,17 @@ public function __construct(
\Magento\Authorizenet\Helper\Data $dataHelper,
\Magento\Authorizenet\Model\Directpost\Request\Factory $requestFactory,
\Magento\Authorizenet\Model\Directpost\Response\Factory $responseFactory,
TransactionService $transactionService,
ZendClientFactory $httpClientFactory,
\Magento\Authorizenet\Model\TransactionService $transactionService,
\Magento\Framework\HTTP\ZendClientFactory $httpClientFactory,
\Magento\Sales\Model\OrderFactory $orderFactory,
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Quote\Api\CartRepositoryInterface $quoteRepository,
\Magento\Sales\Model\Order\Email\Sender\OrderSender $orderSender,
\Magento\Sales\Api\TransactionRepositoryInterface $transactionRepository,
\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
array $data = []
array $data = [],
\Magento\Sales\Api\PaymentFailuresInterface $paymentFailures = null
) {
$this->orderFactory = $orderFactory;
$this->storeManager = $storeManager;
Expand All @@ -179,6 +190,8 @@ public function __construct(
$this->orderSender = $orderSender;
$this->transactionRepository = $transactionRepository;
$this->_code = static::METHOD_CODE;
$this->paymentFailures = $paymentFailures ? : ObjectManager::getInstance()
->get(\Magento\Sales\Api\PaymentFailuresInterface::class);

parent::__construct(
$context,
Expand Down Expand Up @@ -561,13 +574,10 @@ public function process(array $responseData)
$this->validateResponse();

$response = $this->getResponse();
//operate with order
$orderIncrementId = $response->getXInvoiceNum();
$responseText = $this->dataHelper->wrapGatewayError($response->getXResponseReasonText());
$isError = false;
if ($orderIncrementId) {
/* @var $order \Magento\Sales\Model\Order */
$order = $this->orderFactory->create()->loadByIncrementId($orderIncrementId);
if ($this->getOrderIncrementId()) {
$order = $this->getOrderFromResponse();
//check payment method
$payment = $order->getPayment();
if (!$payment || $payment->getMethod() != $this->getCode()) {
Expand Down Expand Up @@ -632,9 +642,10 @@ public function checkResponseCode()
return true;
case self::RESPONSE_CODE_DECLINED:
case self::RESPONSE_CODE_ERROR:
throw new \Magento\Framework\Exception\LocalizedException(
$this->dataHelper->wrapGatewayError($this->getResponse()->getXResponseReasonText())
);
$errorMessage = $this->dataHelper->wrapGatewayError($this->getResponse()->getXResponseReasonText());
$order = $this->getOrderFromResponse();
$this->paymentFailures->handle((int)$order->getQuoteId(), $errorMessage);
throw new \Magento\Framework\Exception\LocalizedException($errorMessage);
default:
throw new \Magento\Framework\Exception\LocalizedException(
__('There was a payment authorization error.')
Expand Down Expand Up @@ -988,12 +999,40 @@ protected function getTransactionResponse($transactionId)
private function getPsrLogger()
{
if (null === $this->psrLogger) {
$this->psrLogger = \Magento\Framework\App\ObjectManager::getInstance()
$this->psrLogger = ObjectManager::getInstance()
->get(\Psr\Log\LoggerInterface::class);
}
return $this->psrLogger;
}

/**
* Fetch order by increment id from response.
*
* @return \Magento\Sales\Model\Order
*/
private function getOrderFromResponse(): \Magento\Sales\Model\Order
{
if (!$this->order) {
$this->order = $this->orderFactory->create();

if ($incrementId = $this->getOrderIncrementId()) {
$this->order = $this->order->loadByIncrementId($incrementId);
}
}

return $this->order;
}

/**
* Fetch order increment id from response.
*
* @return string
*/
private function getOrderIncrementId(): string
{
return $this->getResponse()->getXInvoiceNum();
}

/**
* Checks if filter action is Report Only. Transactions that trigger this filter are processed as normal,
* but are also reported in the Merchant Interface as triggering this filter.
Expand Down
51 changes: 44 additions & 7 deletions app/code/Magento/Authorizenet/Test/Unit/Model/DirectpostTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
namespace Magento\Authorizenet\Test\Unit\Model;

use Magento\Sales\Api\PaymentFailuresInterface;
use Magento\Framework\Simplexml\Element;
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
use Magento\Authorizenet\Model\Directpost;
Expand Down Expand Up @@ -74,6 +75,14 @@ class DirectpostTest extends \PHPUnit\Framework\TestCase
*/
protected $requestFactory;

/**
* @var PaymentFailuresInterface|\PHPUnit_Framework_MockObject_MockObject
*/
private $paymentFailures;

/**
* @inheritdoc
*/
protected function setUp()
{
$this->scopeConfigMock = $this->getMockBuilder(\Magento\Framework\App\Config\ScopeConfigInterface::class)
Expand Down Expand Up @@ -104,6 +113,12 @@ protected function setUp()
->setMethods(['getTransactionDetails'])
->getMock();

$this->paymentFailures = $this->getMockBuilder(
PaymentFailuresInterface::class
)
->disableOriginalConstructor()
->getMock();

$this->requestFactory = $this->getRequestFactoryMock();
$httpClientFactoryMock = $this->getHttpClientFactoryMock();

Expand All @@ -117,7 +132,8 @@ protected function setUp()
'responseFactory' => $this->responseFactoryMock,
'transactionRepository' => $this->transactionRepositoryMock,
'transactionService' => $this->transactionServiceMock,
'httpClientFactory' => $httpClientFactoryMock
'httpClientFactory' => $httpClientFactoryMock,
'paymentFailures' => $this->paymentFailures,
]
);
}
Expand Down Expand Up @@ -313,12 +329,16 @@ public function checkResponseCodeSuccessDataProvider()
}

/**
* @param bool $responseCode
* Checks response failures behaviour.
*
* @param int $responseCode
* @param int $failuresHandlerCalls
* @return void
*
* @expectedException \Magento\Framework\Exception\LocalizedException
* @dataProvider checkResponseCodeFailureDataProvider
*/
public function testCheckResponseCodeFailure($responseCode)
public function testCheckResponseCodeFailure(int $responseCode, int $failuresHandlerCalls): void
{
$reasonText = 'reason text';

Expand All @@ -333,18 +353,35 @@ public function testCheckResponseCodeFailure($responseCode)
->with($reasonText)
->willReturn(__('Gateway error: %1', $reasonText));

$orderMock = $this->getMockBuilder(Order::class)
->disableOriginalConstructor()
->getMock();

$orderMock->expects($this->exactly($failuresHandlerCalls))
->method('getQuoteId')
->willReturn(1);

$this->paymentFailures->expects($this->exactly($failuresHandlerCalls))
->method('handle')
->with(1);

$reflection = new \ReflectionClass($this->directpost);
$order = $reflection->getProperty('order');
$order->setAccessible(true);
$order->setValue($this->directpost, $orderMock);

$this->directpost->checkResponseCode();
}

/**
* @return array
*/
public function checkResponseCodeFailureDataProvider()
public function checkResponseCodeFailureDataProvider(): array
{
return [
['responseCode' => Directpost::RESPONSE_CODE_DECLINED],
['responseCode' => Directpost::RESPONSE_CODE_ERROR],
['responseCode' => 999999]
['responseCode' => Directpost::RESPONSE_CODE_DECLINED, 1],
['responseCode' => Directpost::RESPONSE_CODE_ERROR, 1],
['responseCode' => 999999, 0],
];
}

Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Braintree/Model/AvsEmsCodeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AvsEmsCodeMapper implements PaymentVerificationInterface
*
* @var string
*/
private static $unavailableCode = 'U';
private static $unavailableCode = '';

/**
* List of mapping AVS codes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ public function testGetCodeWithException()
public function getCodeDataProvider()
{
return [
['avsZip' => null, 'avsStreet' => null, 'expected' => 'U'],
['avsZip' => null, 'avsStreet' => 'M', 'expected' => 'U'],
['avsZip' => 'M', 'avsStreet' => null, 'expected' => 'U'],
['avsZip' => 'M', 'avsStreet' => 'Unknown', 'expected' => 'U'],
['avsZip' => 'I', 'avsStreet' => 'A', 'expected' => 'U'],
['avsZip' => null, 'avsStreet' => null, 'expected' => ''],
['avsZip' => null, 'avsStreet' => 'M', 'expected' => ''],
['avsZip' => 'M', 'avsStreet' => null, 'expected' => ''],
['avsZip' => 'M', 'avsStreet' => 'Unknown', 'expected' => ''],
['avsZip' => 'I', 'avsStreet' => 'A', 'expected' => ''],
['avsZip' => 'M', 'avsStreet' => 'M', 'expected' => 'Y'],
['avsZip' => 'N', 'avsStreet' => 'M', 'expected' => 'A'],
['avsZip' => 'M', 'avsStreet' => 'N', 'expected' => 'Z'],
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Adminhtml/Category/Tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public function getBreadcrumbsJavascript($path, $javascriptVarName)
*
* @param Node|array $node
* @param int $level
* @return string
* @return array
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @SuppressWarnings(PHPMD.NPathComplexity)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function (node, e) {
*
* @param \Magento\Framework\Data\Tree\Node|array $node
* @param int $level
* @return string
* @return array
*/
protected function _getNodeJson($node, $level = 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Element extends \Magento\Backend\Block\Widget\Form\Renderer\Fieldset\Eleme
/**
* Retrieve data object related with form
*
* @return \Magento\Catalog\Model\Product || \Magento\Catalog\Model\Category
* @return \Magento\Catalog\Model\Product|\Magento\Catalog\Model\Category
*/
public function getDataObject()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ protected function _prepareColumns()
'type' => 'options',
'options' => ['1' => __('Yes'), '0' => __('No')],
'align' => 'center'
],
'is_user_defined'
]
);

$this->_eventManager->dispatch('product_attribute_grid_build', ['grid' => $this]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function getSelectorOptions()
*
* @param string $labelPart
* @param int $templateId
* @return \Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection
* @return array
*/
public function getSuggestedAttributes($labelPart, $templateId = null)
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Adminhtml/Rss/Grid/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function isRssAllowed()
}

/**
* @return string
* @return array
*/
protected function getLinkParams()
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Category/Rss/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getLabel()
}

/**
* @return string
* @return array
*/
protected function getLinkParams()
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Product/AbstractProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function getAddToCompareUrl()
* Gets minimal sales quantity
*
* @param \Magento\Catalog\Model\Product $product
* @return int|null
* @return float|null
*/
public function getMinimalQty($product)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function getPrice($price, $includingTax = null)
* Returns price converted to current currency rate
*
* @param float $price
* @return float
* @return float|string
*/
public function getCurrencyPrice($price)
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Block/Rss/Product/Special.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ protected function _construct()
}

/**
* @return string
* @return array
*/
public function getRssData()
{
Expand Down
Loading