Completed
Push — develop ( 6d4cdf...e482b1 )
by Chris
04:29
created
src/DNS.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function fetch()
25 25
     {
26
-        $this->makeRequest($this->getURL($this->URL . '?per_page=100'));
26
+        $this->makeRequest($this->getURL($this->URL.'?per_page=100'));
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
 
@@ -83,15 +83,15 @@  discard block
 block discarded – undo
83 83
             $data['content'] = $value;
84 84
         }
85 85
 
86
-        $url = $this->getURL($this->URL) . '/' . $id;
86
+        $url = $this->getURL($this->URL).'/'.$id;
87 87
         try {
88 88
             $this->makeRequest($url, 'PUT', $data);
89
-        } catch(\Exception $e) {
89
+        } catch (\Exception $e) {
90 90
             //var_dump($e);
91 91
         }
92 92
         $response = $this->getResponse();
93 93
 
94
-        if($response->success != true) {
94
+        if ($response->success != true) {
95 95
             return false;
96 96
         }
97 97
 
@@ -100,16 +100,16 @@  discard block
 block discarded – undo
100 100
 
101 101
     public function delete($id)
102 102
     {
103
-        $url = $this->getURL($this->URL) . '/' . $id;
103
+        $url = $this->getURL($this->URL).'/'.$id;
104 104
         try {
105 105
             $this->makeRequest($url, 'DELETE');
106
-        } catch(\Exception $e) {
106
+        } catch (\Exception $e) {
107 107
             //var_dump($e);
108 108
         }
109 109
 
110 110
         $response = $this->getResponse();
111 111
 
112
-        if($response->success === true) {
112
+        if ($response->success === true) {
113 113
             return true;
114 114
         }
115 115
 
Please login to merge, or discard this patch.