@@ -357,6 +357,9 @@ |
||
357 | 357 | } |
358 | 358 | } |
359 | 359 | |
360 | + /** |
|
361 | + * @param string $type |
|
362 | + */ |
|
360 | 363 | protected function writeFunctionReturnType($type) { |
361 | 364 | if ($this->config->getGenerateReturnTypeHints() && $type != NULL && false === strpos($type, '|')) { |
362 | 365 | $this->writer->write(': ')->write($type); |
@@ -171,10 +171,10 @@ |
||
171 | 171 | * |
172 | 172 | * If the class has already been declared you get only the set alias. |
173 | 173 | * |
174 | - * @param string $qualifiedName |
|
175 | - * @param null|string $alias |
|
176 | - * @return string the used alias |
|
177 | - */ |
|
174 | + * @param string $qualifiedName |
|
175 | + * @param null|string $alias |
|
176 | + * @return string the used alias |
|
177 | + */ |
|
178 | 178 | public function declareUse($qualifiedName, $alias = null) { |
179 | 179 | $qualifiedName = trim($qualifiedName, '\\'); |
180 | 180 | if (!$this->hasUseStatement($qualifiedName)) { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | foreach ($this->parameters as $param) { |
15 | 15 | $ptag = $param->getDocblockTag(); |
16 | 16 | |
17 | - $tag = $tags->find($ptag, function (ParamTag $tag, ParamTag $ptag) { |
|
17 | + $tag = $tags->find($ptag, function(ParamTag $tag, ParamTag $ptag) { |
|
18 | 18 | return $tag->getVariable() == $ptag->getVariable(); |
19 | 19 | }); |
20 | 20 |
@@ -19,10 +19,10 @@ |
||
19 | 19 | 'headerDocblock' => null, |
20 | 20 | 'blankLineAtEnd' => true, |
21 | 21 | 'declareStrictTypes' => false, |
22 | - 'generateScalarTypeHints' => function (Options $options) { |
|
22 | + 'generateScalarTypeHints' => function(Options $options) { |
|
23 | 23 | return $options['declareStrictTypes']; |
24 | 24 | }, |
25 | - 'generateReturnTypeHints' => function (Options $options) { |
|
25 | + 'generateReturnTypeHints' => function(Options $options) { |
|
26 | 26 | return $options['declareStrictTypes']; |
27 | 27 | }, |
28 | 28 | ]); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | protected function getDefaultOptions() { |
42 | 42 | return [ |
43 | 43 | 'generateDocblock' => true, |
44 | - 'generateEmptyDocblock' => function (Options $options) { |
|
44 | + 'generateEmptyDocblock' => function(Options $options) { |
|
45 | 45 | return $options['generateDocblock']; |
46 | 46 | }, |
47 | 47 | 'generateScalarTypeHints' => false, |
@@ -5,6 +5,7 @@ |
||
5 | 5 | |
6 | 6 | /** |
7 | 7 | * Generates docblock based on provided information |
8 | + * @return void |
|
8 | 9 | */ |
9 | 10 | public function generateDocblock(); |
10 | 11 | } |