Skip to content

Commit 36d62ee

Browse files
committed
minor symfony#14134 [CS] Fix some phpdocs for Twig extensions & templating helpers (stloyd)
This PR was merged into the 2.3 branch. Discussion ---------- [CS] Fix some phpdocs for Twig extensions & templating helpers | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tests pass? | yes | License | MIT Commits ------- a95f7f3 Fix some phpdocs for Twig extensions & templating helpers
2 parents d9d43a8 + a95f7f3 commit 36d62ee

File tree

16 files changed

+22
-39
lines changed

16 files changed

+22
-39
lines changed

src/Symfony/Bridge/Twig/Extension/CodeExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ public function formatFileFromText($text)
210210
}, $text);
211211
}
212212

213+
/**
214+
* {@inheritdoc}
215+
*/
213216
public function getName()
214217
{
215218
return 'code';

src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ public function controller($controller, $attributes = array(), $query = array())
8181
return new ControllerReference($controller, $attributes, $query);
8282
}
8383

84+
/**
85+
* {@inheritdoc}
86+
*/
8487
public function getName()
8588
{
8689
return 'http_kernel';

src/Symfony/Bridge/Twig/Extension/RoutingExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ public function isUrlGenerationSafe(\Twig_Node $argsNode)
8989
}
9090

9191
/**
92-
* Returns the name of the extension.
93-
*
94-
* @return string The extension name
92+
* {@inheritdoc}
9593
*/
9694
public function getName()
9795
{

src/Symfony/Bridge/Twig/Extension/SecurityExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ public function getFunctions()
5252
}
5353

5454
/**
55-
* Returns the name of the extension.
56-
*
57-
* @return string The extension name
55+
* {@inheritdoc}
5856
*/
5957
public function getName()
6058
{

src/Symfony/Bridge/Twig/Extension/TranslationExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ public function transchoice($message, $count, array $arguments = array(), $domai
9999
}
100100

101101
/**
102-
* Returns the name of the extension.
103-
*
104-
* @return string The extension name
102+
* {@inheritdoc}
105103
*/
106104
public function getName()
107105
{

src/Symfony/Bridge/Twig/Extension/YamlExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ public function dump($value, $inline = 0, $dumpObjects = false)
5656
}
5757

5858
/**
59-
* Returns the name of the extension.
60-
*
61-
* @return string The extension name
59+
* {@inheritdoc}
6260
*/
6361
public function getName()
6462
{

src/Symfony/Bundle/FrameworkBundle/Templating/Helper/ActionsHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ public function controller($controller, $attributes = array(), $query = array())
5858
}
5959

6060
/**
61-
* Returns the canonical name of this helper.
62-
*
63-
* @return string The canonical name
61+
* {@inheritdoc}
6462
*/
6563
public function getName()
6664
{

src/Symfony/Bundle/FrameworkBundle/Templating/Helper/CodeHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ public function formatFileFromText($text)
205205
}
206206

207207
/**
208-
* Returns the canonical name of this helper.
209-
*
210-
* @return string The canonical name
208+
* {@inheritdoc}
211209
*/
212210
public function getName()
213211
{

src/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ public function getLocale()
5959
}
6060

6161
/**
62-
* Returns the canonical name of this helper.
63-
*
64-
* @return string The canonical name
62+
* {@inheritdoc}
6563
*/
6664
public function getName()
6765
{

src/Symfony/Bundle/FrameworkBundle/Templating/Helper/RouterHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ public function generate($name, $parameters = array(), $referenceType = UrlGener
5050
}
5151

5252
/**
53-
* Returns the canonical name of this helper.
54-
*
55-
* @return string The canonical name
53+
* {@inheritdoc}
5654
*/
5755
public function getName()
5856
{

0 commit comments

Comments
 (0)