Skip to content

Commit ff0c141

Browse files
committed
[Console] Update to inherit and add licence
1 parent ddaf1be commit ff0c141

File tree

4 files changed

+24
-26
lines changed

4 files changed

+24
-26
lines changed

src/Symfony/Component/Console/CommandLoader/CommandLoaderInterface.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Console\CommandLoader;
413

514
use Symfony\Component\Console\Command\Command;

src/Symfony/Component/Console/CommandLoader/ContainerCommandLoader.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Console\CommandLoader;
413

514
use Psr\Container\ContainerInterface;

src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,7 @@ public function __construct($foreground = null, $background = null, array $optio
7575
}
7676

7777
/**
78-
* Sets style foreground color.
79-
*
80-
* @param string|null $color The color name
81-
*
82-
* @throws InvalidArgumentException When the color name isn't defined
78+
* {@inheritdoc}
8379
*/
8480
public function setForeground($color = null)
8581
{
@@ -97,11 +93,7 @@ public function setForeground($color = null)
9793
}
9894

9995
/**
100-
* Sets style background color.
101-
*
102-
* @param string|null $color The color name
103-
*
104-
* @throws InvalidArgumentException When the color name isn't defined
96+
* {@inheritdoc}
10597
*/
10698
public function setBackground($color = null)
10799
{
@@ -119,11 +111,7 @@ public function setBackground($color = null)
119111
}
120112

121113
/**
122-
* Sets some specific style option.
123-
*
124-
* @param string $option The option name
125-
*
126-
* @throws InvalidArgumentException When the option name isn't defined
114+
* {@inheritdoc}
127115
*/
128116
public function setOption($option)
129117
{
@@ -137,11 +125,7 @@ public function setOption($option)
137125
}
138126

139127
/**
140-
* Unsets some specific style option.
141-
*
142-
* @param string $option The option name
143-
*
144-
* @throws InvalidArgumentException When the option name isn't defined
128+
* {@inheritdoc}
145129
*/
146130
public function unsetOption($option)
147131
{
@@ -168,11 +152,7 @@ public function setOptions(array $options)
168152
}
169153

170154
/**
171-
* Applies the style to a given text.
172-
*
173-
* @param string $text The text to style
174-
*
175-
* @return string
155+
* {@inheritdoc}
176156
*/
177157
public function apply($text)
178158
{

src/Symfony/Component/Console/Formatter/OutputFormatterStyleInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface OutputFormatterStyleInterface
2121
/**
2222
* Sets style foreground color.
2323
*
24-
* @param string $color The color name
24+
* @param string|null $color The color name
2525
*/
2626
public function setForeground($color = null);
2727

0 commit comments

Comments
 (0)