Conditions | 4 |
Paths | 8 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function apply(DataSourceInterface $dataSource, $name, $data, array $options) |
||
28 | { |
||
29 | $expressionBuilder = $dataSource->getExpressionBuilder(); |
||
30 | |||
31 | $field = isset($options['field']) ? $options['field'] : $name; |
||
32 | |||
33 | $from = $this->getDateTime($data['from']); |
||
34 | if (null !== $from) { |
||
35 | $expressionBuilder->greaterThanOrEqual($field, $from); |
||
36 | } |
||
37 | |||
38 | $to = $this->getDateTime($data['to']); |
||
|
|||
39 | if (null !== $to) { |
||
40 | $expressionBuilder->lessThan($field, $to); |
||
41 | } |
||
42 | } |
||
43 | |||
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.