mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Clean up
This commit is contained in:
@@ -48,17 +48,4 @@ final class Mixin extends TagWithType implements Factory\StaticMethod
|
|||||||
|
|
||||||
return new static($type, $description);
|
return new static($type, $description);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __toString(): string
|
|
||||||
{
|
|
||||||
if ($this->description) {
|
|
||||||
$description = $this->description->render();
|
|
||||||
} else {
|
|
||||||
$description = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$type = (string) $this->type;
|
|
||||||
|
|
||||||
return $type . ($description !== '' ? ($type !== '' ? ' ' : '') . $description : '');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,17 +60,4 @@ final class Return_ extends TagWithType implements Factory\StaticMethod
|
|||||||
|
|
||||||
return new static($type, $description);
|
return new static($type, $description);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __toString(): string
|
|
||||||
{
|
|
||||||
if ($this->description) {
|
|
||||||
$description = $this->description->render();
|
|
||||||
} else {
|
|
||||||
$description = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$type = $this->type ? '' . $this->type : 'mixed';
|
|
||||||
|
|
||||||
return $type . ($description !== '' ? ' ' . $description : '');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,4 +71,17 @@ abstract class TagWithType extends BaseTag
|
|||||||
|
|
||||||
return [$type, $description];
|
return [$type, $description];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __toString(): string
|
||||||
|
{
|
||||||
|
if ($this->description) {
|
||||||
|
$description = $this->description->render();
|
||||||
|
} else {
|
||||||
|
$description = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$type = (string) $this->type;
|
||||||
|
|
||||||
|
return $type . ($description !== '' ? ($type !== '' ? ' ' : '') . $description : '');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,17 +48,4 @@ final class Throws extends TagWithType implements Factory\StaticMethod
|
|||||||
|
|
||||||
return new static($type, $description);
|
return new static($type, $description);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __toString(): string
|
|
||||||
{
|
|
||||||
if ($this->description) {
|
|
||||||
$description = $this->description->render();
|
|
||||||
} else {
|
|
||||||
$description = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$type = (string) $this->type;
|
|
||||||
|
|
||||||
return $type . ($description !== '' ? ($type !== '' ? ' ' : '') . $description : '');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user