| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 1 | public function addLabel( $labelIndex, $label ) { |
|
| 22 | |||
| 23 | 1 | if ( $labelIndex == 1 ) { |
|
| 24 | // label1 is always single value! |
||
| 25 | 1 | $this->label[$labelIndex] = $label; |
|
| 26 | } else { |
||
| 27 | // append to support multivalue |
||
| 28 | // (a simple ".=" failed with offset error during testing) |
||
| 29 | 1 | $this->label[$labelIndex] = array_key_exists($labelIndex, $this->label) ? $this->label[$labelIndex] . $label . "\l" : $label . "\l"; |
|
| 30 | } |
||
| 31 | 1 | } |
|
| 32 | |||
| 66 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.