CS: no whitespace before return type colon

This commit is contained in:
jrfnl
2021-08-08 19:41:03 +02:00
parent 2a1aba8089
commit a607236134
71 changed files with 522 additions and 522 deletions
+12 -12
View File
@@ -69,12 +69,12 @@ final class DocBlock
$this->isTemplateStart = $isTemplateStart;
}
public function getSummary() : string
public function getSummary(): string
{
return $this->summary;
}
public function getDescription() : DocBlock\Description
public function getDescription(): DocBlock\Description
{
return $this->description;
}
@@ -82,7 +82,7 @@ final class DocBlock
/**
* Returns the current context.
*/
public function getContext() : ?Types\Context
public function getContext(): ?Types\Context
{
return $this->context;
}
@@ -90,7 +90,7 @@ final class DocBlock
/**
* Returns the current location.
*/
public function getLocation() : ?Location
public function getLocation(): ?Location
{
return $this->location;
}
@@ -114,7 +114,7 @@ final class DocBlock
*
* @see self::isTemplateEnd() for the check whether a closing marker was provided.
*/
public function isTemplateStart() : bool
public function isTemplateStart(): bool
{
return $this->isTemplateStart;
}
@@ -124,7 +124,7 @@ final class DocBlock
*
* @see self::isTemplateStart() for a more complete description of the Docblock Template functionality.
*/
public function isTemplateEnd() : bool
public function isTemplateEnd(): bool
{
return $this->isTemplateEnd;
}
@@ -134,7 +134,7 @@ final class DocBlock
*
* @return Tag[]
*/
public function getTags() : array
public function getTags(): array
{
return $this->tags;
}
@@ -147,7 +147,7 @@ final class DocBlock
*
* @return Tag[]
*/
public function getTagsByName(string $name) : array
public function getTagsByName(string $name): array
{
$result = [];
@@ -170,7 +170,7 @@ final class DocBlock
*
* @return TagWithType[]
*/
public function getTagsWithTypeByName(string $name) : array
public function getTagsWithTypeByName(string $name): array
{
$result = [];
@@ -190,7 +190,7 @@ final class DocBlock
*
* @param string $name Tag name to check for.
*/
public function hasTag(string $name) : bool
public function hasTag(string $name): bool
{
foreach ($this->getTags() as $tag) {
if ($tag->getName() === $name) {
@@ -206,7 +206,7 @@ final class DocBlock
*
* @param Tag $tagToRemove The tag to remove.
*/
public function removeTag(Tag $tagToRemove) : void
public function removeTag(Tag $tagToRemove): void
{
foreach ($this->tags as $key => $tag) {
if ($tag === $tagToRemove) {
@@ -221,7 +221,7 @@ final class DocBlock
*
* @param Tag $tag The tag to add.
*/
private function addTag(Tag $tag) : void
private function addTag(Tag $tag): void
{
$this->tags[] = $tag;
}