@@ -12,8 +12,8 @@ |
||
| 12 | 12 | ->in($dir); |
| 13 | 13 | |
| 14 | 14 | $versions = GitVersionCollection::create($dir) |
| 15 | - ->addFromTags('v0.*') |
|
| 16 | - ->add('master', 'master branch') |
|
| 15 | + ->addFromTags('v0.*') |
|
| 16 | + ->add('master', 'master branch') |
|
| 17 | 17 | ; |
| 18 | 18 | |
| 19 | 19 | return new Sami($iterator, [ |
@@ -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)) { |
@@ -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 | } |
@@ -47,7 +47,6 @@ |
||
| 47 | 47 | /** |
| 48 | 48 | * Returns a constant |
| 49 | 49 | * |
| 50 | - * @param string|PhpConstant $nameOrConstant constant or name |
|
| 51 | 50 | * @throws \InvalidArgumentException If the constant cannot be found |
| 52 | 51 | * @return PhpConstant |
| 53 | 52 | */ |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | * @return \Closure |
| 166 | 166 | */ |
| 167 | 167 | private function getConstantSortFunc() { |
| 168 | - return $this->constantSortFunc ? : 'strcasecmp'; |
|
| 168 | + return $this->constantSortFunc ?: 'strcasecmp'; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | /** |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | */ |
| 124 | 124 | public function getDocblockTag() { |
| 125 | 125 | return ParamTag::create() |
| 126 | - ->setType($this->getType() ? : 'mixed') |
|
| 126 | + ->setType($this->getType() ?: 'mixed') |
|
| 127 | 127 | ->setVariable($this->getName()) |
| 128 | 128 | ->setDescription($this->getTypeDescription()); |
| 129 | 129 | } |