Completed
Push — master ( 1c8214...0dbe24 )
by Jörg
02:09
created
DependencyInjection/BingemerInwxExtension.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: joerg
5
- * Date: 14.02.16
6
- * Time: 19:38
7
- */
3
+     * Created by PhpStorm.
4
+     * User: joerg
5
+     * Date: 14.02.16
6
+     * Time: 19:38
7
+     */
8 8
 namespace Bingemer\InwxBundle\DependencyInjection;
9 9
 
10 10
 use Symfony\Component\HttpKernel\DependencyInjection\Extension;
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: joerg
5
- * Date: 14.02.16
6
- * Time: 19:47
7
- */
3
+     * Created by PhpStorm.
4
+     * User: joerg
5
+     * Date: 14.02.16
6
+     * Time: 19:47
7
+     */
8 8
 namespace Bingemer\InwxBundle\DependencyInjection;
9 9
 
10 10
 use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Please login to merge, or discard this patch.
Classes/Domrobot.php 2 patches
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: joerg
5
- * Date: 14.02.16
6
- * Time: 20:31
7
- * copied and modified from https://github.com/inwx/php-client
8
- */
3
+     * Created by PhpStorm.
4
+     * User: joerg
5
+     * Date: 14.02.16
6
+     * Time: 20:31
7
+     * copied and modified from https://github.com/inwx/php-client
8
+     */
9 9
 namespace Bingemer\InwxBundle\Classes;
10 10
 
11 11
 class Domrobot
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     private $clTRID = null;
18 18
 
19 19
     private $_ver = "2.4";
20
-	private $_cachedir;
20
+    private $_cachedir;
21 21
     private $_cookiefile = NULL;
22 22
     private $loginResult = NULL;
23 23
 
@@ -30,32 +30,32 @@  discard block
 block discarded – undo
30 30
         $this->loginResult = $this->login($username, $password, $sharedSecret);
31 31
     }
32 32
 
33
-	public function createRecord($name, $ip, $domain = 'somedomainnameyouwishtoupgrade.de', $type = 'A')
34
-	{
35
-		if (strpos($name, $domain) === false) {
36
-			$name = $name.".".$domain;
37
-		}
38
-		try {
39
-			$result = $this->call('nameserver', 'createRecord', array(
40
-				'domain' => $domain,
41
-				'type' => $type,
42
-				'name' => $name,
43
-				'content' => $ip
44
-			));
45
-			return $result;
46
-		} catch (\Exception $e) {
47
-			return $e->getMessage();
48
-		}
49
-	}
33
+    public function createRecord($name, $ip, $domain = 'somedomainnameyouwishtoupgrade.de', $type = 'A')
34
+    {
35
+        if (strpos($name, $domain) === false) {
36
+            $name = $name.".".$domain;
37
+        }
38
+        try {
39
+            $result = $this->call('nameserver', 'createRecord', array(
40
+                'domain' => $domain,
41
+                'type' => $type,
42
+                'name' => $name,
43
+                'content' => $ip
44
+            ));
45
+            return $result;
46
+        } catch (\Exception $e) {
47
+            return $e->getMessage();
48
+        }
49
+    }
50 50
 
51
-	public function updateRecord($id, $ip)
52
-	{
51
+    public function updateRecord($id, $ip)
52
+    {
53 53
         $result = $this->call('nameserver','updateRecord', array(
54 54
             'id' => $id,
55 55
             'content' => $ip
56 56
         ));
57
-		return $result;
58
-	}
57
+        return $result;
58
+    }
59 59
 
60 60
     public function login($username, $password, $sharedSecret = null)
61 61
     {
Please login to merge, or discard this patch.
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
     }
118 118
 
119 119
     /**
120
-     * @param $object
121
-     * @param $method
120
+     * @param string $object
121
+     * @param string $method
122 122
      * @param array $params
123 123
      * @return mixed
124 124
      */
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
     /**
190 190
      * @param $secret
191
-     * @return bool|string
191
+     * @return string|false
192 192
      */
193 193
     private function _base32Decode($secret)
194 194
     {
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     }
224 224
 
225 225
     /**
226
-     * @return array
226
+     * @return string[]
227 227
      */
228 228
     private function _getBase32LookupTable()
229 229
     {
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     }
266 266
 
267 267
     /**
268
-     * @param $language
268
+     * @param string $language
269 269
      */
270 270
     public function setLanguage($language)
271 271
     {
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     }
290 290
 
291 291
     /**
292
-     * @return null|string
292
+     * @return string
293 293
      */
294 294
     public function getCookiefile()
295 295
     {
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     }
326 326
 
327 327
     /**
328
-     * @return null
328
+     * @return string
329 329
      */
330 330
     public function getClTrId()
331 331
     {
Please login to merge, or discard this patch.