Completed
Pull Request — master (#119)
by Greg
01:51
created
src/CommandData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
         if ($value === true) {
137 137
             // Check if the --no-* option exists. Note that none of the other
138 138
             // alteration apply in the $value == true case, so we can exit early here.
139
-            $negation_key = 'no-' . $option;
139
+            $negation_key = 'no-'.$option;
140 140
             return array_key_exists($negation_key, $options) && $options[$negation_key];
141 141
         }
142 142
 
Please login to merge, or discard this patch.
src/Parser/CommandInfo.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      */
228 228
     public function replaceRawAnnotations($annotationData)
229 229
     {
230
-        $this->otherAnnotations = new AnnotationData((array) $annotationData);
230
+        $this->otherAnnotations = new AnnotationData((array)$annotationData);
231 231
         return $this;
232 232
     }
233 233
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
         // Convert to an array and merge if there are multiple
310 310
         // instances of the same annotation defined.
311 311
         if (isset($this->otherAnnotations[$name])) {
312
-            $content = array_merge((array) $this->otherAnnotations[$name], (array)$content);
312
+            $content = array_merge((array)$this->otherAnnotations[$name], (array)$content);
313 313
         }
314 314
         $this->otherAnnotations[$name] = $content;
315 315
     }
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
         $opts = $this->options()->getValues();
488 488
         foreach ($opts as $name => $defaultValue) {
489 489
             if ($defaultValue === true) {
490
-                $key = 'no-' . $name;
490
+                $key = 'no-'.$name;
491 491
                 if (!array_key_exists($key, $opts)) {
492 492
                     $description = "Negate --$name option.";
493 493
                     $this->options()->add($key, $description, false);
@@ -691,8 +691,8 @@  discard block
 block discarded – undo
691 691
      */
692 692
     protected function convertName($camel)
693 693
     {
694
-        $splitter="-";
695
-        $camel=preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel));
694
+        $splitter = "-";
695
+        $camel = preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel));
696 696
         $camel = preg_replace("/$splitter/", ':', $camel, 1);
697 697
         return strtolower($camel);
698 698
     }
Please login to merge, or discard this patch.