Skip to content

Commit 49bce41

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-34653' into MAGETWO-34653
2 parents c7221d0 + 09c29c1 commit 49bce41

File tree

19 files changed

+142
-55
lines changed

19 files changed

+142
-55
lines changed

app/code/Magento/MediaStorage/Model/File/Storage/Response.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ class Response extends Http implements \Magento\Framework\App\Response\FileInter
2929
* @param CookieManagerInterface $cookieManager
3030
* @param CookieMetadataFactory $cookieMetadataFactory
3131
* @param \Magento\Framework\App\Http\Context $context
32+
* @param \Magento\Framework\Stdlib\DateTime $dateTime
3233
* @param \Magento\Framework\File\Transfer\Adapter\Http $transferAdapter
3334
*/
3435
public function __construct(
3536
CookieManagerInterface $cookieManager,
3637
CookieMetadataFactory $cookieMetadataFactory,
3738
\Magento\Framework\App\Http\Context $context,
39+
\Magento\Framework\Stdlib\DateTime $dateTime,
3840
\Magento\Framework\File\Transfer\Adapter\Http $transferAdapter
3941
) {
40-
parent::__construct($cookieManager, $cookieMetadataFactory, $context);
42+
parent::__construct($cookieManager, $cookieMetadataFactory, $context, $dateTime);
4143
$this->_transferAdapter = $transferAdapter;
4244
}
4345

app/code/Magento/Payment/Model/InfoInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public function decrypt($data);
3030
/**
3131
* Set Additional information about payment into Payment model
3232
*
33-
* @param mixed $key
34-
* @param mixed|null $value
33+
* @param string $key
34+
* @param string|null $value
3535
* @return mixed
3636
*/
3737
public function setAdditionalInformation($key, $value = null);
@@ -47,16 +47,16 @@ public function hasAdditionalInformation($key = null);
4747
/**
4848
* Unsetter for entire additional_information value or one of its element by key
4949
*
50-
* @param string $key
50+
* @param string|null $key
5151
* @return $this
5252
*/
5353
public function unsAdditionalInformation($key = null);
5454

5555
/**
5656
* Getter for entire additional_information value or one of its element by key
5757
*
58-
* @param string $key
59-
* @return array|null|mixed
58+
* @param string|null $key
59+
* @return mixed
6060
*/
6161
public function getAdditionalInformation($key = null);
6262

app/code/Magento/Payment/Test/Unit/Block/Info/CcTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ public function testGetCcExpDate($ccExpMonth, $ccExpYear)
135135
$paymentInfo
136136
->expects($this->any())
137137
->method('getCcExpMonth')
138-
->will($this->returnValue($ccExpMonth));
138+
->willReturn($ccExpMonth);
139139
$paymentInfo
140140
->expects($this->any())
141141
->method('getCcExpYear')
142-
->will($this->returnValue($ccExpYear));
142+
->willReturn($ccExpYear);
143143
$this->model->setData('info', $paymentInfo);
144144

145145
$this->localeDate

app/code/Magento/Sales/Block/Order/PrintOrder/Creditmemo.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ public function getTotalsHtml($creditmemo)
127127
}
128128

129129
/**
130+
* Formats order address to html, pdf and etc. formats
131+
*
130132
* @param \Magento\Sales\Model\Order\Address $address
131133
* @param string $format
132134
* @return null|string

app/code/Magento/Sales/Block/Order/PrintOrder/Invoice.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ public function getInvoiceTotalsHtml($invoice)
127127
}
128128

129129
/**
130+
* Formats order address to html, pdf and etc. formats
131+
*
130132
* @param \Magento\Sales\Model\Order\Address $address
131133
* @param string $format
132134
* @return null|string

app/code/Magento/Sales/Model/Order/Address/Renderer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Magento\Sales\Model\Order\Address;
1212

1313
/**
14-
* Class Renderer
14+
* Class Renderer using for formatting of order address
1515
*/
1616
class Renderer
1717
{
@@ -48,7 +48,8 @@ public function __construct(
4848
*/
4949
public function format(Address $address, $type)
5050
{
51-
if (!($formatType = $this->addressConfig->getFormatByCode($type)) || !$formatType->getRenderer()) {
51+
$formatType = $this->addressConfig->getFormatByCode($type);
52+
if (!$formatType || !$formatType->getRenderer()) {
5253
return null;
5354
}
5455
$this->eventManager->dispatch('customer_address_format', ['type' => $formatType, 'address' => $address]);

app/code/Magento/Sales/Model/Order/Pdf/AbstractPdf.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ protected function insertOrder(&$page, $obj, $putOrderId = true)
404404
$order->getCreatedAt(),
405405
true
406406
),
407-
\IntlDateFormatter::MEDIUM, false
407+
\IntlDateFormatter::MEDIUM,
408+
false
408409
),
409410
35,
410411
$top -= 15,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Magento\Sales\Model\AbstractModel;
99

1010
/**
11-
* Class EntityMetadata
11+
* Class EntityMetadata represents a list of entity fields that are applicable for persistence operations
1212
*/
1313
class EntityMetadata
1414
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Magento\Framework\Model\AbstractModel;
99

1010
/**
11-
* Class EntitySnapshot
11+
* Class EntitySnapshot register snapshot of entity data, for tracking changes
1212
*/
1313
class EntitySnapshot
1414
{

app/code/Magento/Sales/view/adminhtml/templates/order/view/info.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
<?php
1313
$orderAdminDate = $block->formatDate(
1414
$block->getOrderAdminDate($_order->getCreatedAt()),
15-
\IntlDateFormatter::MEDIUM, true
15+
\IntlDateFormatter::MEDIUM,
16+
true
1617
);
1718
$orderStoreDate = $block->formatDate(
1819
$block->getCreatedAtStoreDate($_order->getStore(), $_order->getCreatedAt()),

0 commit comments

Comments
 (0)