Fixed Phpdoc

This commit is contained in:
Pascal Borreli 2012-07-28 16:07:17 +00:00
parent de958c722c
commit 4c726ea64c
18 changed files with 46 additions and 40 deletions

View File

@ -312,7 +312,7 @@ class EntityChoiceList extends ObjectChoiceList
* *
* Otherwise a new integer is generated. * Otherwise a new integer is generated.
* *
* @param mixed $choice The choice to create an index for * @param mixed $entity The choice to create an index for
* *
* @return integer|string A unique index containing only ASCII letters, * @return integer|string A unique index containing only ASCII letters,
* digits and underscores. * digits and underscores.
@ -333,7 +333,7 @@ class EntityChoiceList extends ObjectChoiceList
* *
* Otherwise a new integer is generated. * Otherwise a new integer is generated.
* *
* @param mixed $choice The choice to create a value for * @param mixed $entity The choice to create a value for
* *
* @return integer|string A unique value without character limitations. * @return integer|string A unique value without character limitations.
*/ */

View File

@ -276,7 +276,7 @@ class ModelChoiceList extends ObjectChoiceList
* *
* Otherwise a new integer is generated. * Otherwise a new integer is generated.
* *
* @param mixed $choice The choice to create an index for * @param mixed $model The choice to create an index for
* *
* @return integer|string A unique index containing only ASCII letters, * @return integer|string A unique index containing only ASCII letters,
* digits and underscores. * digits and underscores.
@ -297,7 +297,7 @@ class ModelChoiceList extends ObjectChoiceList
* *
* Otherwise a new integer is generated. * Otherwise a new integer is generated.
* *
* @param mixed $choice The choice to create a value for * @param mixed $model The choice to create a value for
* *
* @return integer|string A unique value without character limitations. * @return integer|string A unique value without character limitations.
*/ */

View File

