1 | <?php |
||
8 | class Validator |
||
9 | { |
||
10 | /** |
||
11 | * Parse a string based rule. |
||
12 | * |
||
13 | * @param string $rules |
||
14 | * @return array |
||
15 | */ |
||
16 | public static function parseStringRule($rules) |
||
31 | |||
32 | /** |
||
33 | * Parse a parameter list. |
||
34 | * |
||
35 | * @param string $rule |
||
36 | * @param string $parameter |
||
37 | * @return array |
||
38 | */ |
||
39 | public static function parseParameters($rule, $parameter) |
||
47 | |||
48 | /** |
||
49 | * Explode the rules into an array of rules. |
||
50 | * |
||
51 | * @param string $rules |
||
|
|||
52 | * @return array |
||
53 | */ |
||
54 | public static function explodeRule($rule) |
||
58 | |||
59 | /** |
||
60 | * Convert laravel validations to theme validation angular js. |
||
61 | * |
||
62 | * @param string $validations |
||
63 | * @return array |
||
64 | */ |
||
65 | public static function convertValidations($validations, $blnSearch = false){ |
||
109 | |||
110 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.