@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | $namespace = preg_quote($class->getNamespaceName()); |
39 | - $content = preg_replace('/^.*?(\bnamespace\s+' . $namespace . '\s*[;{].*)$/s', '\\1', $content); |
|
40 | - $tokenizer = new TokenParser('<?php ' . $content); |
|
39 | + $content = preg_replace('/^.*?(\bnamespace\s+'.$namespace.'\s*[;{].*)$/s', '\\1', $content); |
|
40 | + $tokenizer = new TokenParser('<?php '.$content); |
|
41 | 41 | |
42 | 42 | $statements = $tokenizer->parseUseStatements($class->getNamespaceName()); |
43 | 43 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | private function getFileContent($filename, $lineNumber) |
56 | 56 | { |
57 | - if ( ! is_file($filename)) { |
|
57 | + if (!is_file($filename)) { |
|
58 | 58 | return null; |
59 | 59 | } |
60 | 60 |
@@ -57,13 +57,13 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function __construct(array $values) |
59 | 59 | { |
60 | - if (!isset($values['value'])){ |
|
60 | + if (!isset($values['value'])) { |
|
61 | 61 | $values['value'] = null; |
62 | 62 | } |
63 | - if (is_string($values['value'])){ |
|
63 | + if (is_string($values['value'])) { |
|
64 | 64 | $values['value'] = [$values['value']]; |
65 | 65 | } |
66 | - if (!is_array($values['value'])){ |
|
66 | + if (!is_array($values['value'])) { |
|
67 | 67 | throw new \InvalidArgumentException( |
68 | 68 | sprintf('@Target expects either a string value, or an array of strings, "%s" given.', |
69 | 69 | is_object($values['value']) ? get_class($values['value']) : gettype($values['value']) |
@@ -73,10 +73,10 @@ discard block |
||
73 | 73 | |
74 | 74 | $bitmask = 0; |
75 | 75 | foreach ($values['value'] as $literal) { |
76 | - if(!isset(self::$map[$literal])){ |
|
76 | + if (!isset(self::$map[$literal])) { |
|
77 | 77 | throw new \InvalidArgumentException( |
78 | 78 | sprintf('Invalid Target "%s". Available targets: [%s]', |
79 | - $literal, implode(', ', array_keys(self::$map))) |
|
79 | + $literal, implode(', ', array_keys(self::$map))) |
|
80 | 80 | ); |
81 | 81 | } |
82 | 82 | $bitmask |= self::$map[$literal]; |
@@ -38,12 +38,12 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function __construct(array $values) |
40 | 40 | { |
41 | - if ( ! isset($values['literal'])) { |
|
41 | + if (!isset($values['literal'])) { |
|
42 | 42 | $values['literal'] = []; |
43 | 43 | } |
44 | 44 | |
45 | 45 | foreach ($values['value'] as $var) { |
46 | - if( ! is_scalar($var)) { |
|
46 | + if (!is_scalar($var)) { |
|
47 | 47 | throw new \InvalidArgumentException(sprintf( |
48 | 48 | '@Enum supports only scalar values "%s" given.', |
49 | 49 | is_object($var) ? get_class($var) : gettype($var) |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | foreach ($values['literal'] as $key => $var) { |
55 | - if( ! in_array($key, $values['value'])) { |
|
55 | + if (!in_array($key, $values['value'])) { |
|
56 | 56 | throw new \InvalidArgumentException(sprintf( |
57 | 57 | 'Undefined enumerator value "%s" for literal "%s".', |
58 | - $key , $var |
|
58 | + $key, $var |
|
59 | 59 | )); |
60 | 60 | } |
61 | 61 | } |
@@ -99,17 +99,17 @@ |
||
99 | 99 | $explicitAlias = true; |
100 | 100 | $alias = ''; |
101 | 101 | } else if ($token === ',') { |
102 | - $statements[strtolower($alias)] = $groupRoot . $class; |
|
102 | + $statements[strtolower($alias)] = $groupRoot.$class; |
|
103 | 103 | $class = ''; |
104 | 104 | $alias = ''; |
105 | 105 | $explicitAlias = false; |
106 | 106 | } else if ($token === ';') { |
107 | - $statements[strtolower($alias)] = $groupRoot . $class; |
|
107 | + $statements[strtolower($alias)] = $groupRoot.$class; |
|
108 | 108 | break; |
109 | - } else if ($token === '{' ) { |
|
109 | + } else if ($token === '{') { |
|
110 | 110 | $groupRoot = $class; |
111 | 111 | $class = ''; |
112 | - } else if ($token === '}' ) { |
|
112 | + } else if ($token === '}') { |
|
113 | 113 | continue; |
114 | 114 | } else { |
115 | 115 | break; |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public static function syntaxError($message) |
24 | 24 | { |
25 | - return new self('[Syntax Error] ' . $message); |
|
25 | + return new self('[Syntax Error] '.$message); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public static function semanticalError($message) |
36 | 36 | { |
37 | - return new self('[Semantical Error] ' . $message); |
|
37 | + return new self('[Semantical Error] '.$message); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public static function creationError($message) |
51 | 51 | { |
52 | - return new self('[Creation Error] ' . $message); |
|
52 | + return new self('[Creation Error] '.$message); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public static function typeError($message) |
65 | 65 | { |
66 | - return new self('[Type Error] ' . $message); |
|
66 | + return new self('[Type Error] '.$message); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | return self::semanticalError(sprintf( |
82 | 82 | "Couldn't find constant %s%s.", |
83 | 83 | $identifier, |
84 | - $context ? ', ' . $context : '' |
|
84 | + $context ? ', '.$context : '' |
|
85 | 85 | )); |
86 | 86 | } |
87 | 87 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $annotationName, |
107 | 107 | $context, |
108 | 108 | $expected, |
109 | - is_object($actual) ? 'an instance of ' . get_class($actual) : gettype($actual) |
|
109 | + is_object($actual) ? 'an instance of '.get_class($actual) : gettype($actual) |
|
110 | 110 | )); |
111 | 111 | } |
112 | 112 |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $this->parser->setIgnoredAnnotationNames($this->getIgnoredAnnotationNames($class)); |
142 | 142 | $this->parser->setIgnoredAnnotationNamespaces(self::$globalIgnoredNamespaces); |
143 | 143 | |
144 | - return $this->parser->parse($class->getDocComment(), 'class ' . $class->getName()); |
|
144 | + return $this->parser->parse($class->getDocComment(), 'class '.$class->getName()); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | public function getPropertyAnnotations(ReflectionProperty $property) |
167 | 167 | { |
168 | 168 | $class = $property->getDeclaringClass(); |
169 | - $context = 'property ' . $class->getName() . "::\$" . $property->getName(); |
|
169 | + $context = 'property '.$class->getName()."::\$".$property->getName(); |
|
170 | 170 | |
171 | 171 | $this->parser->setTarget(Target::TARGET_PROPERTY); |
172 | 172 | $this->parser->setImports($this->getPropertyImports($property)); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | public function getMethodAnnotations(ReflectionMethod $method) |
199 | 199 | { |
200 | 200 | $class = $method->getDeclaringClass(); |
201 | - $context = 'method ' . $class->getName() . '::' . $method->getName() . '()'; |
|
201 | + $context = 'method '.$class->getName().'::'.$method->getName().'()'; |
|
202 | 202 | |
203 | 203 | $this->parser->setTarget(Target::TARGET_METHOD); |
204 | 204 | $this->parser->setImports($this->getMethodImports($method)); |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | private function collectParsingMetadata(ReflectionClass $class) |
319 | 319 | { |
320 | 320 | $ignoredAnnotationNames = self::$globalIgnoredNames; |
321 | - $annotations = $this->preParser->parse($class->getDocComment(), 'class ' . $class->name); |
|
321 | + $annotations = $this->preParser->parse($class->getDocComment(), 'class '.$class->name); |
|
322 | 322 | |
323 | 323 | foreach ($annotations as $annotation) { |
324 | 324 | if ($annotation instanceof IgnoreAnnotation) { |
@@ -102,7 +102,7 @@ |
||
102 | 102 | ', ', |
103 | 103 | array_filter( |
104 | 104 | self::LABELS, |
105 | - function (int $target) : bool { |
|
105 | + function(int $target) : bool { |
|
106 | 106 | return ($this->target & $target) === $target; |
107 | 107 | }, |
108 | 108 | ARRAY_FILTER_USE_KEY |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $this->usesConstructor = $hasConstructor; |
46 | 46 | $this->properties = array_combine( |
47 | 47 | array_map( |
48 | - static function (PropertyMetadata $property) : string { |
|
48 | + static function(PropertyMetadata $property) : string { |
|
49 | 49 | return $property->getName(); |
50 | 50 | }, |
51 | 51 | $properties |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $defaultProperties = array_values( |
57 | 57 | array_filter( |
58 | 58 | $properties, |
59 | - static function (PropertyMetadata $property) : bool { |
|
59 | + static function(PropertyMetadata $property) : bool { |
|
60 | 60 | return $property->isDefault(); |
61 | 61 | } |
62 | 62 | ) |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | */ |
302 | 302 | private function match($token) |
303 | 303 | { |
304 | - if ( ! $this->lexer->isNextToken($token) ) { |
|
304 | + if (!$this->lexer->isNextToken($token)) { |
|
305 | 305 | $this->syntaxError($this->lexer->getLiteral($token)); |
306 | 306 | } |
307 | 307 | |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | */ |
321 | 321 | private function matchAny(array $tokens) |
322 | 322 | { |
323 | - if ( ! $this->lexer->isNextTokenAny($tokens)) { |
|
323 | + if (!$this->lexer->isNextTokenAny($tokens)) { |
|
324 | 324 | $this->syntaxError(implode(' or ', array_map([$this->lexer, 'getLiteral'], $tokens))); |
325 | 325 | } |
326 | 326 | |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | : sprintf("'%s' at position %s", $token['value'], $token['position']); |
350 | 350 | |
351 | 351 | if (strlen($this->context)) { |
352 | - $message .= ' in ' . $this->context; |
|
352 | + $message .= ' in '.$this->context; |
|
353 | 353 | } |
354 | 354 | |
355 | 355 | $message .= '.'; |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | |
416 | 416 | self::$metadataParser->setTarget(Target::TARGET_CLASS); |
417 | 417 | |
418 | - foreach (self::$metadataParser->parse($docComment, 'class @' . $name) as $annotation) { |
|
418 | + foreach (self::$metadataParser->parse($docComment, 'class @'.$name) as $annotation) { |
|
419 | 419 | if ($annotation instanceof Target) { |
420 | 420 | $annotationBuilder = $annotationBuilder->withTarget(AnnotationTarget::fromAnnotation($annotation)); |
421 | 421 | |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | } |
433 | 433 | |
434 | 434 | // if there is no constructor we will inject values into public properties |
435 | - if (! $useConstructor) { |
|
435 | + if (!$useConstructor) { |
|
436 | 436 | // collect all public properties |
437 | 437 | foreach ($class->getProperties(\ReflectionProperty::IS_PUBLIC) as $i => $property) { |
438 | 438 | $propertyBuilder = new PropertyMetadataBuilder($property->getName()); |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | $attribute = new Attribute(); |
453 | 453 | $attribute->required = (false !== strpos($propertyComment, '@Required')); |
454 | 454 | $attribute->name = $property->name; |
455 | - $attribute->type = (false !== strpos($propertyComment, '@var') && preg_match('/@var\s+([^\s]+)/',$propertyComment, $matches)) |
|
455 | + $attribute->type = (false !== strpos($propertyComment, '@var') && preg_match('/@var\s+([^\s]+)/', $propertyComment, $matches)) |
|
456 | 456 | ? $matches[1] |
457 | 457 | : 'mixed'; |
458 | 458 | |
@@ -460,18 +460,18 @@ discard block |
||
460 | 460 | |
461 | 461 | // checks if the property has @Enum |
462 | 462 | if (false !== strpos($propertyComment, '@Enum')) { |
463 | - $context = 'property ' . $class->name . "::\$" . $property->name; |
|
463 | + $context = 'property '.$class->name."::\$".$property->name; |
|
464 | 464 | |
465 | 465 | self::$metadataParser->setTarget(Target::TARGET_PROPERTY); |
466 | 466 | |
467 | 467 | foreach (self::$metadataParser->parse($propertyComment, $context) as $annotation) { |
468 | - if ( ! $annotation instanceof Enum) { |
|
468 | + if (!$annotation instanceof Enum) { |
|
469 | 469 | continue; |
470 | 470 | } |
471 | 471 | |
472 | 472 | $propertyBuilder = $propertyBuilder->withEnum([ |
473 | 473 | 'value' => $annotation->value, |
474 | - 'literal' => ( ! empty($annotation->literal)) |
|
474 | + 'literal' => (!empty($annotation->literal)) |
|
475 | 475 | ? $annotation->literal |
476 | 476 | : $annotation->value, |
477 | 477 | ]); |
@@ -599,7 +599,7 @@ discard block |
||
599 | 599 | |
600 | 600 | if ('\\' !== $name[0]) { |
601 | 601 | $pos = strpos($name, '\\'); |
602 | - $alias = (false === $pos)? $name : substr($name, 0, $pos); |
|
602 | + $alias = (false === $pos) ? $name : substr($name, 0, $pos); |
|
603 | 603 | $found = false; |
604 | 604 | $loweredAlias = strtolower($alias); |
605 | 605 | |
@@ -614,19 +614,19 @@ discard block |
||
614 | 614 | } elseif (isset($this->imports[$loweredAlias])) { |
615 | 615 | $found = true; |
616 | 616 | $name = (false !== $pos) |
617 | - ? $this->imports[$loweredAlias] . substr($name, $pos) |
|
617 | + ? $this->imports[$loweredAlias].substr($name, $pos) |
|
618 | 618 | : $this->imports[$loweredAlias]; |
619 | - } elseif ( ! isset($this->ignoredAnnotationNames[$name]) |
|
619 | + } elseif (!isset($this->ignoredAnnotationNames[$name]) |
|
620 | 620 | && isset($this->imports['__NAMESPACE__']) |
621 | - && $this->classExists($this->imports['__NAMESPACE__'] . '\\' . $name) |
|
621 | + && $this->classExists($this->imports['__NAMESPACE__'].'\\'.$name) |
|
622 | 622 | ) { |
623 | 623 | $name = $this->imports['__NAMESPACE__'].'\\'.$name; |
624 | 624 | $found = true; |
625 | - } elseif (! isset($this->ignoredAnnotationNames[$name]) && $this->classExists($name)) { |
|
625 | + } elseif (!isset($this->ignoredAnnotationNames[$name]) && $this->classExists($name)) { |
|
626 | 626 | $found = true; |
627 | 627 | } |
628 | 628 | |
629 | - if ( ! $found) { |
|
629 | + if (!$found) { |
|
630 | 630 | if ($this->isIgnoredAnnotation($name)) { |
631 | 631 | return false; |
632 | 632 | } |
@@ -635,9 +635,9 @@ discard block |
||
635 | 635 | } |
636 | 636 | } |
637 | 637 | |
638 | - $name = ltrim($name,'\\'); |
|
638 | + $name = ltrim($name, '\\'); |
|
639 | 639 | |
640 | - if ( ! $this->classExists($name)) { |
|
640 | + if (!$this->classExists($name)) { |
|
641 | 641 | throw AnnotationException::semanticalError(sprintf('The annotation "@%s" in %s does not exist, or could not be auto-loaded.', $name, $this->context)); |
642 | 642 | } |
643 | 643 | |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | |
648 | 648 | |
649 | 649 | // collects the metadata annotation only if there is not yet |
650 | - if (! $this->metadata->has($name) && ! array_key_exists($name, $this->nonAnnotationClasses)) { |
|
650 | + if (!$this->metadata->has($name) && !array_key_exists($name, $this->nonAnnotationClasses)) { |
|
651 | 651 | $this->collectAnnotationMetadata($name); |
652 | 652 | } |
653 | 653 | |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | $enum = $property->getEnum(); |
683 | 683 | |
684 | 684 | // checks if the attribute is a valid enumerator |
685 | - if ($enum !== null && isset($values[$propertyName]) && ! in_array($values[$propertyName], $enum['value'])) { |
|
685 | + if ($enum !== null && isset($values[$propertyName]) && !in_array($values[$propertyName], $enum['value'])) { |
|
686 | 686 | throw AnnotationException::enumeratorError($propertyName, $name, $this->context, $enum['literal'], $values[$propertyName]); |
687 | 687 | } |
688 | 688 | } |
@@ -698,9 +698,9 @@ discard block |
||
698 | 698 | } |
699 | 699 | |
700 | 700 | // handle a not given attribute or null value |
701 | - if (! isset($values[$valueName])) { |
|
701 | + if (!isset($values[$valueName])) { |
|
702 | 702 | if ($property->isRequired()) { |
703 | - throw AnnotationException::requiredError($propertyName, $originalName, $this->context, 'a(n) ' . $type['value']); |
|
703 | + throw AnnotationException::requiredError($propertyName, $originalName, $this->context, 'a(n) '.$type['value']); |
|
704 | 704 | } |
705 | 705 | |
706 | 706 | continue; |
@@ -708,7 +708,7 @@ discard block |
||
708 | 708 | |
709 | 709 | if ($type !== null && $type['type'] === 'array') { |
710 | 710 | // handle the case of a single value |
711 | - if ( ! is_array($values[$valueName])) { |
|
711 | + if (!is_array($values[$valueName])) { |
|
712 | 712 | $values[$valueName] = [$values[$valueName]]; |
713 | 713 | } |
714 | 714 | |
@@ -734,7 +734,7 @@ discard block |
||
734 | 734 | $instance = new $name(); |
735 | 735 | |
736 | 736 | foreach ($values as $property => $value) { |
737 | - if (! isset($this->metadata->get($name)->getProperties()[$property])) { |
|
737 | + if (!isset($this->metadata->get($name)->getProperties()[$property])) { |
|
738 | 738 | if ('value' !== $property) { |
739 | 739 | throw AnnotationException::creationError( |
740 | 740 | sprintf( |
@@ -772,13 +772,13 @@ discard block |
||
772 | 772 | { |
773 | 773 | $values = []; |
774 | 774 | |
775 | - if ( ! $this->lexer->isNextToken(DocLexer::T_OPEN_PARENTHESIS)) { |
|
775 | + if (!$this->lexer->isNextToken(DocLexer::T_OPEN_PARENTHESIS)) { |
|
776 | 776 | return $values; |
777 | 777 | } |
778 | 778 | |
779 | 779 | $this->match(DocLexer::T_OPEN_PARENTHESIS); |
780 | 780 | |
781 | - if ( ! $this->lexer->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) { |
|
781 | + if (!$this->lexer->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) { |
|
782 | 782 | $values = $this->Values(); |
783 | 783 | } |
784 | 784 | |
@@ -806,7 +806,7 @@ discard block |
||
806 | 806 | $token = $this->lexer->lookahead; |
807 | 807 | $value = $this->Value(); |
808 | 808 | |
809 | - if ( ! is_object($value) && ! is_array($value)) { |
|
809 | + if (!is_object($value) && !is_array($value)) { |
|
810 | 810 | $this->syntaxError('Value', $token); |
811 | 811 | } |
812 | 812 | |
@@ -816,10 +816,10 @@ discard block |
||
816 | 816 | foreach ($values as $k => $value) { |
817 | 817 | if (is_object($value) && $value instanceof \stdClass) { |
818 | 818 | $values[$value->name] = $value->value; |
819 | - } else if ( ! isset($values['value'])){ |
|
819 | + } else if (!isset($values['value'])) { |
|
820 | 820 | $values['value'] = $value; |
821 | 821 | } else { |
822 | - if ( ! is_array($values['value'])) { |
|
822 | + if (!is_array($values['value'])) { |
|
823 | 823 | $values['value'] = [$values['value']]; |
824 | 824 | } |
825 | 825 | |
@@ -843,7 +843,7 @@ discard block |
||
843 | 843 | { |
844 | 844 | $identifier = $this->Identifier(); |
845 | 845 | |
846 | - if ( ! defined($identifier) && false !== strpos($identifier, '::') && '\\' !== $identifier[0]) { |
|
846 | + if (!defined($identifier) && false !== strpos($identifier, '::') && '\\' !== $identifier[0]) { |
|
847 | 847 | list($className, $const) = explode('::', $identifier); |
848 | 848 | |
849 | 849 | $pos = strpos($className, '\\'); |
@@ -865,12 +865,12 @@ discard block |
||
865 | 865 | case isset($this->imports[$loweredAlias]): |
866 | 866 | $found = true; |
867 | 867 | $className = (false !== $pos) |
868 | - ? $this->imports[$loweredAlias] . substr($className, $pos) |
|
868 | + ? $this->imports[$loweredAlias].substr($className, $pos) |
|
869 | 869 | : $this->imports[$loweredAlias]; |
870 | 870 | break; |
871 | 871 | |
872 | 872 | default: |
873 | - if(isset($this->imports['__NAMESPACE__'])) { |
|
873 | + if (isset($this->imports['__NAMESPACE__'])) { |
|
874 | 874 | $ns = $this->imports['__NAMESPACE__']; |
875 | 875 | |
876 | 876 | if (class_exists($ns.'\\'.$className) || interface_exists($ns.'\\'.$className)) { |
@@ -882,7 +882,7 @@ discard block |
||
882 | 882 | } |
883 | 883 | |
884 | 884 | if ($found) { |
885 | - $identifier = $className . '::' . $const; |
|
885 | + $identifier = $className.'::'.$const; |
|
886 | 886 | } |
887 | 887 | } |
888 | 888 | |
@@ -907,7 +907,7 @@ discard block |
||
907 | 907 | private function Identifier() |
908 | 908 | { |
909 | 909 | // check if we have an annotation |
910 | - if ( ! $this->lexer->isNextTokenAny(self::$classIdentifiers)) { |
|
910 | + if (!$this->lexer->isNextTokenAny(self::$classIdentifiers)) { |
|
911 | 911 | $this->syntaxError('namespace separator or identifier'); |
912 | 912 | } |
913 | 913 | |
@@ -921,7 +921,7 @@ discard block |
||
921 | 921 | $this->match(DocLexer::T_NAMESPACE_SEPARATOR); |
922 | 922 | $this->matchAny(self::$classIdentifiers); |
923 | 923 | |
924 | - $className .= '\\' . $this->lexer->token['value']; |
|
924 | + $className .= '\\'.$this->lexer->token['value']; |
|
925 | 925 | } |
926 | 926 | |
927 | 927 | return $className; |
@@ -969,11 +969,11 @@ discard block |
||
969 | 969 | |
970 | 970 | case DocLexer::T_INTEGER: |
971 | 971 | $this->match(DocLexer::T_INTEGER); |
972 | - return (int)$this->lexer->token['value']; |
|
972 | + return (int) $this->lexer->token['value']; |
|
973 | 973 | |
974 | 974 | case DocLexer::T_FLOAT: |
975 | 975 | $this->match(DocLexer::T_FLOAT); |
976 | - return (float)$this->lexer->token['value']; |
|
976 | + return (float) $this->lexer->token['value']; |
|
977 | 977 | |
978 | 978 | case DocLexer::T_TRUE: |
979 | 979 | $this->match(DocLexer::T_TRUE); |
@@ -1101,9 +1101,9 @@ discard block |
||
1101 | 1101 | } |
1102 | 1102 | |
1103 | 1103 | foreach (array_keys($this->ignoredAnnotationNamespaces) as $ignoredAnnotationNamespace) { |
1104 | - $ignoredAnnotationNamespace = rtrim($ignoredAnnotationNamespace, '\\') . '\\'; |
|
1104 | + $ignoredAnnotationNamespace = rtrim($ignoredAnnotationNamespace, '\\').'\\'; |
|
1105 | 1105 | |
1106 | - if (0 === stripos(rtrim($name, '\\') . '\\', $ignoredAnnotationNamespace)) { |
|
1106 | + if (0 === stripos(rtrim($name, '\\').'\\', $ignoredAnnotationNamespace)) { |
|
1107 | 1107 | return true; |
1108 | 1108 | } |
1109 | 1109 | } |