@@ -227,7 +227,7 @@ discard block |
||
| 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 | |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | // Convert to an array and merge if there are multiple |
| 337 | 337 | // instances of the same annotation defined. |
| 338 | 338 | if (isset($this->otherAnnotations[$name])) { |
| 339 | - $content = array_merge((array) $this->otherAnnotations[$name], (array)$content); |
|
| 339 | + $content = array_merge((array)$this->otherAnnotations[$name], (array)$content); |
|
| 340 | 340 | } |
| 341 | 341 | $this->otherAnnotations[$name] = $content; |
| 342 | 342 | } |
@@ -693,8 +693,8 @@ discard block |
||
| 693 | 693 | */ |
| 694 | 694 | protected function convertName($camel) |
| 695 | 695 | { |
| 696 | - $splitter="-"; |
|
| 697 | - $camel=preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel)); |
|
| 696 | + $splitter = "-"; |
|
| 697 | + $camel = preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel)); |
|
| 698 | 698 | $camel = preg_replace("/$splitter/", ':', $camel, 1); |
| 699 | 699 | return strtolower($camel); |
| 700 | 700 | } |