Code Duplication    Length = 15-15 lines in 2 locations

lib/Util/Log/Logger.php 1 location

@@ 85-99 (lines=15) @@
82
        $this->err(get_class($assertion) . ' - ' . $e->getMessage(), $this->createExtra($extra));
83
    }
84
85
    public function createExtra($includeArray = [])
86
    {
87
        $defaultArray = [
88
            'type'      => 'message',
89
            'status'    => $this->status,
90
            'name'     => $this->testName,
91
            'testId'    => $this->testId
92
        ];
93
94
        if ($this->selectorConfig) {
95
            $defaultArray = array_merge($this->selectorConfig, $defaultArray);
96
        }
97
98
        return array_merge($defaultArray, $includeArray);
99
    }
100
101
    public function addWarning(Test $test, Warning $e, $time)
102
    {

lib/Util/Log/LoggerPHPUnit5.php 1 location

@@ 80-94 (lines=15) @@
77
        $this->err(get_class($assertion) . ' - ' . $e->getMessage(), $this->createExtra($extra));
78
    }
79
80
    public function createExtra($includeArray = [])
81
    {
82
        $defaultArray = [
83
            'type'      => 'message',
84
            'status'    => $this->status,
85
            'name'     => $this->testName,
86
            'testId'    => $this->testId
87
        ];
88
89
        if ($this->selectorConfig) {
90
            $defaultArray = array_merge($this->selectorConfig, $defaultArray);
91
        }
92
93
        return array_merge($defaultArray, $includeArray);
94
    }
95
96
    public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time)
97
    {