| Conditions | 4 |
| Paths | 8 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4.0218 |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | 5 | public function __construct(array $properties) |
|
| 41 | { |
||
| 42 | 5 | parent::__construct($properties); |
|
| 43 | |||
| 44 | 5 | if ($this->active === false) { |
|
| 45 | $this->uri = str_replace('{active}', 'false', $this->uri); |
||
| 46 | } |
||
| 47 | |||
| 48 | 5 | if ($this->actualHours === true) { |
|
| 49 | 5 | $this->uri = str_replace('{actual_hours}', 'true', $this->uri); |
|
| 50 | } |
||
| 51 | |||
| 52 | 5 | if ($this->onlyTemplates === true) { |
|
| 53 | 5 | $this->uri = str_replace('{only_templates}', 'true', $this->uri); |
|
| 54 | } |
||
| 55 | 5 | } |
|
| 56 | } |
||
| 57 |