Shorten Longer Lines

The properties I've added have made these some pretty long lines
This commit is contained in:
Phil Young
2021-06-15 11:12:37 +01:00
parent da3d10c4ee
commit f8124e76cb
2 changed files with 23 additions and 3 deletions

View File

@@ -129,8 +129,17 @@ class CustomHostnames implements API
* @param string $customOriginServer
* @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 = [];
if (!empty($sslMethod)) {

View File

@@ -192,7 +192,18 @@ CERTIFICATE;
'http3' => 'on',
'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('hostname', $result);