Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function __invoke( |
||
21 | $attribute, |
||
22 | $value = '', |
||
23 | $parameters, |
||
24 | $validator |
||
25 | ) { |
||
26 | try { |
||
27 | $phoneNumber = Validator::parse( |
||
28 | $value, |
||
29 | strtoupper(App::getLocale()) |
||
30 | ); |
||
31 | } catch (PhoneNumberParseException $e) { |
||
32 | return false; |
||
33 | } |
||
34 | |||
35 | return $phoneNumber->isValidNumber(); |
||
36 | } |
||
38 |
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