Skip to content

Commit

Permalink
minor #14134 [CS] Fix some phpdocs for Twig extensions & templating h…
Browse files Browse the repository at this point in the history
…elpers (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
  • Loading branch information
fabpot committed Apr 2, 2015
2 parents d9d43a8 + a95f7f3 commit 36d62ee
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 39 deletions.
3 changes: 3 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/CodeExtension.php
Expand Up @@ -210,6 +210,9 @@ public function formatFileFromText($text)
}, $text);
}

/**
* {@inheritdoc}
*/
public function getName()
{
return 'code';
Expand Down
3 changes: 3 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php
Expand Up @@ -81,6 +81,9 @@ public function controller($controller, $attributes = array(), $query = array())
return new ControllerReference($controller, $attributes, $query);
}

/**
* {@inheritdoc}
*/
public function getName()
{
return 'http_kernel';
Expand Down
4 changes: 1 addition & 3 deletions src/Symfony/Bridge/Twig/Extension/RoutingExtension.php
Expand Up @@ -89,9 +89,7 @@ public function isUrlGenerationSafe(\Twig_Node $argsNode)
}

/**
* Returns the name of the extension.
*
* @return string The extension name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
4 changes: 1 addition & 3 deletions src/Symfony/Bridge/Twig/Extension/SecurityExtension.php
Expand Up @@ -52,9 +52,7 @@ public function getFunctions()
}

/**
* Returns the name of the extension.
*
* @return string The extension name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
4 changes: 1 addition & 3 deletions src/Symfony/Bridge/Twig/Extension/TranslationExtension.php
Expand Up @@ -99,9 +99,7 @@ public function transchoice($message, $count, array $arguments = array(), $domai
}

/**
* Returns the name of the extension.
*
* @return string The extension name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
4 changes: 1 addition & 3 deletions src/Symfony/Bridge/Twig/Extension/YamlExtension.php
Expand Up @@ -56,9 +56,7 @@ public function dump($value, $inline = 0, $dumpObjects = false)
}

/**
* Returns the name of the extension.
*
* @return string The extension name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
Expand Up @@ -58,9 +58,7 @@ public function controller($controller, $attributes = array(), $query = array())
}

/**
* Returns the canonical name of this helper.
*
* @return string The canonical name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
Expand Up @@ -205,9 +205,7 @@ public function formatFileFromText($text)
}

/**
* Returns the canonical name of this helper.
*
* @return string The canonical name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
Expand Up @@ -59,9 +59,7 @@ public function getLocale()
}

/**
* Returns the canonical name of this helper.
*
* @return string The canonical name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
Expand Up @@ -50,9 +50,7 @@ public function generate($name, $parameters = array(), $referenceType = UrlGener
}

/**
* Returns the canonical name of this helper.
*
* @return string The canonical name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
Expand Up @@ -62,9 +62,7 @@ public function hasFlash($name)
}

/**
* Returns the canonical name of this helper.
*
* @return string The canonical name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
Expand Up @@ -50,9 +50,7 @@ public function transChoice($id, $number, array $parameters = array(), $domain =
}

/**
* Returns the canonical name of this helper.
*
* @return string The canonical name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
Expand Up @@ -114,9 +114,7 @@ private function generateLogoutUrl($key, $referenceType)
}

/**
* Returns the canonical name of this helper.
*
* @return string The canonical name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
Expand Up @@ -48,9 +48,7 @@ public function isGranted($role, $object = null, $field = null)
}

/**
* Returns the canonical name of this helper.
*
* @return string The canonical name
* {@inheritdoc}
*/
public function getName()
{
Expand Down
3 changes: 3 additions & 0 deletions src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php
Expand Up @@ -62,6 +62,9 @@ public function getTokenParsers()
);
}

/**
* {@inheritdoc}
*/
public function getName()
{
return 'actions';
Expand Down
4 changes: 1 addition & 3 deletions src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php
Expand Up @@ -68,9 +68,7 @@ public function getAssetsVersion($packageName = null)
}

/**
* Returns the name of the extension.
*
* @return string The extension name
* {@inheritdoc}
*/
public function getName()
{
Expand Down

0 comments on commit 36d62ee

Please sign in to comment.