Shorten Longer Lines
The properties I've added have made these some pretty long lines
This commit is contained in:
@@ -129,8 +129,17 @@ class CustomHostnames implements API
|
|||||||
* @param string $customOriginServer
|
* @param string $customOriginServer
|
||||||
* @return \stdClass
|
* @return \stdClass
|
||||||
*/
|
*/
|
||||||
public function updateHostname(string $zoneID, string $hostnameID, string $sslMethod = '', string $sslType = '', array $sslSettings = [], string $customOriginServer = '', ?bool $wildcard = null, string $bundleMethod = '', string $customKey = '', string $customCertificate = ''): \stdClass
|
public function updateHostname(
|
||||||
{
|
string $zoneID,
|
||||||
|
string $hostnameID,
|
||||||
|
string $sslMethod = '',
|
||||||
|
string $sslType = '',
|
||||||
|
array $sslSettings = [],
|
||||||
|
string $customOriginServer = '',
|
||||||
|
?bool $wildcard = null,
|
||||||
|
string $bundleMethod = '',
|
||||||
|
string $customKey = '',
|
||||||
|
string $customCertificate = ''): \stdClass {
|
||||||
$query = [];
|
$query = [];
|
||||||
|
|
||||||
if (!empty($sslMethod)) {
|
if (!empty($sslMethod)) {
|
||||||
|
|||||||
@@ -192,7 +192,18 @@ CERTIFICATE;
|
|||||||
'http3' => 'on',
|
'http3' => 'on',
|
||||||
'min_tls_version' => '1.2'
|
'min_tls_version' => '1.2'
|
||||||
];
|
];
|
||||||
$result = $zones->updateHostname('023e105f4ecef8ad9ca31a8372d0c353', '0d89c70d-ad9f-4843-b99f-6cc0252067e9', 'http', 'dv', $sslSettings, 'origin.example.com', true, 'optimal', $customKey, $customCertificate);
|
$result = $zones->updateHostname(
|
||||||
|
'023e105f4ecef8ad9ca31a8372d0c353',
|
||||||
|
'0d89c70d-ad9f-4843-b99f-6cc0252067e9',
|
||||||
|
'http',
|
||||||
|
'dv',
|
||||||
|
$sslSettings,
|
||||||
|
'origin.example.com',
|
||||||
|
true,
|
||||||
|
'optimal',
|
||||||
|
$customKey,
|
||||||
|
$customCertificate
|
||||||
|
);
|
||||||
|
|
||||||
$this->assertObjectHasAttribute('id', $result);
|
$this->assertObjectHasAttribute('id', $result);
|
||||||
$this->assertObjectHasAttribute('hostname', $result);
|
$this->assertObjectHasAttribute('hostname', $result);
|
||||||
|
|||||||
Reference in New Issue
Block a user