| 1 | <?php |
||
| 7 | abstract class Validator |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Checks if a given url is a valid Git url. |
||
| 12 | * |
||
| 13 | * @param $url |
||
| 14 | * The URL to be checked. |
||
| 15 | * |
||
| 16 | * @return bool |
||
| 17 | * Whether the given URL is valid or not. |
||
| 18 | */ |
||
| 19 | public static function isGitUrl($url) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Checks if given standards are supported by the application. |
||
| 45 | * |
||
| 46 | * @param array $standards |
||
| 47 | * The standards to be validated |
||
| 48 | * |
||
| 49 | * @return bool |
||
| 50 | * Whether the given standards are valid or not. |
||
| 51 | */ |
||
| 52 | public static function areStandardsValid(array $standards) |
||
| 62 | } |
||
| 63 |