1
|
|
|
<?php |
2
|
|
|
//------------------------------------------------------------------------- |
3
|
|
|
// OVIDENTIA http://www.ovidentia.org |
4
|
|
|
// Ovidentia is free software; you can redistribute it and/or modify |
5
|
|
|
// it under the terms of the GNU General Public License as published by |
6
|
|
|
// the Free Software Foundation; either version 2, or (at your option) |
7
|
|
|
// any later version. |
8
|
|
|
// |
9
|
|
|
// This program is distributed in the hope that it will be useful, but |
10
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of |
11
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
12
|
|
|
// See the GNU General Public License for more details. |
13
|
|
|
// |
14
|
|
|
// You should have received a copy of the GNU General Public License |
15
|
|
|
// along with this program; if not, write to the Free Software |
16
|
|
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
17
|
|
|
// USA. |
18
|
|
|
//------------------------------------------------------------------------- |
19
|
|
|
/** |
20
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) |
21
|
|
|
* @copyright Copyright (c) 2012 by CANTICO ({@link http://www.cantico.fr}) |
22
|
|
|
*/ |
23
|
|
|
require_once dirname(__FILE__).'/vendor/autoload.php'; |
24
|
|
|
|
25
|
|
|
|
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @url https://github.com/giggsey/libphonenumber-for-php |
29
|
|
|
*/ |
30
|
|
|
class Func_PhoneNumber extends bab_functionality |
|
|
|
|
31
|
|
|
{ |
32
|
|
|
public function getDescription() |
33
|
|
|
{ |
34
|
|
|
return 'Phone number manipulation'; |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* |
40
|
|
|
* @return string |
41
|
|
|
*/ |
42
|
|
|
public function getDefaultFormat() |
43
|
|
|
{ |
44
|
|
|
$defaultFormat = bab_Registry::get('/libphonenumber/defaultFormat', \libphonenumber\PhoneNumberFormat::NATIONAL); |
|
|
|
|
45
|
|
|
return $defaultFormat; |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @return \libphonenumber\PhoneNumberUtil |
51
|
|
|
*/ |
52
|
|
|
public function PhoneNumberUtil() |
53
|
|
|
{ |
54
|
|
|
return \libphonenumber\PhoneNumberUtil::getInstance(); |
|
|
|
|
55
|
|
|
} |
56
|
|
|
} |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths