@@ -111,8 +111,8 @@ |
||
111 | 111 | */ |
112 | 112 | public function __toString() |
113 | 113 | { |
114 | - return ($this->type ? $this->type . ' ' : '') |
|
115 | - . '$' . $this->variableName |
|
116 | - . ($this->description ? ' ' . $this->description : ''); |
|
114 | + return ($this->type ? $this->type.' ' : '') |
|
115 | + . '$'.$this->variableName |
|
116 | + . ($this->description ? ' '.$this->description : ''); |
|
117 | 117 | } |
118 | 118 | } |
@@ -72,6 +72,6 @@ |
||
72 | 72 | */ |
73 | 73 | public function __toString() |
74 | 74 | { |
75 | - return $this->link . ($this->description ? ' ' . $this->description->render() : ''); |
|
75 | + return $this->link.($this->description ? ' '.$this->description->render() : ''); |
|
76 | 76 | } |
77 | 77 | } |
@@ -78,6 +78,6 @@ |
||
78 | 78 | */ |
79 | 79 | public function __toString() |
80 | 80 | { |
81 | - return $this->refers . ' ' . $this->description->render(); |
|
81 | + return $this->refers.' '.$this->description->render(); |
|
82 | 82 | } |
83 | 83 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | */ |
74 | 74 | public function __toString() |
75 | 75 | { |
76 | - return $this->authorName . (strlen($this->authorEmail) ? ' <' . $this->authorEmail . '>' : ''); |
|
76 | + return $this->authorName.(strlen($this->authorEmail) ? ' <'.$this->authorEmail.'>' : ''); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -81,9 +81,9 @@ |
||
81 | 81 | */ |
82 | 82 | private function validateTagName($name) |
83 | 83 | { |
84 | - if (! preg_match('/^' . StandardTagFactory::REGEX_TAGNAME . '$/u', $name)) { |
|
84 | + if (!preg_match('/^'.StandardTagFactory::REGEX_TAGNAME.'$/u', $name)) { |
|
85 | 85 | throw new \InvalidArgumentException( |
86 | - 'The tag name "' . $name . '" is not wellformed. Tags may only consist of letters, underscores, ' |
|
86 | + 'The tag name "'.$name.'" is not wellformed. Tags may only consist of letters, underscores, ' |
|
87 | 87 | . 'hyphens and backslashes.' |
88 | 88 | ); |
89 | 89 | } |
@@ -86,7 +86,7 @@ |
||
86 | 86 | |
87 | 87 | $tags = []; |
88 | 88 | foreach ($this->tags as $tag) { |
89 | - $tags[] = '{' . $formatter->format($tag) . '}'; |
|
89 | + $tags[] = '{'.$formatter->format($tag).'}'; |
|
90 | 90 | } |
91 | 91 | return vsprintf($this->bodyTemplate, $tags); |
92 | 92 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | $comment = "{$firstIndent}/**\n{$indent} * {$text}\n{$indent} *\n"; |
85 | 85 | $comment = $this->addTagBlock($docblock, $wrapLength, $indent, $comment); |
86 | - $comment .= $indent . ' */'; |
|
86 | + $comment .= $indent.' */'; |
|
87 | 87 | |
88 | 88 | return $comment; |
89 | 89 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | */ |
116 | 116 | private function getSummaryAndDescriptionTextBlock(DocBlock $docblock, $wrapLength) |
117 | 117 | { |
118 | - $text = $docblock->getSummary() . ((string)$docblock->getDescription() ? "\n\n" . $docblock->getDescription() |
|
118 | + $text = $docblock->getSummary().((string) $docblock->getDescription() ? "\n\n".$docblock->getDescription() |
|
119 | 119 | : ''); |
120 | 120 | if ($wrapLength !== null) { |
121 | 121 | $text = wordwrap($text, $wrapLength); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function create($tagLine, TypeContext $context = null) |
109 | 109 | { |
110 | - if (! $context) { |
|
110 | + if (!$context) { |
|
111 | 111 | $context = new TypeContext(''); |
112 | 112 | } |
113 | 113 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | if ($tagBody !== '' && $tagBody[0] === '[') { |
117 | 117 | throw new \InvalidArgumentException( |
118 | - 'The tag "' . $tagLine . '" does not seem to be wellformed, please check it for errors' |
|
118 | + 'The tag "'.$tagLine.'" does not seem to be wellformed, please check it for errors' |
|
119 | 119 | ); |
120 | 120 | } |
121 | 121 | |
@@ -167,9 +167,9 @@ discard block |
||
167 | 167 | private function extractTagParts($tagLine) |
168 | 168 | { |
169 | 169 | $matches = array(); |
170 | - if (! preg_match('/^@(' . self::REGEX_TAGNAME . ')(?:\s*([^\s].*)|$)/us', $tagLine, $matches)) { |
|
170 | + if (!preg_match('/^@('.self::REGEX_TAGNAME.')(?:\s*([^\s].*)|$)/us', $tagLine, $matches)) { |
|
171 | 171 | throw new \InvalidArgumentException( |
172 | - 'The tag "' . $tagLine . '" does not seem to be wellformed, please check it for errors' |
|
172 | + 'The tag "'.$tagLine.'" does not seem to be wellformed, please check it for errors' |
|
173 | 173 | ); |
174 | 174 | } |
175 | 175 | |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | private function fetchParametersForHandlerFactoryMethod($handlerClassName) |
269 | 269 | { |
270 | - if (! isset($this->tagHandlerParameterCache[$handlerClassName])) { |
|
270 | + if (!isset($this->tagHandlerParameterCache[$handlerClassName])) { |
|
271 | 271 | $methodReflection = new \ReflectionMethod($handlerClassName, 'create'); |
272 | 272 | $this->tagHandlerParameterCache[$handlerClassName] = $methodReflection->getParameters(); |
273 | 273 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | private function getExamplePathFromExampleDirectory($file) |
137 | 137 | { |
138 | - return getcwd() . DIRECTORY_SEPARATOR . 'examples' . DIRECTORY_SEPARATOR . $file; |
|
138 | + return getcwd().DIRECTORY_SEPARATOR.'examples'.DIRECTORY_SEPARATOR.$file; |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | */ |
149 | 149 | private function constructExamplePath($directory, $file) |
150 | 150 | { |
151 | - return rtrim($directory, '\\/') . DIRECTORY_SEPARATOR . $file; |
|
151 | + return rtrim($directory, '\\/').DIRECTORY_SEPARATOR.$file; |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |