| Conditions | 4 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 72 | public function render() |
||
| 73 | { |
||
| 74 | $result = []; |
||
| 75 | foreach ($this->array as $array) { |
||
| 76 | $suffix = 's'; |
||
| 77 | if ( |
||
| 78 | isset($array['from']) && |
||
| 79 | isset($array['to']) |
||
| 80 | ) { |
||
| 81 | $suffix .= ' ' . $array['from'] . '-' . $array['to']; |
||
| 82 | } |
||
| 83 | $result[] = self::DIRECTIVE . ':1/' . $array['rate'] . $suffix; |
||
| 84 | } |
||
| 85 | return $result; |
||
| 86 | } |
||
| 87 | } |
||
| 88 |