1 | <?php |
||
8 | abstract class Validator |
||
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 string $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 areAllStandardsValid($standards) |
||
64 | |||
65 | /** |
||
66 | * Validates if given file should be sniffed based on sent options. |
||
67 | * |
||
68 | * @param string $file |
||
69 | * @param string $exclusion_list |
||
70 | * |
||
71 | * @return bool |
||
72 | * |
||
73 | * @throws UnableToParseExclusionListException |
||
74 | */ |
||
75 | public static function fileShouldBeSniffed($file, $exclusion_list) |
||
91 | } |
||
92 |