| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function __construct($name, $field, $buckets = null, $format = null) |
||
| 36 | { |
||
| 37 | parent::__construct($name); |
||
| 38 | |||
| 39 | $this->setField($field); |
||
| 40 | |||
| 41 | if ($buckets) { |
||
|
|
|||
| 42 | $this->addParameter('buckets', $buckets); |
||
| 43 | } |
||
| 44 | |||
| 45 | if ($format) { |
||
| 46 | $this->addParameter('format', $format); |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 72 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: