Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49806e0

Browse files
minor #24724 Remove useless docblocks (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- Remove useless docblocks | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 2443511 Remove useless docblocks
2 parents 151e5e8 + 2443511 commit 49806e0

File tree

223 files changed

+257
-1438
lines changed

Some content is hidden

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

223 files changed

+257
-1438
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
*/
2323
class DoctrineValidationPass implements CompilerPassInterface
2424
{
25-
/**
26-
* @var string
27-
*/
2825
private $managerType;
2926

27+
/**
28+
* @param string $managerType
29+
*/
3030
public function __construct($managerType)
3131
{
3232
$this->managerType = $managerType;

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
*/
2727
class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface
2828
{
29-
/**
30-
* @var string|string[]
31-
*/
3229
private $connections;
3330
private $eventManagers;
3431
private $managerTemplate;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface
113113
* present to enable the mapping. Set to false
114114
* to not do any check, optional.
115115
* @param string $configurationPattern Pattern for the Configuration service name
116-
* @param string $registerAliasMethodName name of Configuration class method to
116+
* @param string $registerAliasMethodName Name of Configuration class method to
117117
* register alias
118118
* @param string[] $aliasMap Map of alias to namespace
119119
*/
@@ -178,7 +178,7 @@ protected function getChainDriverServiceName(ContainerBuilder $container)
178178
/**
179179
* Create the service definition for the metadata driver.
180180
*
181-
* @param ContainerBuilder $container passed on in case an extending class
181+
* @param ContainerBuilder $container Passed on in case an extending class
182182
* needs access to the container
183183
*
184184
* @return Definition|Reference the metadata driver to add to all chain drivers

src/Symfony/Bridge/Doctrine/ExpressionLanguage/DoctrineParserCache.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
*/
2121
class DoctrineParserCache implements ParserCacheInterface
2222
{
23-
/**
24-
* @var Cache
25-
*/
2623
private $cache;
2724

2825
public function __construct(Cache $cache)

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

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,10 @@
2323
*/
2424
class DoctrineChoiceLoader implements ChoiceLoaderInterface
2525
{
26-
/**
27-
* @var ChoiceListFactoryInterface
28-
*/
2926
private $factory;
30-
31-
/**
32-
* @var ObjectManager
33-
*/
3427
private $manager;
35-
36-
/**
37-
* @var string
38-
*/
3928
private $class;
40-
41-
/**
42-
* @var IdReader
43-
*/
4429
private $idReader;
45-
46-
/**
47-
* @var null|EntityLoaderInterface
48-
*/
4930
private $objectLoader;
5031

5132
/**
@@ -60,13 +41,10 @@ class DoctrineChoiceLoader implements ChoiceLoaderInterface
6041
* passed which optimizes the object loading for one of the Doctrine
6142
* mapper implementations.
6243
*
63-
* @param ChoiceListFactoryInterface $factory The factory for creating
64-
* the loaded choice list
44+
* @param ChoiceListFactoryInterface $factory The factory for creating the loaded choice list
6545
* @param ObjectManager $manager The object manager
66-
* @param string $class The class name of the
67-
* loaded objects
68-
* @param IdReader $idReader the reader for the object
69-
* IDs
46+
* @param string $class The class name of the loaded objects
47+
* @param IdReader $idReader The reader for the object IDs
7048
* @param null|EntityLoaderInterface $objectLoader The objects loader
7149
*/
7250
public function __construct(ChoiceListFactoryInterface $factory, ObjectManager $manager, $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null)

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,10 @@
2424
*/
2525
class IdReader
2626
{
27-
/**
28-
* @var ObjectManager
29-
*/
3027
private $om;
31-
32-
/**
33-
* @var ClassMetadata
34-
*/
3528
private $classMetadata;
36-
37-
/**
38-
* @var bool
39-
*/
4029
private $singleId;
41-
42-
/**
43-
* @var bool
44-
*/
4530
private $intId;
46-
47-
/**
48-
* @var string
49-
*/
5031
private $idField;
5132

5233
/**

src/Symfony/Bridge/Doctrine/Form/DoctrineOrmExtension.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,7 @@ class DoctrineOrmExtension extends AbstractExtension
2525
{
2626
protected $registry;
2727

28-
/**
29-
* @var PropertyAccessorInterface
30-
*/
3128
private $propertyAccessor;
32-
33-
/**
34-
* @var ChoiceListFactoryInterface
35-
*/
3629
private $choiceListFactory;
3730

3831
public function __construct(ManagerRegistry $registry, PropertyAccessorInterface $propertyAccessor = null, ChoiceListFactoryInterface $choiceListFactory = null)

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
*/
2626
class UniqueEntityValidator extends ConstraintValidator
2727
{
28-
/**
29-
* @var ManagerRegistry
30-
*/
3128
private $registry;
3229

3330
public function __construct(ManagerRegistry $registry)

src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,8 @@
2525
*/
2626
class ProxyDumper implements DumperInterface
2727
{
28-
/**
29-
* @var string
30-
*/
3128
private $salt;
32-
33-
/**
34-
* @var LazyLoadingValueHolderGenerator
35-
*/
3629
private $proxyGenerator;
37-
38-
/**
39-
* @var BaseGeneratorStrategy
40-
*/
4130
private $classGenerator;
4231

4332
/**

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
class StopwatchExtension extends AbstractExtension
2424
{
2525
private $stopwatch;
26-
27-
/**
28-
* @var bool
29-
*/
3026
private $enabled;
3127

3228
public function __construct(Stopwatch $stopwatch = null, $enabled = true)

src/Symfony/Bridge/Twig/NodeVisitor/TranslationDefaultDomainNodeVisitor.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
*/
3131
class TranslationDefaultDomainNodeVisitor extends AbstractNodeVisitor
3232
{
33-
/**
34-
* @var Scope
35-
*/
3633
private $scope;
3734

3835
public function __construct()

src/Symfony/Bridge/Twig/Translation/TwigExtractor.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ class TwigExtractor extends AbstractFileExtractor implements ExtractorInterface
4242
*/
4343
private $prefix = '';
4444

45-
/**
46-
* The twig environment.
47-
*
48-
* @var Environment
49-
*/
5045
private $twig;
5146

5247
public function __construct(Environment $twig)

src/Symfony/Bundle/FrameworkBundle/EventListener/SessionListener.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
*/
2222
class SessionListener extends BaseSessionListener
2323
{
24-
/**
25-
* @var ContainerInterface
26-
*/
2724
private $container;
2825

2926
public function __construct(ContainerInterface $container)

src/Symfony/Bundle/FrameworkBundle/Translation/TranslationLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public function addLoader($format, LoaderInterface $loader)
4343
/**
4444
* Loads translation messages from a directory to the catalogue.
4545
*
46-
* @param string $directory the directory to look into
47-
* @param MessageCatalogue $catalogue the catalogue
46+
* @param string $directory The directory to look into
47+
* @param MessageCatalogue $catalogue The catalogue
4848
*/
4949
public function loadMessages($directory, MessageCatalogue $catalogue)
5050
{

src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
class ExceptionController
3232
{
3333
protected $twig;
34+
protected $debug;
3435

3536
/**
36-
* @var bool Show error (false) or exception (true) pages by default
37+
* @param Environment $twig
38+
* @param bool $debug Show error (false) or exception (true) pages by default
3739
*/
38-
protected $debug;
39-
4040
public function __construct(Environment $twig, $debug)
4141
{
4242
$this->twig = $twig;

src/Symfony/Component/ClassLoader/XcacheClassLoader.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@
4949
class XcacheClassLoader
5050
{
5151
private $prefix;
52-
53-
/**
54-
* A class loader object that implements the findFile() method.
55-
*
56-
* @var object
57-
*/
5852
private $decorated;
5953

6054
/**

src/Symfony/Component/Config/ConfigCacheFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
*/
2020
class ConfigCacheFactory implements ConfigCacheFactoryInterface
2121
{
22-
/**
23-
* @var bool Debug flag passed to the ConfigCache
24-
*/
2522
private $debug;
2623

2724
/**

src/Symfony/Component/Config/Definition/ArrayNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function getChildren()
8181
/**
8282
* Sets the xml remappings that should be performed.
8383
*
84-
* @param array $remappings an array of the form array(array(string, string))
84+
* @param array $remappings An array of the form array(array(string, string))
8585
*/
8686
public function setXmlRemappings(array $remappings)
8787
{

src/Symfony/Component/Config/Definition/Builder/ArrayNodeDefinition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function children()
6767
/**
6868
* Sets a prototype for child nodes.
6969
*
70-
* @param string $type the type of node
70+
* @param string $type The type of node
7171
*
7272
* @return NodeDefinition
7373
*/
@@ -97,7 +97,7 @@ public function addDefaultsIfNotSet()
9797
*
9898
* This method is applicable to prototype nodes only.
9999
*
100-
* @param int|string|array|null $children the number of children|The child name|The children names to be added
100+
* @param int|string|array|null $children The number of children|The child name|The children names to be added
101101
*
102102
* @return $this
103103
*/

src/Symfony/Component/Config/Definition/Builder/NodeBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function arrayNode($name)
6161
/**
6262
* Creates a child scalar node.
6363
*
64-
* @param string $name the name of the node
64+
* @param string $name The name of the node
6565
*
6666
* @return ScalarNodeDefinition The child node
6767
*/
@@ -85,7 +85,7 @@ public function booleanNode($name)
8585
/**
8686
* Creates a child integer node.
8787
*
88-
* @param string $name the name of the node
88+
* @param string $name The name of the node
8989
*
9090
* @return IntegerNodeDefinition The child node
9191
*/
@@ -97,7 +97,7 @@ public function integerNode($name)
9797
/**
9898
* Creates a child float node.
9999
*
100-
* @param string $name the name of the node
100+
* @param string $name The name of the node
101101
*
102102
* @return FloatNodeDefinition The child node
103103
*/

src/Symfony/Component/Console/ConsoleEvents.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ final class ConsoleEvents
2727
* instance.
2828
*
2929
* @Event
30-
*
31-
* @var string
3230
*/
3331
const COMMAND = 'console.command';
3432

@@ -40,8 +38,6 @@ final class ConsoleEvents
4038
* instance.
4139
*
4240
* @Event
43-
*
44-
* @var string
4541
*/
4642
const TERMINATE = 'console.terminate';
4743

@@ -54,8 +50,6 @@ final class ConsoleEvents
5450
* instance.
5551
*
5652
* @Event
57-
*
58-
* @var string
5953
*/
6054
const EXCEPTION = 'console.exception';
6155
}

src/Symfony/Component/Console/Event/ConsoleCommandEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class ConsoleCommandEvent extends ConsoleEvent
2525

2626
/**
2727
* Indicates if the command should be run or skipped.
28-
*
29-
* @var bool
3028
*/
3129
private $commandShouldRun = true;
3230

src/Symfony/Component/Console/Helper/ProgressBar.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,13 @@
2222
*/
2323
class ProgressBar
2424
{
25-
// options
2625
private $barWidth = 28;
2726
private $barChar;
2827
private $emptyBarChar = '-';
2928
private $progressChar = '>';
3029
private $format;
3130
private $internalFormat;
3231
private $redrawFreq = 1;
33-
34-
/**
35-
* @var OutputInterface
36-
*/
3732
private $output;
3833
private $step = 0;
3934
private $max;

src/Symfony/Component/Console/Helper/TableHelper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ class TableHelper extends Helper
2929
const LAYOUT_BORDERLESS = 1;
3030
const LAYOUT_COMPACT = 2;
3131

32-
/**
33-
* @var Table
34-
*/
3532
private $table;
3633

3734
public function __construct($triggerDeprecationError = true)

src/Symfony/Component/Console/Input/InputDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public function hasShortcut($name)
307307
/**
308308
* Gets an InputOption by shortcut.
309309
*
310-
* @param string $shortcut the Shortcut name
310+
* @param string $shortcut The Shortcut name
311311
*
312312
* @return InputOption An InputOption object
313313
*/

0 commit comments

Comments
 (0)