| 1 | <?php |
||
| 5 | class Any_Equality_Comparer extends Comparer { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Supported comparison signs |
||
| 9 | * |
||
| 10 | * @var array<string> |
||
| 11 | */ |
||
| 12 | protected $supported_comparison_operators = array( '=', '!=' ); |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Check if comparison is true for $a and $b |
||
| 16 | * |
||
| 17 | * @param mixed $a |
||
| 18 | * @param string $comparison_operator |
||
| 19 | * @param mixed $b |
||
| 20 | * @return bool |
||
| 21 | */ |
||
| 22 | public function is_correct( $a, $comparison_operator, $b ) { |
||
| 31 | } |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.