@@ -160,11 +160,11 @@ |
||
| 160 | 160 | * |
| 161 | 161 | * If the class has already been declared you get only the set alias. |
| 162 | 162 | * |
| 163 | - * @param string $qualifiedName |
|
| 164 | - * @param null|string $alias |
|
| 165 | - * |
|
| 166 | - * @return string the used alias |
|
| 167 | - */ |
|
| 163 | + * @param string $qualifiedName |
|
| 164 | + * @param null|string $alias |
|
| 165 | + * |
|
| 166 | + * @return string the used alias |
|
| 167 | + */ |
|
| 168 | 168 | public function declareUse($qualifiedName, $alias = null) |
| 169 | 169 | { |
| 170 | 170 | $qualifiedName = trim($qualifiedName, '\\'); |
@@ -165,8 +165,7 @@ |
||
| 165 | 165 | * |
| 166 | 166 | * @return string the used alias |
| 167 | 167 | */ |
| 168 | - public function declareUse($qualifiedName, $alias = null) |
|
| 169 | - { |
|
| 168 | + public function declareUse($qualifiedName, $alias = null) { |
|
| 170 | 169 | $qualifiedName = trim($qualifiedName, '\\'); |
| 171 | 170 | if (!$this->hasUseStatement($qualifiedName)) { |
| 172 | 171 | $this->addUseStatement($qualifiedName, $alias); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $docblock = new Docblock($ref->getDeclaringFunction()); |
| 65 | 65 | |
| 66 | 66 | $params = $docblock->getTags('param'); |
| 67 | - $tag = $params->find($ref->name, function (ParamTag $t, $name) { |
|
| 67 | + $tag = $params->find($ref->name, function(ParamTag $t, $name) { |
|
| 68 | 68 | return $t->getVariable() == '$' . $name; |
| 69 | 69 | }); |
| 70 | 70 | |
@@ -123,7 +123,7 @@ discard block |
||
| 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 | } |