Skip to content

Commit

Permalink
ENGCOM-4356: Removed unused else block and corrected return types #21405
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Feb 28, 2019
2 parents 2ec994e + a0bba02 commit cd75c92
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/code/Magento/Fedex/Model/Carrier.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ public function setRequest(RateRequest $request)

if ($request->getDestPostcode()) {
$r->setDestPostal($request->getDestPostcode());
} else {
}

if ($request->getDestCity()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function getMessage()
/**
* Retrieve save url
*
* @return array
* @return string
* @codeCoverageIgnore
*/
public function getSaveUrl()
Expand Down
7 changes: 6 additions & 1 deletion app/code/Magento/GiftMessage/Block/Cart/GiftOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\GiftMessage\Block\Cart;

use Magento\Backend\Block\Template\Context;
use Magento\Framework\Json\Encoder;
use Magento\GiftMessage\Model\CompositeConfigProvider;

/**
* Gift options cart block.
*
* @api
* @since 100.0.2
*/
Expand Down Expand Up @@ -63,6 +66,8 @@ public function __construct(
}

/**
* Retrieve encoded js layout.
*
* @return string
*/
public function getJsLayout()
Expand All @@ -76,7 +81,7 @@ public function getJsLayout()
/**
* Retrieve gift message configuration
*
* @return array
* @return string
*/
public function getGiftOptionsConfigJson()
{
Expand Down
8 changes: 7 additions & 1 deletion app/code/Magento/GiftMessage/Model/Type/Plugin/Onepage.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\GiftMessage\Model\Type\Plugin;

/**
* Add gift message to quote plugin.
*/
class Onepage
{
/**
Expand All @@ -30,9 +34,11 @@ public function __construct(
}

/**
* Add gift message ot quote.
*
* @param \Magento\Checkout\Model\Type\Onepage $subject
* @param array $result
* @return $this
* @return array
*/
public function afterSaveShippingMethod(
\Magento\Checkout\Model\Type\Onepage $subject,
Expand Down

0 comments on commit cd75c92

Please sign in to comment.