fix: cosmetic fixes

pull/9461/head
Christophe Vandeplas 2024-01-09 17:02:51 +00:00
parent bd86a28043
commit b9ab95fa50
5 changed files with 4 additions and 5 deletions

View File

@ -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());

View File

@ -41,8 +41,6 @@
]
];
use Cake\Core\Configure;
echo $this->element('genericElements/IndexTable/index_table', [
'data' => [
'data' => $data,

View File

@ -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')
],
[

View File

@ -38,7 +38,7 @@ trait ApiTestTrait
/** @var ServerRequest */
protected $_psrRequest;
/* @var boolean */
/** @var boolean */
protected $_skipOpenApiValidations = false;
public function setUp(): void

View File

@ -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');