Skip to content

Commit c2acc6c

Browse files
dlsniperfabpot
authored andcommitted
Fixed most of the docblocks/unused namespaces
1 parent 7bc9caa commit c2acc6c

File tree

159 files changed

+466
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+466
-114
lines changed

src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ public function hasListeners($event)
9393
*
9494
* @param string|array $events The event(s) to listen on.
9595
* @param object|string $listener The listener object.
96+
*
97+
* @throws \RuntimeException
9698
*/
9799
public function addEventListener($events, $listener)
98100
{

src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ abstract class AbstractDoctrineExtension extends Extension
4242
/**
4343
* @param array $objectManager A configured object manager.
4444
* @param ContainerBuilder $container A ContainerBuilder instance
45+
*
46+
* @throws \InvalidArgumentException
4547
*/
4648
protected function loadMappingInformation(array $objectManager, ContainerBuilder $container)
4749
{
@@ -119,6 +121,8 @@ protected function setMappingDriverAlias($mappingConfig, $mappingName)
119121
*
120122
* @param array $mappingConfig
121123
* @param string $mappingName
124+
*
125+
* @throws \InvalidArgumentException
122126
*/
123127
protected function setMappingDriverConfig(array $mappingConfig, $mappingName)
124128
{
@@ -228,6 +232,8 @@ protected function registerMappingDrivers($objectManager, ContainerBuilder $cont
228232
*
229233
* @param array $mappingConfig
230234
* @param string $objectManagerName
235+
*
236+
* @throws \InvalidArgumentException
231237
*/
232238
protected function assertValidMappingConfiguration(array $mappingConfig, $objectManagerName)
233239
{

src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function process(ContainerBuilder $container)
4747
*
4848
* @param ContainerBuilder $container
4949
* @param string $mapping
50-
* @param type $extension
50+
* @param string $extension
5151
*/
5252
private function updateValidatorMappingFiles(ContainerBuilder $container, $mapping, $extension)
5353
{

src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface
2626
*
2727
* This property should only be accessed through queryBuilder.
2828
*
29-
* @var Doctrine\ORM\QueryBuilder
29+
* @var QueryBuilder
3030
*/
3131
private $queryBuilder;
3232

@@ -36,6 +36,8 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface
3636
* @param QueryBuilder|\Closure $queryBuilder
3737
* @param EntityManager $manager
3838
* @param string $class
39+
*
40+
* @throws UnexpectedTypeException
3941
*/
4042
public function __construct($queryBuilder, $manager = null, $class = null)
4143
{

src/Symfony/Bridge/Doctrine/Form/DataTransformer/CollectionToArrayTransformer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class CollectionToArrayTransformer implements DataTransformerInterface
2727
* @param Collection $collection A collection of entities
2828
*
2929
* @return mixed An array of entities
30+
*
31+
* @throws UnexpectedTypeException
3032
*/
3133
public function transform($collection)
3234
{

src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ public function write($id, $data)
157157
*
158158
* @param string $id
159159
* @param string $data
160+
*
161+
* @return Boolean
160162
*/
161163
private function createNewSession($id, $data = '')
162164
{

src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public function __construct(ManagerRegistry $registry)
4040
/**
4141
* @param object $entity
4242
* @param Constraint $constraint
43+
*
44+
* @throws UnexpectedTypeException
45+
* @throws ConstraintDefinitionException
4346
*/
4447
public function validate($entity, Constraint $constraint)
4548
{

src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ private function load()
348348
*
349349
* @param object $model The model for which to get the identifier
350350
*
351+
* @return array
352+
*
351353
* @throws FormException If the model does not exist
352354
*/
353355
private function getIdentifierValues($model)
@@ -367,7 +369,7 @@ private function getIdentifierValues($model)
367369
/**
368370
* Whether this column in an integer
369371
*
370-
* @param ColumnMap $column
372+
* @param \ColumnMap $column
371373
*
372374
* @return Boolean
373375
*/

src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public function getFunctions()
5151
* @param string $uri The URI to render
5252
*
5353
* @return string The Response content
54+
*
55+
* @throws \RuntimeException
5456
*/
5557
public function render(\Twig_Environment $twig, $uri)
5658
{

src/Symfony/Bridge/Twig/TokenParser/TransChoiceTokenParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class TransChoiceTokenParser extends TransTokenParser
2626
* @param \Twig_Token $token A Twig_Token instance
2727
*
2828
* @return \Twig_NodeInterface A Twig_NodeInterface instance
29+
*
30+
* @throws \Twig_Error_Syntax
2931
*/
3032
public function parse(\Twig_Token $token)
3133
{

0 commit comments

Comments
 (0)