Completed
Push — master ( b785c1...f1b023 )
by Márk
11s
created

EnvironmentCollector::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
1
<?php
2
3
namespace Nofw\Emperror\Context;
4
5
use Nofw\Error\Context;
6
7
/**
8
 * Collects environment variables.
9
 *
10
 * @author Márk Sági-Kazár <[email protected]>
11
 */
12
final class EnvironmentCollector implements Processor
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function process(\Throwable $t, array $context): array
18
    {
19
        return array_replace_recursive(
20
            [
21
                Context::ENVIRONMENT => $_SERVER,
22
            ],
23
            $context
24
        );
25
    }
26
}
27