| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 3 | public function id() |
|
| 44 | { |
||
| 45 | 3 | if ($this->id === false) { |
|
| 46 | 3 | $this->id = $this->idForUrl($this->container['request']->getUri()); |
|
| 47 | 3 | } |
|
| 48 | |||
| 49 | 3 | if (func_num_args() > 0) { |
|
| 50 | 1 | return in_array($this->id, is_array(func_get_arg(0)) ? func_get_arg(0) : func_get_args()); |
|
| 51 | } |
||
| 52 | |||
| 53 | 2 | return $this->id; |
|
| 54 | } |
||
| 55 | |||
| 93 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.