Updated TLS.php and added new endpoints to new ZoneSettings.php

This commit is contained in:
Paul Adams
2019-02-23 00:02:01 +00:00
4 changed files with 34 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/vendor/

15
.php_cs Normal file
View File

@@ -0,0 +1,15 @@
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
;
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
])
->setFinder($finder)
;

15
.travis.yml Normal file
View File

@@ -0,0 +1,15 @@
language: php
php:
- 7.0
- 7.1
before_install:
- composer self-update
install:
- travis_retry composer install --no-interaction --prefer-source
script:
- make lint
- make test

View File

@@ -67,6 +67,7 @@ class TLS implements API
return false; return false;
} }
<<<<<<< HEAD
public function getHTTPSRedirectStatus($zoneID) { public function getHTTPSRedirectStatus($zoneID) {
$return = $this->adapter->get( $return = $this->adapter->get(
'zones/' . $zoneID . '/settings/always_use_https' 'zones/' . $zoneID . '/settings/always_use_https'
@@ -121,4 +122,6 @@ class TLS implements API
return false; return false;
} }
=======
>>>>>>> 4694904b38fdf5f251559a473cecf77a63cf9202
} }