Skip to content

Commit

Permalink
minor #33145 [TwigBridge] Replaced plain doc block copies with inheri…
Browse files Browse the repository at this point in the history
…tdoc (derrabus)

This PR was merged into the 3.4 branch.

Discussion
----------

[TwigBridge] Replaced plain doc block copies with inheritdoc

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | preparation for #30323
| License       | MIT
| Doc PR        | N/A

Commits
-------

e50d3bc [TwigBridge] Replaced plain doc block copies with inheritdoc.
  • Loading branch information
fabpot committed Aug 13, 2019
2 parents 0fd4f8a + e50d3bc commit 04b4116
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 25 deletions.
4 changes: 1 addition & 3 deletions src/Symfony/Bridge/Twig/Extension/RoutingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ public function __construct(UrlGeneratorInterface $generator)
}

/**
* Returns a list of functions to add to the existing list.
*
* @return array An array of functions
* {@inheritdoc}
*/
public function getFunctions()
{
Expand Down
10 changes: 2 additions & 8 deletions src/Symfony/Bridge/Twig/TokenParser/TransChoiceTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@
class TransChoiceTokenParser extends TransTokenParser
{
/**
* Parses a token and returns a node.
*
* @return Node
*
* @throws SyntaxError
* {@inheritdoc}
*/
public function parse(Token $token)
{
Expand Down Expand Up @@ -82,9 +78,7 @@ public function decideTransChoiceFork($token)
}

/**
* Gets the tag name associated with this token parser.
*
* @return string The tag name
* {@inheritdoc}
*/
public function getTag()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
class TransDefaultDomainTokenParser extends AbstractTokenParser
{
/**
* Parses a token and returns a node.
*
* @return Node
* {@inheritdoc}
*/
public function parse(Token $token)
{
Expand All @@ -38,9 +36,7 @@ public function parse(Token $token)
}

/**
* Gets the tag name associated with this token parser.
*
* @return string The tag name
* {@inheritdoc}
*/
public function getTag()
{
Expand Down
10 changes: 2 additions & 8 deletions src/Symfony/Bridge/Twig/TokenParser/TransTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@
class TransTokenParser extends AbstractTokenParser
{
/**
* Parses a token and returns a node.
*
* @return Node
*
* @throws SyntaxError
* {@inheritdoc}
*/
public function parse(Token $token)
{
Expand Down Expand Up @@ -83,9 +79,7 @@ public function decideTransFork($token)
}

/**
* Gets the tag name associated with this token parser.
*
* @return string The tag name
* {@inheritdoc}
*/
public function getTag()
{
Expand Down

0 comments on commit 04b4116

Please sign in to comment.