Completed
Pull Request — master (#179)
by Greg
01:48
created
src/Parser/CommandInfo.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function replaceRawAnnotations($annotationData)
240 240
     {
241
-        $this->otherAnnotations = new AnnotationData((array) $annotationData);
241
+        $this->otherAnnotations = new AnnotationData((array)$annotationData);
242 242
         return $this;
243 243
     }
244 244
 
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         // Convert to an array and merge if there are multiple
321 321
         // instances of the same annotation defined.
322 322
         if (isset($this->otherAnnotations[$name])) {
323
-            $content = array_merge((array) $this->otherAnnotations[$name], (array)$content);
323
+            $content = array_merge((array)$this->otherAnnotations[$name], (array)$content);
324 324
         }
325 325
         $this->otherAnnotations[$name] = $content;
326 326
     }
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
         $opts = $this->options()->getValues();
520 520
         foreach ($opts as $name => $defaultValue) {
521 521
             if ($defaultValue === true) {
522
-                $key = 'no-' . $name;
522
+                $key = 'no-'.$name;
523 523
                 if (!array_key_exists($key, $opts)) {
524 524
                     $description = "Negate --$name option.";
525 525
                     $this->options()->add($key, $description, false);
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
         if ($this->lastParameterIsOptionsArray()) {
646 646
             array_pop($params);
647 647
         }
648
-        while(!empty($params) && ($params[0]->getClass() != null)) {
648
+        while (!empty($params) && ($params[0]->getClass() != null)) {
649 649
             $param = array_shift($params);
650 650
             $injectedClass = $param->getClass()->getName();
651 651
             array_unshift($this->injectedClasses, $injectedClass);
@@ -749,8 +749,8 @@  discard block
 block discarded – undo
749 749
      */
750 750
     protected function convertName($camel)
751 751
     {
752
-        $splitter="-";
753
-        $camel=preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel));
752
+        $splitter = "-";
753
+        $camel = preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel));
754 754
         $camel = preg_replace("/$splitter/", ':', $camel, 1);
755 755
         return strtolower($camel);
756 756
     }
Please login to merge, or discard this patch.
src/CommandProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@
 block discarded – undo
255 255
 
256 256
     public function injectIntoCommandData($commandData, $injectedClasses)
257 257
     {
258
-        foreach($injectedClasses as $injectedClass) {
258
+        foreach ($injectedClasses as $injectedClass) {
259 259
             $injectedInstance = $this->getInstanceToInject($commandData, $injectedClass);
260 260
             $commandData->injectInstance($injectedInstance);
261 261
         }
Please login to merge, or discard this patch.