Passed
Branch v1.2.0 (c418ea)
by Deric
02:47
created
lib/Builder.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -11,21 +11,21 @@  discard block
 block discarded – undo
11 11
 class Builder
12 12
 {
13 13
 
14
-	/**
14
+    /**
15 15
      * Command prefix.
16 16
      *
17 17
      * @var string
18 18
      */
19
-	public $prefix;
19
+    public $prefix;
20 20
 	
21
-	/**
21
+    /**
22 22
      * Command options.
23 23
      *
24 24
      * @var string
25 25
      */
26 26
     public $options;
27 27
 	
28
-	/**
28
+    /**
29 29
      * Command arguments.
30 30
      *
31 31
      * @var string
@@ -67,16 +67,16 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $options = [];
69 69
         foreach ($opts as $key => $value)
70
-		{
71
-			if (preg_match('/^-.*$/', $key, $matches))
72
-			{
73
-				$options[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value;
74
-			}
75
-			if (preg_match('/^-.*$/', $value, $matches))
76
-			{
77
-				$options[] = $value;
78
-			}
79
-		}
70
+        {
71
+            if (preg_match('/^-.*$/', $key, $matches))
72
+            {
73
+                $options[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value;
74
+            }
75
+            if (preg_match('/^-.*$/', $value, $matches))
76
+            {
77
+                $options[] = $value;
78
+            }
79
+        }
80 80
         $this->options = implode(' ', array_filter($options, 'strlen'));
81 81
         return $this;
82 82
     }
@@ -89,19 +89,19 @@  discard block
 block discarded – undo
89 89
      */
90 90
     final public function setArguments(array $args)
91 91
     {
92
-		$arguments = [];
92
+        $arguments = [];
93 93
         foreach ($args as $key => $value)
94
-		{
95
-			if (preg_match('/^-.*$/', $key, $matches))
96
-			{
97
-				$arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value;
98
-			}
99
-			else
100
-			{
101
-				$arguments[] = is_array($value) ? implode(' ', $value) : $value;
102
-			}
103
-		}
104
-		$this->arguments = implode(' ', array_filter($arguments, 'strlen'));
94
+        {
95
+            if (preg_match('/^-.*$/', $key, $matches))
96
+            {
97
+                $arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value;
98
+            }
99
+            else
100
+            {
101
+                $arguments[] = is_array($value) ? implode(' ', $value) : $value;
102
+            }
103
+        }
104
+        $this->arguments = implode(' ', array_filter($arguments, 'strlen'));
105 105
         return $this;
106 106
     }
107 107
 }
Please login to merge, or discard this patch.