1 | <?php |
||
20 | final class DateFilter implements FilterInterface |
||
21 | { |
||
22 | const NAME = 'date'; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function apply(DataSourceInterface $dataSource, $name, $data, array $options) |
||
43 | |||
44 | /** |
||
45 | * @param string[] $data |
||
46 | * |
||
47 | * @return null|string |
||
48 | */ |
||
49 | private function getDateTime(array $data) |
||
61 | } |
||
62 |
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.