Passed
Branch master (4b23d6)
by Tim
04:40
created

Data   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
1
<?php
2
3
namespace SimpleSAML\Module\Monitor\TestCase\Cert;
4
5
use SimpleSAML\Module\Monitor\TestData;
6
7
class Data extends \SimpleSAML\Module\Monitor\TestCase\Cert
8
{
9
    /**
10
     * @param \SimpleSAML\Module\Monitor\TestData $testData
11
     */
12
    public function __construct(TestData $testData)
13
    {
14
        $certData = $testData->getInputItem('certData');
15
16
        $certData = openssl_x509_parse($certData) ?: [];
17
        $testData->setInput($certData, 'certData');
18
19
        parent::__construct($testData);
20
    }
21
}
22