@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | 'Required' => true, |
60 | 60 | 'Target' => true, |
61 | 61 | // Widely used tags (but not existent in phpdoc) |
62 | - 'fix' => true , 'fixme' => true, |
|
62 | + 'fix' => true, 'fixme' => true, |
|
63 | 63 | 'override' => true, |
64 | 64 | // PHPDocumentor 1 tags |
65 | 65 | 'abstract'=> true, 'access'=> true, |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | throw AnnotationException::optimizerPlusSaveComments(); |
193 | 193 | } |
194 | 194 | |
195 | - AnnotationRegistry::registerFile(__DIR__ . '/Annotation/IgnoreAnnotation.php'); |
|
195 | + AnnotationRegistry::registerFile(__DIR__.'/Annotation/IgnoreAnnotation.php'); |
|
196 | 196 | |
197 | 197 | $this->parser = $parser ?: new DocParser(); |
198 | 198 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class)); |
216 | 216 | $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces); |
217 | 217 | |
218 | - return $this->parser->parse($class->getDocComment(), 'class ' . $class->getName()); |
|
218 | + return $this->parser->parse($class->getDocComment(), 'class '.$class->getName()); |
|
219 | 219 | } |
220 | 220 | |
221 | 221 | /** |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | public function getPropertyAnnotations(ReflectionProperty $property) |
241 | 241 | { |
242 | 242 | $class = $property->getDeclaringClass(); |
243 | - $context = 'property ' . $class->getName() . "::\$" . $property->getName(); |
|
243 | + $context = 'property '.$class->getName()."::\$".$property->getName(); |
|
244 | 244 | |
245 | 245 | $this->parser->setTarget(Target::TARGET_PROPERTY); |
246 | 246 | $this->parser->setImports($this->getPropertyImports($property)); |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | public function getMethodAnnotations(ReflectionMethod $method) |
273 | 273 | { |
274 | 274 | $class = $method->getDeclaringClass(); |
275 | - $context = 'method ' . $class->getName() . '::' . $method->getName() . '()'; |
|
275 | + $context = 'method '.$class->getName().'::'.$method->getName().'()'; |
|
276 | 276 | |
277 | 277 | $this->parser->setTarget(Target::TARGET_METHOD); |
278 | 278 | $this->parser->setImports($this->getMethodImports($method)); |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | public function getConstantAnnotations(\ReflectionClassConstant $constant): array |
305 | 305 | { |
306 | 306 | $class = $constant->getDeclaringClass(); |
307 | - $context = 'constant ' . $class->getName() . "::" . $constant->getName(); |
|
307 | + $context = 'constant '.$class->getName()."::".$constant->getName(); |
|
308 | 308 | |
309 | 309 | $this->parser->setTarget(Target::TARGET_CONSTANT); |
310 | 310 | $this->parser->setImports($this->getConstantImports($constant)); |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | private function collectParsingMetadata(ReflectionClass $class) |
439 | 439 | { |
440 | 440 | $ignoredAnnotationNames = self::$globalIgnoredNames; |
441 | - $annotations = $this->preParser->parse($class->getDocComment(), 'class ' . $class->name); |
|
441 | + $annotations = $this->preParser->parse($class->getDocComment(), 'class '.$class->name); |
|
442 | 442 | |
443 | 443 | foreach ($annotations as $annotation) { |
444 | 444 | if ($annotation instanceof IgnoreAnnotation) { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public function __construct(Reader $reader, $cacheDir, $debug = false, $umask = 0002) |
74 | 74 | { |
75 | - if ( ! is_int($umask)) { |
|
75 | + if (!is_int($umask)) { |
|
76 | 76 | throw new \InvalidArgumentException(sprintf( |
77 | 77 | 'The parameter umask must be an integer, was: %s', |
78 | 78 | gettype($umask) |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function getClassAnnotations(\ReflectionClass $class) |
97 | 97 | { |
98 | - if ( ! isset($this->classNameHashes[$class->name])) { |
|
98 | + if (!isset($this->classNameHashes[$class->name])) { |
|
99 | 99 | $this->classNameHashes[$class->name] = sha1($class->name); |
100 | 100 | } |
101 | 101 | $key = $this->classNameHashes[$class->name]; |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | public function getPropertyAnnotations(\ReflectionProperty $property) |
131 | 131 | { |
132 | 132 | $class = $property->getDeclaringClass(); |
133 | - if ( ! isset($this->classNameHashes[$class->name])) { |
|
133 | + if (!isset($this->classNameHashes[$class->name])) { |
|
134 | 134 | $this->classNameHashes[$class->name] = sha1($class->name); |
135 | 135 | } |
136 | 136 | $key = $this->classNameHashes[$class->name].'$'.$property->getName(); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | public function getConstantAnnotations(\ReflectionClassConstant $constant): array |
166 | 166 | { |
167 | 167 | $class = $constant->getDeclaringClass(); |
168 | - if ( ! isset($this->classNameHashes[$class->name])) { |
|
168 | + if (!isset($this->classNameHashes[$class->name])) { |
|
169 | 169 | $this->classNameHashes[$class->name] = sha1($class->name); |
170 | 170 | } |
171 | 171 | $key = $this->classNameHashes[$class->name].'::'.$constant->getName(); |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | public function getMethodAnnotations(\ReflectionMethod $method) |
201 | 201 | { |
202 | 202 | $class = $method->getDeclaringClass(); |
203 | - if ( ! isset($this->classNameHashes[$class->name])) { |
|
203 | + if (!isset($this->classNameHashes[$class->name])) { |
|
204 | 204 | $this->classNameHashes[$class->name] = sha1($class->name); |
205 | 205 | } |
206 | 206 | $key = $this->classNameHashes[$class->name].'#'.$method->getName(); |