| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Validations {
|
||
| 14 | |||
| 15 | /** |
||
| 16 | * Checks if the provided value is a DNI. |
||
| 17 | * @param string $value |
||
| 18 | * @return boolean |
||
| 19 | */ |
||
| 20 | public static function isDni($value) {
|
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Checks if the provided value is a RUC. |
||
| 26 | * @param string $value |
||
| 27 | * @return boolean |
||
| 28 | */ |
||
| 29 | public static function isRuc($value) {
|
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Checks if a value exist in an array. |
||
| 35 | * @param mixed $needle The searched value. |
||
| 36 | * @param array $haystack The array. |
||
| 37 | * @param boolean $strict |
||
| 38 | * If the third parameter *strict* is set to **false** |
||
| 39 | * then the **isIn** function wont check the |
||
| 40 | * *needle* in the *haystack*. |
||
| 41 | * @return boolean |
||
| 42 | */ |
||
| 43 | public static function isIn($needle, array $haystack, $strict = true) {
|
||
| 45 | } |
||
| 46 | |||
| 47 | public static function isArray($var) {
|
||
| 52 |