@ -199,6 +199,7 @@ class HttpKernel extends BaseHttpKernel
* @param string $controller A controller name to execute (a string like BlogBundle:Post:index), or a relative URI * @param string $controller A controller name to execute (a string like BlogBundle:Post:index), or a relative URI
* @param array $attributes An array of request attributes * @param array $attributes An array of request attributes
* @param array $query An array of request query parameters * @param array $query An array of request query parameters
* @param boolean $secure
* *
* @return string An internal URI * @return string An internal URI
*/ */
@ -226,6 +227,7 @@ class HttpKernel extends BaseHttpKernel
* Renders an HInclude tag. * Renders an HInclude tag.
* *
* @param string $uri A URI * @param string $uri A URI
* @param string $defaultContent Default content
*/ */
public function renderHIncludeTag($uri, $defaultContent = null) public function renderHIncludeTag($uri, $defaultContent = null)
{ {

View File

@ -201,7 +201,7 @@ class ExprBuilderTest extends \PHPUnit_Framework_TestCase
/** /**
* Assert that the given test builder, will return the given value * Assert that the given test builder, will return the given value
* @param mixed $value The value to test * @param mixed $value The value to test
* @param TreeBuilder $test The tree builder to finalize * @param TreeBuilder $treeBuilder The tree builder to finalize
* @param mixed $config The config values that new to be finalized * @param mixed $config The config values that new to be finalized
*/ */
protected function assertFinalizedValueIs($value, $treeBuilder, $config=null) protected function assertFinalizedValueIs($value, $treeBuilder, $config=null)

View File

@ -29,7 +29,7 @@ class Filesystem
* *
* @param string $originFile The original filename * @param string $originFile The original filename
* @param string $targetFile The target filename * @param string $targetFile The target filename
* @param array $override Whether to override an existing file or not * @param boolean $override Whether to override an existing file or not
* *
* @throws IOException When copy fails * @throws IOException When copy fails
*/ */

View File

@ -388,8 +388,8 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
$this->filesystem->chmod($file, 0400); $this->filesystem->chmod($file, 0400);
$this->filesystem->chmod($dir, 0753); $this->filesystem->chmod($dir, 0753);
$this->assertEquals(753, $this->getFilePermisions($dir)); $this->assertEquals(753, $this->getFilePermissions($dir));
$this->assertEquals(400, $this->getFilePermisions($file)); $this->assertEquals(400, $this->getFilePermissions($file));
} }
public function testChmodWrongMod() public function testChmodWrongMod()
@ -414,8 +414,8 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
$this->filesystem->chmod($file, 0400, 0000, true); $this->filesystem->chmod($file, 0400, 0000, true);
$this->filesystem->chmod($dir, 0753, 0000, true); $this->filesystem->chmod($dir, 0753, 0000, true);
$this->assertEquals(753, $this->getFilePermisions($dir)); $this->assertEquals(753, $this->getFilePermissions($dir));
$this->assertEquals(753, $this->getFilePermisions($file)); $this->assertEquals(753, $this->getFilePermissions($file));
} }
public function testChmodAppliesUmask() public function testChmodAppliesUmask()
@ -426,7 +426,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
touch($file); touch($file);
$this->filesystem->chmod($file, 0770, 0022); $this->filesystem->chmod($file, 0770, 0022);
$this->assertEquals(750, $this->getFilePermisions($file)); $this->assertEquals(750, $this->getFilePermissions($file));
} }
public function testChmodChangesModeOfArrayOfFiles() public function testChmodChangesModeOfArrayOfFiles()
@ -442,8 +442,8 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
$this->filesystem->chmod($files, 0753); $this->filesystem->chmod($files, 0753);
$this->assertEquals(753, $this->getFilePermisions($file)); $this->assertEquals(753, $this->getFilePermissions($file));
$this->assertEquals(753, $this->getFilePermisions($directory)); $this->assertEquals(753, $this->getFilePermissions($directory));
} }
public function testChmodChangesModeOfTraversableFileObject() public function testChmodChangesModeOfTraversableFileObject()
@ -459,8 +459,8 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
$this->filesystem->chmod($files, 0753); $this->filesystem->chmod($files, 0753);
$this->assertEquals(753, $this->getFilePermisions($file)); $this->assertEquals(753, $this->getFilePermissions($file));
$this->assertEquals(753, $this->getFilePermisions($directory)); $this->assertEquals(753, $this->getFilePermissions($directory));
} }
public function testChown() public function testChown()
@ -832,7 +832,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
* *
* @return integer * @return integer
*/ */
private function getFilePermisions($filePath) private function getFilePermissions($filePath)
{ {
return (int) substr(sprintf('%o', fileperms($filePath)), -3); return (int) substr(sprintf('%o', fileperms($filePath)), -3);
} }

View File

@ -496,7 +496,7 @@ class ChoiceList implements ChoiceListInterface
/** /**
* Fixes the data type of the given choices to avoid comparison problems. * Fixes the data type of the given choices to avoid comparison problems.
* *
* @param array $choice The choices. * @param array $choices The choices.
* *
* @return array The fixed choices. * @return array The fixed choices.
* *

View File

@ -58,6 +58,7 @@ class FormTypeCsrfExtension extends AbstractTypeExtension
* *
* @param FormView $view The form view * @param FormView $view The form view
* @param FormInterface $form The form * @param FormInterface $form The form
* @param array $options The options
*/ */
public function finishView(FormView $view, FormInterface $form, array $options) public function finishView(FormView $view, FormInterface $form, array $options)
{ {

View File

@ -266,7 +266,7 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface
* @param string $property The property for which to find constraints * @param string $property The property for which to find constraints
* @param \Closure $closure The closure that returns a guess * @param \Closure $closure The closure that returns a guess
* for a given constraint * for a given constraint
* @param mixed $default The default value assumed if no other value * @param mixed $defaultValue The default value assumed if no other value
* can be guessed. * can be guessed.
* *
* @return Guess The guessed value with the highest confidence * @return Guess The guessed value with the highest confidence

View File

@ -56,6 +56,7 @@ class FormBuilder extends FormConfig implements \IteratorAggregate, FormBuilderI
* @param string $dataClass * @param string $dataClass
* @param EventDispatcherInterface $dispatcher * @param EventDispatcherInterface $dispatcher
* @param FormFactoryInterface $factory * @param FormFactoryInterface $factory
* @param array $options
*/ */
public function __construct($name, $dataClass, EventDispatcherInterface $dispatcher, FormFactoryInterface $factory, array $options = array()) public function __construct($name, $dataClass, EventDispatcherInterface $dispatcher, FormFactoryInterface $factory, array $options = array())
{ {

View File

@ -587,9 +587,9 @@ class PropertyPath implements \IteratorAggregate, PropertyPathInterface
* Searches for add and remove methods. * Searches for add and remove methods.
* *
* @param \ReflectionClass $reflClass The reflection class for the given object * @param \ReflectionClass $reflClass The reflection class for the given object
* @param string|null $singular The singular form of the property name or null. * @param string|null $singulars The singular form of the property name or null.
* *
* @return array|null An array containin the adder and remover when found, null otherwise. * @return array|null An array containing the adder and remover when found, null otherwise.
* *
* @throws InvalidPropertyException If the property does not exist. * @throws InvalidPropertyException If the property does not exist.
*/ */

View File

@ -60,7 +60,7 @@ class RouterDataCollector extends DataCollector
/** /**
* Remembers the controller associated to each request. * Remembers the controller associated to each request.
* *
* @param FilterControllerEvent The filter controller event * @param FilterControllerEvent $event The filter controller event
*/ */
public function onKernelController(FilterControllerEvent $event) public function onKernelController(FilterControllerEvent $event)
{ {

View File

@ -43,7 +43,7 @@ class ExceptionHandler
/** /**
* Register the exception handler. * Register the exception handler.
* *
* @return The registered exception handler * @return ExceptionHandler The registered exception handler
*/ */
public static function register($debug = true) public static function register($debug = true)
{ {

View File

@ -370,7 +370,7 @@ class RedisProfilerStorage implements ProfilerStorageInterface
/** /**
* Removes the specified keys. * Removes the specified keys.
* *
* @param array $key * @param array $keys
* *
* @return Boolean * @return Boolean
*/ */

View File

@ -104,6 +104,8 @@ abstract class StubIntl
/** /**
* Returns the symbolic name for a given error code * Returns the symbolic name for a given error code
* *
* @param integer $code The error code returned by StubIntl::getErrorCode()
*
* @return string * @return string
*/ */
public static function getErrorName($code) public static function getErrorName($code)

View File

@ -525,7 +525,7 @@ class Process
* *
* @param float $timeout The timeout in seconds * @param float $timeout The timeout in seconds
* *
* @return int The exitcode of the process * @return integer The exitcode of the process
* *
* @throws \RuntimeException if the process got signaled * @throws \RuntimeException if the process got signaled
*/ */

View File

@ -165,7 +165,7 @@ EOF;
/** /**
* Compiles a single Route to PHP code used to match it against the path info. * Compiles a single Route to PHP code used to match it against the path info.
* *
* @param Route $routes A Route instance * @param Route $route A Route instance
* @param string $name The name of the Route * @param string $name The name of the Route
* @param Boolean $supportsRedirections Whether redirections are supported by the base class * @param Boolean $supportsRedirections Whether redirections are supported by the base class
* @param string|null $parentPrefix The prefix of the parent collection used to optimize the code * @param string|null $parentPrefix The prefix of the parent collection used to optimize the code

View File

@ -151,7 +151,7 @@ class UrlMatcher implements UrlMatcherInterface
* *
* @param string $pathinfo The path * @param string $pathinfo The path
* @param string $name The route name * @param string $name The route name
* @param string $route The route * @param Route $route The route
* *
* @return array The first element represents the status, the second contains additional information * @return array The first element represents the status, the second contains additional information
*/ */