| @@ 210-216 (lines=7) @@ | ||
| 207 | ]; |
|
| 208 | ||
| 209 | // Add tags to context. |
|
| 210 | if(isset($context['tags'])) |
|
| 211 | { |
|
| 212 | $context['tags'] = array_merge($tags, $context['tags']); |
|
| 213 | } else |
|
| 214 | { |
|
| 215 | $context['tags'] = $tags; |
|
| 216 | } |
|
| 217 | ||
| 218 | // Automatic extra data. |
|
| 219 | $extra = [ |
|
| @@ 228-234 (lines=7) @@ | ||
| 225 | $extra = array_merge($extra, array_except($context, ['user', 'tags', 'level', 'extra'])); |
|
| 226 | ||
| 227 | // Add extra to context. |
|
| 228 | if(isset($context['extra'])) |
|
| 229 | { |
|
| 230 | $context['extra'] = array_merge($extra, $context['extra']); |
|
| 231 | } else |
|
| 232 | { |
|
| 233 | $context['extra'] = $extra; |
|
| 234 | } |
|
| 235 | ||
| 236 | // Clean out other values from context. |
|
| 237 | $context = array_only($context, ['user', 'tags', 'level', 'extra', 'exception']); |
|