Skip to content

Commit

Permalink
#19230: Static test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Jan 24, 2019
1 parent 5a24c41 commit 44760ff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions app/code/Magento/Sales/Model/Order/CustomerAssignment.php
Expand Up @@ -12,6 +12,9 @@
use Magento\Customer\Api\Data\CustomerInterface;
use Magento\Framework\Event\ManagerInterface;

/**
* Assign customer to order.
*/
class CustomerAssignment
{
/**
Expand Down Expand Up @@ -39,6 +42,8 @@ public function __construct(
}

/**
* Assign customer to order.
*
* @param OrderInterface $order
* @param CustomerInterface $customer
*/
Expand Down
Expand Up @@ -43,7 +43,7 @@ public function __construct(
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function execute(Observer $observer)
{
Expand Down
Expand Up @@ -14,6 +14,9 @@
use Magento\Sales\Api\Data\OrderInterface;
use Magento\Framework\Event\ObserverInterface;

/**
* Assign coupon data after order customer assign.
*/
class AssignCouponDataAfterOrderCustomerAssignObserver implements ObserverInterface
{
const EVENT_KEY_CUSTOMER = 'customer';
Expand Down
Expand Up @@ -6,6 +6,7 @@

namespace Magento\SalesRule\Model\Observer;

use Magento\Framework\Controller\Result\Redirect;
use Magento\Sales\Model\Order;
use Magento\Customer\Model\GroupManagement;
use Magento\SalesRule\Api\CouponRepositoryInterface;
Expand Down Expand Up @@ -251,8 +252,9 @@ private function makeOrderWithCouponAsGuest(Coupon $coupon) : Order

/**
* @param Order $order
* @return Redirect
*/
private function delegateOrderToBeAssigned(Order $order)
private function delegateOrderToBeAssigned(Order $order): Redirect
{
$this->delegateCustomerService->delegateNew($order->getId());
}
Expand Down

0 comments on commit 44760ff

Please sign in to comment.