From 9cf440930d62f5085186023250078e7168606de2 Mon Sep 17 00:00:00 2001 From: Riccardo Tempesta Date: Tue, 6 Mar 2018 15:03:01 +0100 Subject: [PATCH] Wrong variable name in API --- Model/AdapterEngine/AdminPush.php | 6 +++--- etc/module.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Model/AdapterEngine/AdminPush.php b/Model/AdapterEngine/AdminPush.php index f5e3520..728124a 100755 --- a/Model/AdapterEngine/AdminPush.php +++ b/Model/AdapterEngine/AdminPush.php @@ -57,12 +57,12 @@ public function __construct( /** * Execute engine and return true on success. Throw exception on failure. - * @param string $emailMessage + * @param string $message * @param array $params * @return bool * @throws \InvalidArgumentException */ - public function execute(string $emailMessage, array $params = []): bool + public function execute(string $message, array $params = []): bool { if (!isset($params[self::PARAM_USERS])) { throw new \InvalidArgumentException('' . __('Missing users parameters')); @@ -74,7 +74,7 @@ public function execute(string $emailMessage, array $params = []): bool /** @var AdminPushInterface $adminPush */ $adminPush = $this->adminPushInterfaceFactory->create(); - $adminPush->setMessage($emailMessage); + $adminPush->setMessage($message); $adminPush->setCreatedAt(date('Y-m-d H:i:s')); $adminPush->setUserName($user); $adminPush->setParamsJson($this->serializer->serialize($params)); diff --git a/etc/module.xml b/etc/module.xml index 1249a98..b4bdc56 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -7,7 +7,7 @@ --> - +