Completed
Push — develop ( eb315e...09dc45 )
by Chris
03:29
created
src/DNS.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $this->makeRequest($this->getURL($this->URL));
27 27
         $response = $this->getResponse();
28 28
 
29
-        if($response->success != true) {
29
+        if ($response->success != true) {
30 30
             return false;
31 31
         }
32 32
 
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function getInfo($id)
37 37
     {
38
-        $url = "zones/%s/dns_records/" . $id;
38
+        $url = "zones/%s/dns_records/".$id;
39 39
         $this->makeRequest($this->getURL($url));
40 40
         $response = $this->getResponse();
41 41
 
42
-        if($response->success != true) {
42
+        if ($response->success != true) {
43 43
             return false;
44 44
         }
45 45
 
@@ -58,15 +58,15 @@  discard block
 block discarded – undo
58 58
             'ttl' => $ttl
59 59
         ];
60 60
 
61
-        $url = $this->getURL($this->URL) . '/';
61
+        $url = $this->getURL($this->URL).'/';
62 62
         try {
63 63
             $this->makeRequest($url, 'POST', $data);
64
-        } catch(\Exception $e) {
64
+        } catch (\Exception $e) {
65 65
             //var_dump($e);
66 66
         }
67 67
         $response = $this->getResponse();
68 68
 
69
-        if($response->success != true) {
69
+        if ($response->success != true) {
70 70
             return false;
71 71
         }
72 72
 
@@ -79,15 +79,15 @@  discard block
 block discarded – undo
79 79
         $data = json_decode(json_encode($info), true);
80 80
         $data['content'] = $value;
81 81
 
82
-        $url = $this->getURL($this->URL) . '/' . $id;
82
+        $url = $this->getURL($this->URL).'/'.$id;
83 83
         try {
84 84
             $this->makeRequest($url, 'PUT', $data);
85
-        } catch(\Exception $e) {
85
+        } catch (\Exception $e) {
86 86
             //var_dump($e);
87 87
         }
88 88
         $response = $this->getResponse();
89 89
 
90
-        if($response->success != true) {
90
+        if ($response->success != true) {
91 91
             return false;
92 92
         }
93 93
 
@@ -96,16 +96,16 @@  discard block
 block discarded – undo
96 96
 
97 97
     public function delete($id)
98 98
     {
99
-        $url = $this->getURL($this->URL) . '/' . $id;
99
+        $url = $this->getURL($this->URL).'/'.$id;
100 100
         try {
101 101
             $this->makeRequest($url, 'DELETE');
102
-        } catch(\Exception $e) {
102
+        } catch (\Exception $e) {
103 103
             //var_dump($e);
104 104
         }
105 105
 
106 106
         $response = $this->getResponse();
107 107
 
108
-        if($response->success === true) {
108
+        if ($response->success === true) {
109 109
             return true;
110 110
         }
111 111
 
Please login to merge, or discard this patch.
src/Zone.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,20 +43,20 @@
 block discarded – undo
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
 
54 54
         return $this->getResponse();
55 55
     }
56 56
 
57 57
     public function getDetails($zoneID)
58 58
     {
59
-        $this->makeRequest($this->URL . '/' . $zoneID);
59
+        $this->makeRequest($this->URL.'/'.$zoneID);
60 60
         
61 61
         return $this->getResponse();
62 62
     }
Please login to merge, or discard this patch.