8000 Fix some phpdocs for Twig extensions & templating helpers · symfony/symfony@a95f7f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit a95f7f3

Browse files
committed
Fix some phpdocs for Twig extensions & templating helpers
1 parent 9215c22 commit a95f7f3

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
{

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ public function hasFlash($name)
6262
}
6363

6464
/**
65-
* Returns the canonical name of this helper.
66-
*
67-
* @return string The canonical name
65+
* {@inheritdoc}
6866
*/
6967
public function getName()
7068
{

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ public function transChoice($id, $number, array $parameters = array(), $domain =
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
{

src/Symfony/Bundle/SecurityBundle/Templating/Helper/LogoutUrlHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ private function generateLogoutUrl($key, $referenceType)
114114
}
115115

116116
/**
117-
* Returns the canonical name of this helper.
118-
*
119-
* @return string The canonical name
117+
* {@inheritdoc}
120118
*/
121119
public function getName()
122120
{

src/Symfony/Bundle/SecurityBundle/Templating/Helper/SecurityHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ public function isGranted($role, $object = null, $field = null)
4848
}
4949

5050
/**
51-
* Returns the canonical name of this helper.
52-
*
53-
* @return string The canonical name
51+
* {@inheritdoc}
5452
*/
5553
public function getName()
5654
{

src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ public function getTokenParsers()
6262
);
6363
}
6464

65+
/**
66+
* {@inheritdoc}
67+
*/
6568
public function getName()
6669
{
6770
return 'actions';

src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ public function getAssetsVersion($packageName = null)
6868
}
6969

7070
/**
71-
* Returns the name of the extension.
72-
*
73-
* @return string The extension name
71+
* {@inheritdoc}
7472
*/
7573
public function getName()
7674
{

0 commit comments

Comments
 (0)
0