mirror of https://github.com/MISP/MISP
fix: cosmetic fixes
parent
bd86a28043
commit
b9ab95fa50
|
@ -317,7 +317,7 @@ class HttpTool extends CakeClient
|
|||
*/
|
||||
public static function parseCertificate(mixed $certificate): array
|
||||
{
|
||||
/* @var $parsed array */
|
||||
/** @var array $parsed */
|
||||
$parsed = openssl_x509_parse($certificate);
|
||||
if (!$parsed) {
|
||||
throw new CakeException("Couldn't get parse X.509 certificate: " . openssl_error_string());
|
||||
|
|
|
@ -41,8 +41,6 @@
|
|||
]
|
||||
];
|
||||
|
||||
use Cake\Core\Configure;
|
||||
|
||||
echo $this->element('genericElements/IndexTable/index_table', [
|
||||
'data' => [
|
||||
'data' => $data,
|
||||
|
|
|
@ -145,6 +145,7 @@ echo $this->element('genericElements/IndexTable/index_table', [
|
|||
'sort' => 'certif_public',
|
||||
'class' => 'short',
|
||||
'data_path' => 'certif_public',
|
||||
'colors' => true,
|
||||
'requirement' => Configure::read('SMIME.enabled')
|
||||
],
|
||||
[
|
||||
|
|
|
@ -38,7 +38,7 @@ trait ApiTestTrait
|
|||
/** @var ServerRequest */
|
||||
protected $_psrRequest;
|
||||
|
||||
/* @var boolean */
|
||||
/** @var boolean */
|
||||
protected $_skipOpenApiValidations = false;
|
||||
|
||||
public function setUp(): void
|
||||
|
|
|
@ -184,7 +184,7 @@ xWV4oBk=
|
|||
{
|
||||
$this->markTestSkipped("This is not very well implemented yet.");
|
||||
$client = new HttpTool();
|
||||
/* @var $certificates array */
|
||||
/** @var array $certificates */
|
||||
$certificates = $client->fetchCertificates('https://www.google.com');
|
||||
// $certificates = $client->fetchCertificates(self::HTTPS_SELF_SIGNED_URI);
|
||||
// $certificates = $client->fetchCertificates('http://www.google.com');
|
||||
|
|
Loading…
Reference in New Issue