File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,32 +55,15 @@ public static function sequenceFromOCSPResponse(?BasicOCSPResponse $basicOCSPRes
5555 if (!is_null ($ certificateList )) {
5656 $ binary = $ certificateList ->getBinary ();
5757
58- $ values [] = ExplicitlyTaggedObject::create (0 ,
59- Sequence::create ([
60- Sequence::fromBinary ($ binary ),
61- ]
62- )
63- );
58+ $ values [] = ExplicitlyTaggedObject::create (0 , Sequence::create ([Sequence::fromBinary ($ binary )]));
6459 }
6560
6661 if (!is_null ($ basicOCSPResponse )) {
6762 $ binary = $ basicOCSPResponse ->getBinary ();
6863
69- $ values [] = ExplicitlyTaggedObject::create (1 ,
70- Sequence::create ([
71- Sequence::fromBinary ($ binary ),
72- ]
73- )
74- );
64+ $ values [] = ExplicitlyTaggedObject::create (1 , Sequence::create ([Sequence::fromBinary ($ binary )]));
7565 }
7666
77- return Sequence::create ([
78- ObjectIdentifier::create (\Adapik \CMS \RevocationValues::getOid ()),
79- Set::create ([
80- Sequence::create ($ values ),
81- ]
82- ),
83- ]
84- );
67+ return Sequence::create ([ObjectIdentifier::create (\Adapik \CMS \RevocationValues::getOid ()), Set::create ([Sequence::create ($ values )]),]);
8568 }
8669}
You can’t perform that action at this time.
0 commit comments