@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | |
172 | 172 | $this->name = $info_array['name']; |
173 | 173 | $this->methodName = $info_array['method_name']; |
174 | - $this->otherAnnotations = new AnnotationData((array) $info_array['annotations']); |
|
174 | + $this->otherAnnotations = new AnnotationData((array)$info_array['annotations']); |
|
175 | 175 | $this->arguments = new DefaultsWithDescriptions(); |
176 | 176 | $this->options = new DefaultsWithDescriptions(); |
177 | 177 | $this->aliases = $info_array['aliases']; |
@@ -716,8 +716,8 @@ discard block |
||
716 | 716 | */ |
717 | 717 | protected function convertName($camel) |
718 | 718 | { |
719 | - $splitter="-"; |
|
720 | - $camel=preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel)); |
|
719 | + $splitter = "-"; |
|
720 | + $camel = preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel)); |
|
721 | 721 | $camel = preg_replace("/$splitter/", ':', $camel, 1); |
722 | 722 | return strtolower($camel); |
723 | 723 | } |