Skip to content

Commit b181991

Browse files
Run php-cs-fixer
1 parent 000e757 commit b181991

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

AppVariable.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ public function setDebug(bool $debug)
5252
/**
5353
* Returns the current token.
5454
*
55-
* @return TokenInterface|null
56-
*
5755
* @throws \RuntimeException When the TokenStorage is not available
5856
*/
5957
public function getToken(): ?TokenInterface
@@ -68,8 +66,6 @@ public function getToken(): ?TokenInterface
6866
/**
6967
* Returns the current user.
7068
*
71-
* @return object|null
72-
*
7369
* @see TokenInterface::getUser()
7470
*/
7571
public function getUser(): ?object
@@ -150,8 +146,6 @@ public function getDebug(): bool
150146
* * getFlashes() returns all the flash messages
151147
* * getFlashes('notice') returns a simple array with flash messages of that type
152148
* * getFlashes(['notice', 'error']) returns a nested array of type => messages.
153-
*
154-
* @return array
155149
*/
156150
public function getFlashes(string|array $types = null): array
157151
{

NodeVisitor/Scope.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(self $parent = null)
3030
*
3131
* @return self
3232
*/
33-
public function enter(): \Symfony\Bridge\Twig\NodeVisitor\Scope
33+
public function enter(): self
3434
{
3535
return new self($this);
3636
}
@@ -40,7 +40,7 @@ public function enter(): \Symfony\Bridge\Twig\NodeVisitor\Scope
4040
*
4141
* @return self|null
4242
*/
43-
public function leave(): ?\Symfony\Bridge\Twig\NodeVisitor\Scope
43+
public function leave(): ?self
4444
{
4545
$this->left = true;
4646

@@ -67,8 +67,6 @@ public function set(string $key, mixed $value): static
6767

6868
/**
6969
* Tests if a data is visible from current scope.
70-
*
71-
* @return bool
7270
*/
7371
public function has(string $key): bool
7472
{
@@ -85,8 +83,6 @@ public function has(string $key): bool
8583

8684
/**
8785
* Returns data visible from current scope.
88-
*
89-
* @return mixed
9086
*/
9187
public function get(string $key, mixed $default = null): mixed
9288
{

Translation/TwigExtractor.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ protected function extractTemplate(string $template, MessageCatalogue $catalogue
8484
$visitor->disable();
8585
}
8686

87-
/**
88-
* @return bool
89-
*/
9087
protected function canBeExtracted(string $file): bool
9188
{
9289
return $this->isFile($file) && 'twig' === pathinfo($file, \PATHINFO_EXTENSION);

0 commit comments

Comments
 (0)