Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MobileMessaging/SMSProvider/Clockwork.php')
-rw-r--r--plugins/MobileMessaging/SMSProvider/Clockwork.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/plugins/MobileMessaging/SMSProvider/Clockwork.php b/plugins/MobileMessaging/SMSProvider/Clockwork.php
index 29a153c6da..da0b07ba1e 100644
--- a/plugins/MobileMessaging/SMSProvider/Clockwork.php
+++ b/plugins/MobileMessaging/SMSProvider/Clockwork.php
@@ -6,17 +6,22 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @category Piwik_Plugins
- * @package Piwik_MobileMessaging_SMSProvider
+ * @package SMSProvider
*/
+namespace Piwik\Plugins\MobileMessaging\SMSProvider;
+
+use Exception;
use Piwik\Http;
+use Piwik\Plugins\MobileMessaging\APIException;
+use Piwik\Plugins\MobileMessaging\SMSProvider;
require_once PIWIK_INCLUDE_PATH . "/plugins/MobileMessaging/APIException.php";
/**
*
- * @package Piwik_MobileMessaging_SMSProvider
+ * @package SMSProvider
*/
-class Piwik_MobileMessaging_SMSProvider_Clockwork extends Piwik_MobileMessaging_SMSProvider
+class Clockwork extends SMSProvider
{
const SOCKET_TIMEOUT = 15;
@@ -83,12 +88,12 @@ class Piwik_MobileMessaging_SMSProvider_Clockwork extends Piwik_MobileMessaging_
$acceptLanguage = false,
$acceptInvalidSslCertificate = true
);
- } catch(Exception $e) {
+ } catch (Exception $e) {
$result = self::ERROR_STRING . " " . $e->getMessage();
}
if (strpos($result, self::ERROR_STRING) !== false) {
- throw new Piwik_MobileMessaging_APIException(
+ throw new APIException(
'Clockwork API returned the following error message : ' . $result
);
}