11
11
12
12
namespace Symfony \Component \Console \Helper ;
13
13
14
+ use Symfony \Component \Console \Exception \InvalidArgumentException ;
15
+ use Symfony \Component \Console \Exception \LogicException ;
14
16
use Symfony \Component \Console \Output \OutputInterface ;
15
17
16
18
/**
@@ -53,7 +55,7 @@ public function __construct(OutputInterface $output, $format = null, $indicatorC
53
55
$ indicatorValues = array_values ($ indicatorValues );
54
56
55
57
if (2 > count ($ indicatorValues )) {
56
- throw new \ InvalidArgumentException ('Must have at least 2 indicator value characters. ' );
58
+ throw new InvalidArgumentException ('Must have at least 2 indicator value characters. ' );
57
59
}
58
60
59
61
$ this ->format = self ::getFormatDefinition ($ format );
@@ -118,7 +120,7 @@ public function getCurrentValue()
118
120
public function start ($ message )
119
121
{
120
122
if ($ this ->started ) {
121
- throw new \ LogicException ('Progress indicator already started. ' );
123
+ throw new LogicException ('Progress indicator already started. ' );
122
124
}
123
125
124
126
$ this ->message = $ message ;
@@ -137,7 +139,7 @@ public function start($message)
137
139
public function advance ()
138
140
{
139
141
if (!$ this ->started ) {
140
- throw new \ LogicException ('Progress indicator has not yet been started. ' );
142
+ throw new LogicException ('Progress indicator has not yet been started. ' );
141
143
}
142
144
143
145
if (!$ this ->output ->isDecorated ()) {
@@ -164,7 +166,7 @@ public function advance()
164
166
public function finish ($ message )
165
167
{
166
168
if (!$ this ->started ) {
167
- throw new \ LogicException ('Progress indicator has not yet been started. ' );
169
+ throw new LogicException ('Progress indicator has not yet been started. ' );
168
170
}
169
171
170
172
$ this ->message = $ message ;
0 commit comments