From d21f4766b101c522fb83847ba93b683078f20f52 Mon Sep 17 00:00:00 2001
From: Gabriel Ranghetti <granghetti@gmail.com>
Date: Mon, 20 May 2019 09:51:29 -0300
Subject: [PATCH] Corrige Phrase para Exceptions da classe ApiKeyValidator
 (#50)

---
 Model/Config/Backend/ApiKeyValidator.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Model/Config/Backend/ApiKeyValidator.php b/Model/Config/Backend/ApiKeyValidator.php
index 197aef81..52506cea 100644
--- a/Model/Config/Backend/ApiKeyValidator.php
+++ b/Model/Config/Backend/ApiKeyValidator.php
@@ -63,7 +63,7 @@ public function beforeSave()
         if ($value) {
             if (!$apiKey) {
                 throw new \Magento\Framework\Exception\LocalizedException(
-                    sprintf(__("The api key was not set on the module basic configuration"))
+                    __("The api key was not set on the module basic configuration")
                 );
             }
 
@@ -71,7 +71,7 @@ public function beforeSave()
 
             if (isset($data['merchant']['status']) && $data['merchant']['status'] != 'active') {
                 throw new \Magento\Framework\Exception\LocalizedException(
-                    sprintf(__("The api key is invalid or the merchant is inactive"))
+                    __("The api key is invalid or the merchant is inactive")
                 );
             }
         }