@@ -2,4 +2,4 @@ |
||
| 2 | 2 | /** |
| 3 | 3 | * @author Chris Hilsdon <[email protected]> |
| 4 | 4 | */ |
| 5 | -require __DIR__ . '/../vendor/autoload.php'; |
|
| 5 | +require __DIR__.'/../vendor/autoload.php'; |
|
@@ -25,9 +25,9 @@ |
||
| 25 | 25 | $configDist = $config.'.dist'; |
| 26 | 26 | $dir = $_SERVER['DOCUMENT_ROOT']; |
| 27 | 27 | |
| 28 | - if (@file_exists($dir . $config)) { |
|
| 28 | + if (@file_exists($dir.$config)) { |
|
| 29 | 29 | $load = $config; |
| 30 | - } elseif (@file_exists($dir . $configDist)) { |
|
| 30 | + } elseif (@file_exists($dir.$configDist)) { |
|
| 31 | 31 | $load = $configDist; |
| 32 | 32 | } else { |
| 33 | 33 | die('Unable to load either "'.$config.'" or "'.$configDist.'"'); |
@@ -42,13 +42,13 @@ |
||
| 42 | 42 | |
| 43 | 43 | $sting = explode('zones?', $RequestURL)[1]; |
| 44 | 44 | |
| 45 | - $shouldBe = "name=" . $domain |
|
| 46 | - . "&status=" . $options['status'] |
|
| 47 | - . "&page=" . $options['page'] |
|
| 48 | - . "&per_page=" . $options['per_page'] |
|
| 49 | - . "&order=" . $options['order'] |
|
| 50 | - . "&direction=" . $options['direction'] |
|
| 51 | - . "&match=". $options['match']; |
|
| 45 | + $shouldBe = "name=".$domain |
|
| 46 | + . "&status=".$options['status'] |
|
| 47 | + . "&page=".$options['page'] |
|
| 48 | + . "&per_page=".$options['per_page'] |
|
| 49 | + . "&order=".$options['order'] |
|
| 50 | + . "&direction=".$options['direction'] |
|
| 51 | + . "&match=".$options['match']; |
|
| 52 | 52 | |
| 53 | 53 | $this->assertSame($sting, $shouldBe, 'Request URL is not correct'); |
| 54 | 54 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | public function makeRequest($request = "", $type = "GET") |
| 27 | 27 | { |
| 28 | - $this->setRequestURL($this->CF->getEndpoint() . $request); |
|
| 28 | + $this->setRequestURL($this->CF->getEndpoint().$request); |
|
| 29 | 29 | |
| 30 | 30 | //Use in testing to not actualy make the request |
| 31 | 31 | if ($this->CF->getMakeRequests() === false) { |
@@ -43,13 +43,13 @@ |
||
| 43 | 43 | |
| 44 | 44 | $string = "?"; |
| 45 | 45 | foreach ($newOptions as $k => $v) { |
| 46 | - $string .= $k . '=' . $v . '&'; |
|
| 46 | + $string .= $k.'='.$v.'&'; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | //Remove the last '&' |
| 50 | 50 | $string = substr($string, 0, -1); |
| 51 | 51 | |
| 52 | - $this->makeRequest($this->URL . $string); |
|
| 52 | + $this->makeRequest($this->URL.$string); |
|
| 53 | 53 | return $this->getResponse(); |
| 54 | 54 | } |
| 55 | 55 | } |