Total Complexity | 8 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class GetCertificate extends AbstractResponse { |
||
8 | |||
9 | protected $_pattern = '~(-----BEGIN\sCERTIFICATE-----[\s\S]+?-----END\sCERTIFICATE-----)~i'; |
||
10 | |||
11 | |||
12 | public function getCertificate() : string { |
||
20 | } |
||
21 | |||
22 | public function getIntermediate() : string { |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return string[] |
||
40 | */ |
||
41 | public function getAlternativeLinks() : array { |
||
55 | } |
||
56 | } |
If the size of the collection does not change during the iteration, it is generally a good practice to compute it beforehand, and not on each iteration: