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.
*
* @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,
* digits and underscores.
@ -333,7 +333,7 @@ class EntityChoiceList extends ObjectChoiceList
*
* 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.
*/

View File

@ -276,7 +276,7 @@ class ModelChoiceList extends ObjectChoiceList
*
* 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,
* digits and underscores.
@ -297,7 +297,7 @@ class ModelChoiceList extends ObjectChoiceList
*
* 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.
*/

View File

@ -196,9 +196,10 @@ class HttpKernel extends BaseHttpKernel
*
* This method uses the "_internal" route, which should be available.
*
* @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 $query An array of request query parameters
* @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 $query An array of request query parameters
* @param boolean $secure
*
* @return string An internal URI
*/
@ -226,6 +227,7 @@ class HttpKernel extends BaseHttpKernel
* Renders an HInclude tag.
*
* @param string $uri A URI
* @param string $defaultContent Default content
*/
public function renderHIncludeTag($uri, $defaultContent = null)
{

View File

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

View File

@ -27,9 +27,9 @@ class Filesystem
*
* By default, if the target already exists, it is not overridden.
*
* @param string $originFile The original filename
* @param string $targetFile The target filename
* @param array $override Whether to override an existing file or not
* @param string $originFile The original filename
* @param string $targetFile The target filename
* @param boolean $override Whether to override an existing file or not
*
* @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($dir, 0753);
$this->assertEquals(753, $this->getFilePermisions($dir));
$this->assertEquals(400, $this->getFilePermisions($file));
$this->assertEquals(753, $this->getFilePermissions($dir));
$this->assertEquals(400, $this->getFilePermissions($file));
}
public function testChmodWrongMod()
@ -414,8 +414,8 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
$this->filesystem->chmod($file, 0400, 0000, true);
$this->filesystem->chmod($dir, 0753, 0000, true);
$this->assertEquals(753, $this->getFilePermisions($dir));
$this->assertEquals(753, $this->getFilePermisions($file));
$this->assertEquals(753, $this->getFilePermissions($dir));
$this->assertEquals(753, $this->getFilePermissions($file));
}
public function testChmodAppliesUmask()
@ -426,7 +426,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
touch($file);
$this->filesystem->chmod($file, 0770, 0022);
$this->assertEquals(750, $this->getFilePermisions($file));
$this->assertEquals(750, $this->getFilePermissions($file));
}
public function testChmodChangesModeOfArrayOfFiles()
@ -442,8 +442,8 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
$this->filesystem->chmod($files, 0753);
$this->assertEquals(753, $this->getFilePermisions($file));
$this->assertEquals(753, $this->getFilePermisions($directory));
$this->assertEquals(753, $this->getFilePermissions($file));
$this->assertEquals(753, $this->getFilePermissions($directory));
}
public function testChmodChangesModeOfTraversableFileObject()
@ -459,8 +459,8 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
$this->filesystem->chmod($files, 0753);
$this->assertEquals(753, $this->getFilePermisions($file));
$this->assertEquals(753, $this->getFilePermisions($directory));
$this->assertEquals(753, $this->getFilePermissions($file));
$this->assertEquals(753, $this->getFilePermissions($directory));
}
public function testChown()
@ -832,7 +832,7 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
*
* @return integer
*/
private function getFilePermisions($filePath)
private function getFilePermissions($filePath)
{
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.
*
* @param array $choice The choices.
* @param array $choices The choices.
*
* @return array The fixed choices.
*

View File

@ -56,8 +56,9 @@ class FormTypeCsrfExtension extends AbstractTypeExtension
/**
* Adds a CSRF field to the root form view.
*
* @param FormView $view The form view
* @param FormInterface $form The form
* @param FormView $view The form view
* @param FormInterface $form The form
* @param array $options The options
*/
public function finishView(FormView $view, FormInterface $form, array $options)
{

View File

@ -262,12 +262,12 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface
* Iterates over the constraints of a property, executes a constraints on
* them and returns the best guess
*
* @param string $class The class to read the constraints from
* @param string $property The property for which to find constraints
* @param \Closure $closure The closure that returns a guess
* for a given constraint
* @param mixed $default The default value assumed if no other value
* can be guessed.
* @param string $class The class to read the constraints from
* @param string $property The property for which to find constraints
* @param \Closure $closure The closure that returns a guess
* for a given constraint
* @param mixed $defaultValue The default value assumed if no other value
* can be guessed.
*
* @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 EventDispatcherInterface $dispatcher
* @param FormFactoryInterface $factory
* @param array $options
*/
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.
*
* @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.
*/

View File

@ -60,7 +60,7 @@ class RouterDataCollector extends DataCollector
/**
* 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)
{

View File

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

View File

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

View File

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

View File

@ -525,7 +525,7 @@ class Process
*
* @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
*/

View File

@ -165,7 +165,7 @@ EOF;
/**
* 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 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

View File

@ -151,7 +151,7 @@ class UrlMatcher implements UrlMatcherInterface
*
* @param string $pathinfo The path
* @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
*/