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:
authormattab <matthieu.aubry@gmail.com>2015-09-14 08:22:13 +0300
committermattab <matthieu.aubry@gmail.com>2015-09-14 08:22:13 +0300
commit5bfb7035f795b97a84a2c6333d0c4eaa5d328f3c (patch)
treed2359a9e83b1197a7b67992c51908b2f77784928 /plugins/MobileMessaging
parent39e34edfc475a8a91a7c27a96682d7a06b3c5441 (diff)
Remove un-needed factory()
class already extends BaseFactory with class name & error msg overrides
Diffstat (limited to 'plugins/MobileMessaging')
-rw-r--r--plugins/MobileMessaging/SMSProvider.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/plugins/MobileMessaging/SMSProvider.php b/plugins/MobileMessaging/SMSProvider.php
index 5003f0030a..1711bfafed 100644
--- a/plugins/MobileMessaging/SMSProvider.php
+++ b/plugins/MobileMessaging/SMSProvider.php
@@ -68,29 +68,6 @@ abstract class SMSProvider extends BaseFactory
}
/**
- * Return the SMSProvider associated to the provider name $providerName
- *
- * @throws Exception If the provider is unknown
- * @param string $providerName
- * @return \Piwik\Plugins\MobileMessaging\SMSProvider
- */
- public static function factory($providerName)
- {
- $className = __NAMESPACE__ . '\\SMSProvider\\' . $providerName;
-
- if (!class_exists($className)) {
- throw new Exception(
- Piwik::translate(
- 'MobileMessaging_Exception_UnknownProvider',
- array($providerName, implode(', ', array_keys(self::getAvailableSMSProviders())))
- )
- );
- }
-
- return new $className;
- }
-
- /**
* Assert whether a given String contains UCS2 characters
*
* @param string $string