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

Skip to content

Commit 5361f83

Browse files
committed
[FramworkBundle] fix phpdoc of commands
1 parent fea27c1 commit 5361f83

12 files changed

+35
-30
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Symfony\Component\Console\Input\InputOption;
1616
use Symfony\Component\Console\Input\InputInterface;
1717
use Symfony\Component\Console\Output\OutputInterface;
18-
use Symfony\Component\Console\Output\Output;
1918
use Symfony\Component\Finder\Finder;
2019

2120
/**
@@ -26,7 +25,7 @@
2625
class AssetsInstallCommand extends ContainerAwareCommand
2726
{
2827
/**
29-
* @see Command
28+
* {@inheritdoc}
3029
*/
3130
protected function configure()
3231
{
@@ -62,9 +61,9 @@ protected function configure()
6261
}
6362

6463
/**
65-
* @see Command
64+
* {@inheritdoc}
6665
*
67-
* @throws \InvalidArgumentException When the target directory does not exist
66+
* @throws \InvalidArgumentException When the target directory does not exist or symlink cannot be used
6867
*/
6968
protected function execute(InputInterface $input, OutputInterface $output)
7069
{

src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CacheClearCommand extends ContainerAwareCommand
2828
protected $name;
2929

3030
/**
31-
* @see Command
31+
* {@inheritdoc}
3232
*/
3333
protected function configure()
3434
{

src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class CacheWarmupCommand extends ContainerAwareCommand
2424
{
2525
/**
26-
* @see Command
26+
* {@inheritdoc}
2727
*/
2828
protected function configure()
2929
{

src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class ConfigDumpReferenceCommand extends ContainerDebugCommand
2626
{
2727
/**
28-
* @see Command
28+
* {@inheritdoc}
2929
*/
3030
protected function configure()
3131
{
@@ -53,7 +53,9 @@ protected function configure()
5353
}
5454

5555
/**
56-
* @see Command
56+
* {@inheritdoc}
57+
*
58+
* @throws \LogicException
5759
*/
5860
protected function execute(InputInterface $input, OutputInterface $output)
5961
{

src/Symfony/Bundle/FrameworkBundle/Command/ContainerAwareCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
abstract class ContainerAwareCommand extends Command implements ContainerAwareInterface
2424
{
2525
/**
26-
* @var ContainerInterface
26+
* @var ContainerInterface|null
2727
*/
2828
private $container;
2929

@@ -40,7 +40,7 @@ protected function getContainer()
4040
}
4141

4242
/**
43-
* @see ContainerAwareInterface::setContainer()
43+
* {@inheritdoc}
4444
*/
4545
public function setContainer(ContainerInterface $container = null)
4646
{

src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
class ContainerDebugCommand extends ContainerAwareCommand
3030
{
3131
/**
32-
* @var ContainerBuilder
32+
* @var ContainerBuilder|null
3333
*/
3434
protected $containerBuilder;
3535

3636
/**
37-
* @see Command
37+
* {@inheritdoc}
3838
*/
3939
protected function configure()
4040
{
@@ -74,7 +74,9 @@ protected function configure()
7474
}
7575

7676
/**
77-
* @see Command
77+
* {@inheritdoc}
78+
*
79+
* @throws \LogicException
7880
*/
7981
protected function execute(InputInterface $input, OutputInterface $output)
8082
{
@@ -307,7 +309,7 @@ protected function getContainerBuilder()
307309
*
308310
* @param string $serviceId The service id to resolve
309311
*
310-
* @return \Symfony\Component\DependencyInjection\Definition|\Symfony\Component\DependencyInjection\Alias
312+
* @return Definition|Alias
311313
*/
312314
protected function resolveServiceDefinition($serviceId)
313315
{
@@ -328,7 +330,7 @@ protected function resolveServiceDefinition($serviceId)
328330
* Renders list of tagged services grouped by tag
329331
*
330332
* @param OutputInterface $output
331-
* @param bool $showPrivate
333+
* @param Boolean $showPrivate
332334
*/
333335
protected function outputTags(OutputInterface $output, $showPrivate = false)
334336
{

src/Symfony/Bundle/FrameworkBundle/Command/RouterApacheDumperCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
class RouterApacheDumperCommand extends ContainerAwareCommand
2727
{
2828
/**
29-
* {@inheritDoc}
29+
* {@inheritdoc}
3030
*/
3131
public function isEnabled()
3232
{
@@ -42,7 +42,7 @@ public function isEnabled()
4242
}
4343

4444
/**
45-
* @see Command
45+
* {@inheritdoc}
4646
*/
4747
protected function configure()
4848
{
@@ -65,7 +65,7 @@ protected function configure()
6565
}
6666

6767
/**
68-
* @see Command
68+
* {@inheritdoc}
6969
*/
7070
protected function execute(InputInterface $input, OutputInterface $output)
7171
{

src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class RouterDebugCommand extends ContainerAwareCommand
2525
{
2626
/**
27-
* {@inheritDoc}
27+
* {@inheritdoc}
2828
*/
2929
public function isEnabled()
3030
{
@@ -40,7 +40,7 @@ public function isEnabled()
4040
}
4141

4242
/**
43-
* @see Command
43+
* {@inheritdoc}
4444
*/
4545
protected function configure()
4646
{
@@ -60,7 +60,9 @@ protected function configure()
6060
}
6161

6262
/**
63-
* @see Command
63+
* {@inheritdoc}
64+
*
65+
* @throws \InvalidArgumentException When route does not exist
6466
*/
6567
protected function execute(InputInterface $input, OutputInterface $output)
6668
{

src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class RouterMatchCommand extends ContainerAwareCommand
2626
{
2727
/**
28-
* {@inheritDoc}
28+
* {@inheritdoc}
2929
*/
3030
public function isEnabled()
3131
{
@@ -41,7 +41,7 @@ public function isEnabled()
4141
}
4242

4343
/**
44-
* @see Command
44+
* {@inheritdoc}
4545
*/
4646
protected function configure()
4747
{
@@ -61,7 +61,7 @@ protected function configure()
6161
}
6262

6363
/**
64-
* @see Command
64+
* {@inheritdoc}
6565
*/
6666
protected function execute(InputInterface $input, OutputInterface $output)
6767
{

src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class ServerRunCommand extends ContainerAwareCommand
2626
{
2727
/**
28-
* {@inheritDoc}
28+
* {@inheritdoc}
2929
*/
3030
public function isEnabled()
3131
{
@@ -37,7 +37,7 @@ public function isEnabled()
3737
}
3838

3939
/**
40-
* @see Command
40+
* {@inheritdoc}
4141
*/
4242
protected function configure()
4343
{
@@ -74,7 +74,7 @@ protected function configure()
7474
}
7575

7676
/**
77-
* @see Command
77+
* {@inheritdoc}
7878
*/
7979
protected function execute(InputInterface $input, OutputInterface $output)
8080
{

src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TranslationUpdateCommand extends ContainerAwareCommand
3333
protected $catalogue;
3434

3535
/**
36-
* {@inheritDoc}
36+
* {@inheritdoc}
3737
*/
3838
protected function configure()
3939
{
@@ -74,7 +74,7 @@ protected function configure()
7474
}
7575

7676
/**
77-
* {@inheritDoc}
77+
* {@inheritdoc}
7878
*/
7979
protected function execute(InputInterface $input, OutputInterface $output)
8080
{

src/Symfony/Component/DependencyInjection/ContainerAwareInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface ContainerAwareInterface
2323
/**
2424
* Sets the Container.
2525
*
26-
* @param ContainerInterface $container A ContainerInterface instance
26+
* @param ContainerInterface|null $container A ContainerInterface instance or null
2727
*
2828
* @api
2929
*/

0 commit comments

Comments
 (0)