Browse Source

fixed phpdoc

Fabien Potencier 15 years ago
parent
commit
e40447427a

+ 1 - 1
src/Symfony/Components/BrowserKit/Cookie.php

@@ -90,7 +90,7 @@ class Cookie
      * @param string $cookie A Set-Cookie header value
      * @param string $url    The base URL
      *
-     * @param Symfony\Components\BrowserKit\Cookie A Cookie instance
+     * @return Symfony\Components\BrowserKit\Cookie A Cookie instance
      */
     static public function fromString($cookie, $url = null)
     {

+ 3 - 3
src/Symfony/Components/DependencyInjection/BuilderConfiguration.php

@@ -93,9 +93,9 @@ class BuilderConfiguration
     /**
      * Loads the configuration for an extension.
      *
-     * @param $extension LoaderExtensionInterface A LoaderExtensionInterface instance
-     * @param $tag       string                   The extension tag to load (without the namespace - namespace.tag)
-     * @param $values    array                    An array of values that customizes the extension
+     * @param LoaderExtensionInterface $extension A LoaderExtensionInterface instance
+     * @param string                   $tag       The extension tag to load (without the namespace - namespace.tag)
+     * @param array                    $values    An array of values that customizes the extension
      *
      * @return BuilderConfiguration The current instance
      */

+ 2 - 2
src/Symfony/Components/DependencyInjection/Loader/LoaderExtension.php

@@ -27,8 +27,8 @@ abstract class LoaderExtension implements LoaderExtensionInterface
     /**
      * Sets a configuration entry point for the given extension name.
      *
-     * @param string The configuration extension name
-     * @param mixed  A resource
+     * @param string $name     The configuration extension name
+     * @param mixed  $resource A resource
      */
     public function setConfiguration($name, $resource)
     {

+ 2 - 2
src/Symfony/Components/DependencyInjection/Loader/LoaderExtensionInterface.php

@@ -25,8 +25,8 @@ interface LoaderExtensionInterface
     /**
      * Sets a configuration entry point for the given extension name.
      *
-     * @param string The configuration extension name
-     * @param mixed  A resource
+     * @param string $name     The configuration extension name
+     * @param mixed  $resource A resource
      */
     public function setConfiguration($name, $resource);
 

+ 2 - 2
src/Symfony/Components/DomCrawler/Crawler.php

@@ -224,7 +224,7 @@ class Crawler extends \SplObjectStorage
      *
      * @param \Closure $closure An anonymous function
      *
-     * @param Crawler A Crawler instance with the selected nodes.
+     * @return Crawler A Crawler instance with the selected nodes.
      */
     public function reduce(\Closure $closure)
     {
@@ -390,7 +390,7 @@ class Crawler extends \SplObjectStorage
      *
      * @param array $attributes An array of attributes
      *
-     * @param array An array of extracted values
+     * @return array An array of extracted values
      */
     public function extract($attributes)
     {

+ 2 - 2
src/Symfony/Components/DomCrawler/Form.php

@@ -207,7 +207,7 @@ class Form implements \ArrayAccess
      *
      * @param string $name The field name
      *
-     * @param Boolean true if the field exists, false otherwise
+     * @return Boolean true if the field exists, false otherwise
      */
     public function hasField($name)
     {
@@ -298,7 +298,7 @@ class Form implements \ArrayAccess
      *
      * @param string $name The field name
      *
-     * @param Boolean true if the field exists, false otherwise
+     * @return Boolean true if the field exists, false otherwise
      */
     public function offsetExists($name)
     {

+ 1 - 1
src/Symfony/Components/HttpKernel/Cache/Esi.php

@@ -191,7 +191,7 @@ class Esi
      *
      * @param array $attributes An array containing the attributes.
      *
-     * @param string The response content for the include.
+     * @return string The response content for the include.
      */
     protected function handleEsiIncludeTag($attributes)
     {

+ 1 - 1
src/Symfony/Components/HttpKernel/CacheControl.php

@@ -257,7 +257,7 @@ class CacheControl
      *
      * @param string $header The value of the Cache-Control HTTP header
      *
-     * @param array An array representing the attribute values
+     * @return array An array representing the attribute values
      */
     protected function parse($header)
     {

+ 1 - 1
src/Symfony/Components/HttpKernel/Profiler/Profiler.php

@@ -206,7 +206,7 @@ class Profiler implements \ArrayAccess
      *
      * @param string $name The collector name
      *
-     * @param Boolean true if the collector exists, false otherwise
+     * @return Boolean true if the collector exists, false otherwise
      */
     public function offsetExists($name)
     {

+ 4 - 4
src/Symfony/Components/Routing/Route.php

@@ -67,7 +67,7 @@ class Route
      *
      * This method implements a fluent interface.
      *
-     * @param string The pattern
+     * @param string $pattern The pattern
      *
      * @return Route The current Route instance
      */
@@ -98,7 +98,7 @@ class Route
      *
      * This method implements a fluent interface.
      *
-     * @param array The options
+     * @param array $options The options
      *
      * @return Route The current Route instance
      */
@@ -142,7 +142,7 @@ class Route
      *
      * This method implements a fluent interface.
      *
-     * @param array The defaults
+     * @param array $defaults The defaults
      *
      * @return Route The current Route instance
      */
@@ -180,7 +180,7 @@ class Route
      *
      * This method implements a fluent interface.
      *
-     * @param array The requirements
+     * @param array $requirements The requirements
      *
      * @return Route The current Route instance
      */

+ 1 - 1
src/Symfony/Components/Routing/RouteCompiler.php

@@ -34,7 +34,7 @@ class RouteCompiler implements RouteCompilerInterface
      *
      * @param Route $route A Route instance
      *
-     * @param CompiledRoute A CompiledRoute instance
+     * @return CompiledRoute A CompiledRoute instance
      */
     public function compile(Route $route)
     {

+ 1 - 1
src/Symfony/Components/Routing/RouteCompilerInterface.php

@@ -25,7 +25,7 @@ interface RouteCompilerInterface
      *
      * @param Route $route A Route instance
      *
-     * @param CompiledRoute A CompiledRoute instance
+     * @return CompiledRoute A CompiledRoute instance
      */
     public function compile(Route $route);
 }

+ 1 - 1
src/Symfony/Components/Templating/Helper/JavascriptsHelper.php

@@ -54,7 +54,7 @@ class JavascriptsHelper extends Helper
     /**
      * Returns all JavaScript files.
      *
-     * @param array An array of JavaScript files to include
+     * @return array An array of JavaScript files to include
      */
     public function get()
     {

+ 1 - 1
src/Symfony/Components/Templating/Helper/StylesheetsHelper.php

@@ -54,7 +54,7 @@ class StylesheetsHelper extends Helper
     /**
      * Returns all stylesheet files.
      *
-     * @param array An array of stylesheet files to include
+     * @return array An array of stylesheet files to include
      */
     public function get()
     {

+ 1 - 1
src/Symfony/Foundation/Bundle/Bundle.php

@@ -116,7 +116,7 @@ abstract class Bundle implements BundleInterface
     /**
      * Registers the Commands for the console.
      *
-     * @param Symfony\Components\Console\Application An Application instance
+     * @param Symfony\Components\Console\Application $application An Application instance
      */
     public function registerCommands(Application $application)
     {