Passed
Pull Request — master (#45)
by
unknown
21:48 queued 09:17
created

XmlResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\Module\casserver\Http;
6
7
use Symfony\Component\HttpFoundation\Response;
8
9
class XmlResponse extends Response
10
{
11
    public function __construct(?string $content = '', int $status = 200, array $headers = [])
12
    {
13
        parent::__construct($content, $status, array_merge($headers, [
14
            'Content-Type' => 'text/xml; charset=ISO-8859-1',
15
        ]));
16
    }
17
}
18