| @@ 132-139 (lines=8) @@ | ||
| 129 | * |
|
| 130 | * @return string |
|
| 131 | */ |
|
| 132 | public static function build($component, array $options = array()) |
|
| 133 | { |
|
| 134 | if (is_array($component)) { |
|
| 135 | return implode(', ', $component); |
|
| 136 | } else { |
|
| 137 | return $component->expr . ' ' . $component->type; |
|
| 138 | } |
|
| 139 | } |
|
| 140 | } |
|
| 141 | ||
| @@ 162-169 (lines=8) @@ | ||
| 159 | * |
|
| 160 | * @return string |
|
| 161 | */ |
|
| 162 | public static function build($component, array $options = array()) |
|
| 163 | { |
|
| 164 | if (is_array($component)) { |
|
| 165 | return implode(', ', $component); |
|
| 166 | } else { |
|
| 167 | return $component->old . ' TO ' . $component->new; |
|
| 168 | } |
|
| 169 | } |
|
| 170 | } |
|
| 171 | ||