| Conditions | 5 |
| Paths | 9 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function setKeys($item) |
||
| 10 | { |
||
| 11 | if (array_key_exists('key', $item)) { |
||
| 12 | $key = $item['key']; |
||
| 13 | $value = array_key_exists('value', $item) ? '"'.$item['value'].'"' : null; |
||
| 14 | $comment = array_key_exists('comment', $item) ? $item['comment'] : null; |
||
| 15 | $export = array_key_exists('export', $item) ? $item['export'] : null; |
||
| 16 | |||
| 17 | $packArray = compact('key', 'value', 'comment', 'export'); |
||
| 18 | |||
| 19 | $this->values = $packArray; |
||
| 20 | } |
||
| 21 | |||
| 22 | return $this->values; |
||
| 23 | } |
||
| 49 | } |