Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 0bdc2fd

Browse files
author
Valeriy Nayda
committed
GraphQL-202: Products: Email to a Friend
-- fix static tests
1 parent a653c2b commit 0bdc2fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/code/Magento/SendFriendGraphQl/Model/Resolver/SendEmailToFriend.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
7272
$sendFriend = $this->sendFriendFactory->create();
7373

7474
if ($sendFriend->getMaxSendsToFriend() && $sendFriend->isExceedLimit()) {
75-
throw new GraphQlInputException(__('You can\'t send messages more than %1 times an hour.',
75+
throw new GraphQlInputException(
76+
__('You can\'t send messages more than %1 times an hour.',
7677
$sendFriend->getMaxSendsToFriend()
7778
));
7879
}

app/code/Magento/SendFriendGraphQl/registration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
use Magento\Framework\Component\ComponentRegistrar;
89

0 commit comments

Comments
 (0)