Completed
Push — master ( 98071e...5af57d )
by Sebastian
02:55
created
src/Cmd/Args.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function __construct(bool $isPhar = false)
55 55
     {
56 56
         if ($isPhar) {
57
-            $this->longOptions['self-update']  = true;
57
+            $this->longOptions['self-update'] = true;
58 58
             $this->longOptions['version-check'] = true;
59 59
         }
60 60
     }
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
     public function parseShortOption($arg, array &$options)
103 103
     {
104 104
         if (!isset($this->shortOptions[$arg])) {
105
-            throw new Exception('unknown option: -' . $arg);
105
+            throw new Exception('unknown option: -'.$arg);
106 106
         }
107
-        $options['-' . $arg] = true;
107
+        $options['-'.$arg] = true;
108 108
     }
109 109
 
110 110
     /**
@@ -124,17 +124,17 @@  discard block
 block discarded – undo
124 124
             $argument = $list[1];
125 125
         }
126 126
         if (count($list) > 2) {
127
-            throw new Exception('invalid value for option: --' . $arg);
127
+            throw new Exception('invalid value for option: --'.$arg);
128 128
         }
129
-        if (!isset($this->longOptions[$option]) && !isset($this->longOptions[$option . '='])) {
130
-            throw new Exception('unknown option: --' . $option);
129
+        if (!isset($this->longOptions[$option]) && !isset($this->longOptions[$option.'='])) {
130
+            throw new Exception('unknown option: --'.$option);
131 131
         }
132
-        if ($argument === true && isset($this->longOptions[$option . '='])) {
133
-            throw new Exception('argument required for option: --' . $option);
132
+        if ($argument === true && isset($this->longOptions[$option.'='])) {
133
+            throw new Exception('argument required for option: --'.$option);
134 134
         }
135 135
         if ($argument !== true && isset($this->longOptions[$option])) {
136
-            throw new Exception('needless argument for option: --' . $option);
136
+            throw new Exception('needless argument for option: --'.$option);
137 137
         }
138
-        $options['--' . $option] = $argument;
138
+        $options['--'.$option] = $argument;
139 139
     }
140 140
 }
Please login to merge, or discard this patch.