Skip to content

Commit

Permalink
Apply phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Jun 29, 2024
1 parent 5b2fcd4 commit d7aac28
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/Tag/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ public function getTagException(string $message, ?\Throwable $previous = null):
}

/**
* @param non-empty-string $tag
*
* @api
*
* @param non-empty-string $tag
*/
public function nextType(string $tag, TypesParserInterface $parser): TypeStatement
{
Expand All @@ -98,53 +98,58 @@ public function nextOptionalType(TypesParserInterface $parser): ?TypeStatement
}

/**
* @api
*
* @param non-empty-string $tag
*
* @return non-empty-string
* @api
*/
public function nextIdentifier(string $tag): string
{
return $this->apply(new IdentifierApplicator($tag));
}

/**
* @return non-empty-string|null
* @api
*
* @return non-empty-string|null
*/
public function nextOptionalIdentifier(): ?string
{
return $this->apply(new OptionalIdentifierApplicator());
}

/**
* @api
*
* @param non-empty-string $tag
*
* @return non-empty-string
* @api
*/
public function nextVariable(string $tag): string
{
return $this->apply(new VariableNameApplicator($tag));
}

/**
* @return non-empty-string|null
* @api
*
* @return non-empty-string|null
*/
public function nextOptionalVariable(): ?string
{
return $this->apply(new OptionalVariableNameApplicator());
}

/**
* @api
*
* @template T of non-empty-string
*
* @param non-empty-string $tag
* @param T $value
*
* @return T
* @api
*/
public function nextValue(string $tag, string $value): string
{
Expand All @@ -153,12 +158,13 @@ public function nextValue(string $tag, string $value): string
}

/**
* @api
*
* @template T of non-empty-string
*
* @param T $value
*
* @return T|null
* @api
*/
public function nextOptionalValue(string $value): ?string
{
Expand Down

0 comments on commit d7aac28

Please sign in to comment.