Completed
Push — develop ( e482b1...20ddea )
by Chris
02:12
created
src/DNS.php 1 patch
Spacing   +11 added lines, -11 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
 
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
 
61 61
         $data = $data + $extra;
62 62
 
63
-        $url = $this->getURL($this->URL) . '/';
63
+        $url = $this->getURL($this->URL).'/';
64 64
         try {
65 65
             $this->makeRequest($url, 'POST', $data);
66
-        } catch(\Exception $e) {
66
+        } catch (\Exception $e) {
67 67
             //var_dump($e);
68 68
 
69 69
             return false;
@@ -87,15 +87,15 @@  discard block
 block discarded – undo
87 87
             $data['content'] = $value;
88 88
         }
89 89
 
90
-        $url = $this->getURL($this->URL) . '/' . $id;
90
+        $url = $this->getURL($this->URL).'/'.$id;
91 91
         try {
92 92
             $this->makeRequest($url, 'PUT', $data);
93
-        } catch(\Exception $e) {
93
+        } catch (\Exception $e) {
94 94
             //var_dump($e);
95 95
         }
96 96
         $response = $this->getResponse();
97 97
 
98
-        if($response->success != true) {
98
+        if ($response->success != true) {
99 99
             return false;
100 100
         }
101 101
 
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
 
105 105
     public function delete($id)
106 106
     {
107
-        $url = $this->getURL($this->URL) . '/' . $id;
107
+        $url = $this->getURL($this->URL).'/'.$id;
108 108
         try {
109 109
             $this->makeRequest($url, 'DELETE');
110
-        } catch(\Exception $e) {
110
+        } catch (\Exception $e) {
111 111
             //var_dump($e);
112 112
         }
113 113
 
Please login to merge, or discard this patch.