| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Validations {
|
||
| 6 | |||
| 7 | /** |
||
| 8 | * Checks if the provided value is a DNI. |
||
| 9 | * @param string $value |
||
| 10 | * @return boolean |
||
| 11 | */ |
||
| 12 | public static function isDni($value) {
|
||
| 13 | return is_numeric($value) && (strlen($value) == 8); |
||
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Checks if the provided value is a RUC. |
||
| 18 | * @param string $value |
||
| 19 | * @return boolean |
||
| 20 | */ |
||
| 21 | public static function isRuc($value) {
|
||
| 22 | return is_numeric($value) && (strlen($value) == 11); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Checks if a value exist in an array. |
||
| 27 | * @param mixed $needle The searched value. |
||
| 28 | * @param array $haystack The array. |
||
| 29 | * @param boolean $strict |
||
| 30 | * If the third parameter *strict* is set to **false** |
||
| 31 | * then the **isIn** function wont check the |
||
| 32 | * *needle* in the *haystack*. |
||
| 33 | * types of the |
||
| 34 | |||
| 35 | * @return type |
||
|
|
|||
| 36 | */ |
||
| 37 | public static function isIn($needle, array $haystack, $strict = true) {
|
||
| 39 | } |
||
| 40 | |||
| 41 | public static function isArray($var) {
|
||
| 43 | } |
||
| 44 | |||
| 46 |
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