@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'Required' => true, |
61 | 61 | 'Target' => true, |
62 | 62 | // Widely used tags (but not existent in phpdoc) |
63 | - 'fix' => true , 'fixme' => true, |
|
63 | + 'fix' => true, 'fixme' => true, |
|
64 | 64 | 'override' => true, |
65 | 65 | // PHPDocumentor 1 tags |
66 | 66 | 'abstract'=> true, 'access'=> true, |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | throw AnnotationException::optimizerPlusSaveComments(); |
196 | 196 | } |
197 | 197 | |
198 | - AnnotationRegistry::registerFile(__DIR__ . '/Annotation/IgnoreAnnotation.php'); |
|
198 | + AnnotationRegistry::registerFile(__DIR__.'/Annotation/IgnoreAnnotation.php'); |
|
199 | 199 | |
200 | 200 | $this->parser = $parser ?: new DocParser(); |
201 | 201 | |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class)); |
219 | 219 | $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces); |
220 | 220 | |
221 | - return $this->parser->parse($class->getDocComment(), 'class ' . $class->getName()); |
|
221 | + return $this->parser->parse($class->getDocComment(), 'class '.$class->getName()); |
|
222 | 222 | } |
223 | 223 | |
224 | 224 | /** |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | public function getPropertyAnnotations(ReflectionProperty $property) |
244 | 244 | { |
245 | 245 | $class = $property->getDeclaringClass(); |
246 | - $context = 'property ' . $class->getName() . "::\$" . $property->getName(); |
|
246 | + $context = 'property '.$class->getName()."::\$".$property->getName(); |
|
247 | 247 | |
248 | 248 | $this->parser->setTarget(Target::TARGET_PROPERTY); |
249 | 249 | $this->parser->setImports($this->getPropertyImports($property)); |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | public function getMethodAnnotations(ReflectionMethod $method) |
276 | 276 | { |
277 | 277 | $class = $method->getDeclaringClass(); |
278 | - $context = 'method ' . $class->getName() . '::' . $method->getName() . '()'; |
|
278 | + $context = 'method '.$class->getName().'::'.$method->getName().'()'; |
|
279 | 279 | |
280 | 280 | $this->parser->setTarget(Target::TARGET_METHOD); |
281 | 281 | $this->parser->setImports($this->getMethodImports($method)); |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | */ |
309 | 309 | public function getFunctionAnnotations(ReflectionFunction $function) : array |
310 | 310 | { |
311 | - $context = 'function ' . $function->getName(); |
|
311 | + $context = 'function '.$function->getName(); |
|
312 | 312 | |
313 | 313 | $this->parser->setTarget(Target::TARGET_FUNCTION); |
314 | 314 | $this->parser->setImports($this->getImports($function)); |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | $name = $reflection->getName(); |
434 | 434 | |
435 | 435 | $ignoredAnnotationNames = self::$globalIgnoredNames; |
436 | - $annotations = $this->preParser->parse($reflection->getDocComment(), $type . ' ' . $name); |
|
436 | + $annotations = $this->preParser->parse($reflection->getDocComment(), $type.' '.$name); |
|
437 | 437 | |
438 | 438 | foreach ($annotations as $annotation) { |
439 | 439 | if ($annotation instanceof IgnoreAnnotation) { |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | $namespace = preg_quote($reflection->getNamespaceName()); |
72 | - $content = preg_replace('/^.*?(\bnamespace\s+' . $namespace . '\s*[;{].*)$/s', '\\1', $content); |
|
73 | - $tokenizer = new TokenParser('<?php ' . $content); |
|
72 | + $content = preg_replace('/^.*?(\bnamespace\s+'.$namespace.'\s*[;{].*)$/s', '\\1', $content); |
|
73 | + $tokenizer = new TokenParser('<?php '.$content); |
|
74 | 74 | |
75 | 75 | $statements = $tokenizer->parseUseStatements($reflection->getNamespaceName()); |
76 | 76 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | private function getFileContent($filename, $lineNumber) |
89 | 89 | { |
90 | - if ( ! is_file($filename)) { |
|
90 | + if (!is_file($filename)) { |
|
91 | 91 | return null; |
92 | 92 | } |
93 | 93 |