1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Move formatphonenumber.php to proper dir and rename.

* fix some coding styles
* Add contributor
This commit is contained in:
Loic Blot
2014-11-27 14:04:25 +00:00
parent 2211252004
commit 5f0263f71e
4 changed files with 21 additions and 18 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ use \OCA\OcSms\Controller\SmsController;
use \OCA\OcSms\Db\Sms;
use \OCA\OcSms\Db\SmsMapper;
use \OCA\OcSms\AppInfo\FormatPhoneNumber;
use \OCA\OcSms\Lib\PhoneNumberFormatter;
class OcSmsApp extends App {
@@ -143,7 +143,7 @@ class OcSmsApp extends App {
*/
private function pushPhoneNumberToCache($rawPhone, $contactName) {
$phoneNb = FormatPhoneNumber::formatPhoneNumber($rawPhone);
$phoneNb = PhoneNumberFormatter::format($rawPhone);
self::$contacts[$phoneNb] = $contactName;
// Inverted contacts
if (!isset(self::$contactsInverted[$contactName])) {