@@ -265,7 +265,7 @@ |
||
265 | 265 | } |
266 | 266 | |
267 | 267 | /** |
268 | - * @return mixed |
|
268 | + * @return string |
|
269 | 269 | */ |
270 | 270 | public function getLanguage() |
271 | 271 | { |
@@ -50,37 +50,37 @@ |
||
50 | 50 | * @param string $type |
51 | 51 | * @return mixed|string |
52 | 52 | */ |
53 | - public function createRecord($name, $ip, $domain = 'somedomainnameyouwishtoupgrade.de', $type = 'A') |
|
54 | - { |
|
55 | - if (strpos($name, $domain) === false) { |
|
56 | - $name = $name . "." . $domain; |
|
57 | - } |
|
58 | - try { |
|
59 | - $result = $this->call('nameserver', 'createRecord', array( |
|
60 | - 'domain' => $domain, |
|
61 | - 'type' => $type, |
|
62 | - 'name' => $name, |
|
63 | - 'content' => $ip |
|
64 | - )); |
|
65 | - return $result; |
|
66 | - } catch (\Exception $e) { |
|
67 | - return $e->getMessage(); |
|
68 | - } |
|
69 | - } |
|
53 | + public function createRecord($name, $ip, $domain = 'somedomainnameyouwishtoupgrade.de', $type = 'A') |
|
54 | + { |
|
55 | + if (strpos($name, $domain) === false) { |
|
56 | + $name = $name . "." . $domain; |
|
57 | + } |
|
58 | + try { |
|
59 | + $result = $this->call('nameserver', 'createRecord', array( |
|
60 | + 'domain' => $domain, |
|
61 | + 'type' => $type, |
|
62 | + 'name' => $name, |
|
63 | + 'content' => $ip |
|
64 | + )); |
|
65 | + return $result; |
|
66 | + } catch (\Exception $e) { |
|
67 | + return $e->getMessage(); |
|
68 | + } |
|
69 | + } |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @param $id |
73 | 73 | * @param $ip |
74 | 74 | * @return mixed |
75 | 75 | */ |
76 | - public function updateRecord($id, $ip) |
|
77 | - { |
|
76 | + public function updateRecord($id, $ip) |
|
77 | + { |
|
78 | 78 | $result = $this->call('nameserver', 'updateRecord', array( |
79 | 79 | 'id' => $id, |
80 | 80 | 'content' => $ip |
81 | 81 | )); |
82 | - return $result; |
|
83 | - } |
|
82 | + return $result; |
|
83 | + } |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * @param $username |