Skip to content

Commit 3bf57a0

Browse files
Merge branch '4.1'
* 4.1: Alpha-ordering for "use" statements
2 parents a93c40c + 43d1e04 commit 3bf57a0

35 files changed

+71
-71
lines changed

Application.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,35 @@
1111

1212
namespace Symfony\Component\Console;
1313

14+
use Symfony\Component\Console\Command\Command;
15+
use Symfony\Component\Console\Command\HelpCommand;
16+
use Symfony\Component\Console\Command\ListCommand;
1417
use Symfony\Component\Console\CommandLoader\CommandLoaderInterface;
18+
use Symfony\Component\Console\Event\ConsoleCommandEvent;
19+
use Symfony\Component\Console\Event\ConsoleErrorEvent;
20+
use Symfony\Component\Console\Event\ConsoleTerminateEvent;
21+
use Symfony\Component\Console\Exception\CommandNotFoundException;
1522
use Symfony\Component\Console\Exception\ExceptionInterface;
23+
use Symfony\Component\Console\Exception\LogicException;
1624
use Symfony\Component\Console\Exception\NamespaceNotFoundException;
1725
use Symfony\Component\Console\Formatter\OutputFormatter;
1826
use Symfony\Component\Console\Helper\DebugFormatterHelper;
27+
use Symfony\Component\Console\Helper\FormatterHelper;
1928
use Symfony\Component\Console\Helper\Helper;
29+
use Symfony\Component\Console\Helper\HelperSet;
2030
use Symfony\Component\Console\Helper\ProcessHelper;
2131
use Symfony\Component\Console\Helper\QuestionHelper;
22-
use Symfony\Component\Console\Input\InputInterface;
23-
use Symfony\Component\Console\Input\StreamableInputInterface;
2432
use Symfony\Component\Console\Input\ArgvInput;
2533
use Symfony\Component\Console\Input\ArrayInput;
26-
use Symfony\Component\Console\Input\InputDefinition;
27-
use Symfony\Component\Console\Input\InputOption;
2834
use Symfony\Component\Console\Input\InputArgument;
2935
use Symfony\Component\Console\Input\InputAwareInterface;
30-
use Symfony\Component\Console\Output\OutputInterface;
36+
use Symfony\Component\Console\Input\InputDefinition;
37+
use Symfony\Component\Console\Input\InputInterface;
38+
use Symfony\Component\Console\Input\InputOption;
39+
use Symfony\Component\Console\Input\StreamableInputInterface;
3140
use Symfony\Component\Console\Output\ConsoleOutput;
3241
use Symfony\Component\Console\Output\ConsoleOutputInterface;
33-
use Symfony\Component\Console\Command\Command;
34-
use Symfony\Component\Console\Command\HelpCommand;
35-
use Symfony\Component\Console\Command\ListCommand;
36-
use Symfony\Component\Console\Helper\HelperSet;
37-
use Symfony\Component\Console\Helper\FormatterHelper;
38-
use Symfony\Component\Console\Event\ConsoleCommandEvent;
39-
use Symfony\Component\Console\Event\ConsoleErrorEvent;
40-
use Symfony\Component\Console\Event\ConsoleTerminateEvent;
41-
use Symfony\Component\Console\Exception\CommandNotFoundException;
42-
use Symfony\Component\Console\Exception\LogicException;
42+
use Symfony\Component\Console\Output\OutputInterface;
4343
use Symfony\Component\Console\Style\SymfonyStyle;
4444
use Symfony\Component\Debug\ErrorHandler;
4545
use Symfony\Component\Debug\Exception\FatalThrowableError;

Command/Command.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111

1212
namespace Symfony\Component\Console\Command;
1313

14+
use Symfony\Component\Console\Application;
1415
use Symfony\Component\Console\Exception\ExceptionInterface;
15-
use Symfony\Component\Console\Input\InputDefinition;
16-
use Symfony\Component\Console\Input\InputOption;
16+
use Symfony\Component\Console\Exception\InvalidArgumentException;
17+
use Symfony\Component\Console\Exception\LogicException;
18+
use Symfony\Component\Console\Helper\HelperSet;
1719
use Symfony\Component\Console\Input\InputArgument;
20+
use Symfony\Component\Console\Input\InputDefinition;
1821
use Symfony\Component\Console\Input\InputInterface;
22+
use Symfony\Component\Console\Input\InputOption;
1923
use Symfony\Component\Console\Output\OutputInterface;
20-
use Symfony\Component\Console\Application;
21-
use Symfony\Component\Console\Helper\HelperSet;
22-
use Symfony\Component\Console\Exception\InvalidArgumentException;
23-
use Symfony\Component\Console\Exception\LogicException;
2424

2525
/**
2626
* Base class for all commands.

Command/HelpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
use Symfony\Component\Console\Helper\DescriptorHelper;
1515
use Symfony\Component\Console\Input\InputArgument;
16-
use Symfony\Component\Console\Input\InputOption;
1716
use Symfony\Component\Console\Input\InputInterface;
17+
use Symfony\Component\Console\Input\InputOption;
1818
use Symfony\Component\Console\Output\OutputInterface;
1919

2020
/**

Command/ListCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
use Symfony\Component\Console\Helper\DescriptorHelper;
1515
use Symfony\Component\Console\Input\InputArgument;
16-
use Symfony\Component\Console\Input\InputOption;
16+
use Symfony\Component\Console\Input\InputDefinition;
1717
use Symfony\Component\Console\Input\InputInterface;
18+
use Symfony\Component\Console\Input\InputOption;
1819
use Symfony\Component\Console\Output\OutputInterface;
19-
use Symfony\Component\Console\Input\InputDefinition;
2020

2121
/**
2222
* ListCommand displays the list of all available commands for the application.

Descriptor/Descriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
use Symfony\Component\Console\Application;
1515
use Symfony\Component\Console\Command\Command;
16+
use Symfony\Component\Console\Exception\InvalidArgumentException;
1617
use Symfony\Component\Console\Input\InputArgument;
1718
use Symfony\Component\Console\Input\InputDefinition;
1819
use Symfony\Component\Console\Input\InputOption;
1920
use Symfony\Component\Console\Output\OutputInterface;
20-
use Symfony\Component\Console\Exception\InvalidArgumentException;
2121

2222
/**
2323
* @author Jean-François Simon <[email protected]>

Helper/DescriptorHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
use Symfony\Component\Console\Descriptor\MarkdownDescriptor;
1717
use Symfony\Component\Console\Descriptor\TextDescriptor;
1818
use Symfony\Component\Console\Descriptor\XmlDescriptor;
19-
use Symfony\Component\Console\Output\OutputInterface;
2019
use Symfony\Component\Console\Exception\InvalidArgumentException;
20+
use Symfony\Component\Console\Output\OutputInterface;
2121

2222
/**
2323
* This class adds helper method to describe objects in various formats.

Helper/InputAwareHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\Console\Helper;
1313

14-
use Symfony\Component\Console\Input\InputInterface;
1514
use Symfony\Component\Console\Input\InputAwareInterface;
15+
use Symfony\Component\Console\Input\InputInterface;
1616

1717
/**
1818
* An implementation of InputAwareInterface for Helpers.

Helper/ProgressBar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Symfony\Component\Console\Helper;
1313

14+
use Symfony\Component\Console\Exception\LogicException;
1415
use Symfony\Component\Console\Output\ConsoleOutputInterface;
1516
use Symfony\Component\Console\Output\ConsoleSectionOutput;
1617
use Symfony\Component\Console\Output\OutputInterface;
17-
use Symfony\Component\Console\Exception\LogicException;
1818
use Symfony\Component\Console\Terminal;
1919

2020
/**

Helper/QuestionHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
use Symfony\Component\Console\Input\StreamableInputInterface;
1919
use Symfony\Component\Console\Output\ConsoleOutputInterface;
2020
use Symfony\Component\Console\Output\OutputInterface;
21-
use Symfony\Component\Console\Question\Question;
2221
use Symfony\Component\Console\Question\ChoiceQuestion;
22+
use Symfony\Component\Console\Question\Question;
2323

2424
/**
2525
* The QuestionHelper class provides helpers to interact with the user.

Helper/SymfonyQuestionHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Component\Console\Helper;
1313

14+
use Symfony\Component\Console\Formatter\OutputFormatter;
1415
use Symfony\Component\Console\Output\OutputInterface;
1516
use Symfony\Component\Console\Question\ChoiceQuestion;
1617
use Symfony\Component\Console\Question\ConfirmationQuestion;
1718
use Symfony\Component\Console\Question\Question;
1819
use Symfony\Component\Console\Style\SymfonyStyle;
19-
use Symfony\Component\Console\Formatter\OutputFormatter;
2020

2121
/**
2222
* Symfony Style Guide compliant question helper.

Helper/Table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Symfony\Component\Console\Helper;
1313

14-
use Symfony\Component\Console\Output\ConsoleSectionOutput;
15-
use Symfony\Component\Console\Output\OutputInterface;
1614
use Symfony\Component\Console\Exception\InvalidArgumentException;
1715
use Symfony\Component\Console\Exception\RuntimeException;
16+
use Symfony\Component\Console\Output\ConsoleSectionOutput;
17+
use Symfony\Component\Console\Output\OutputInterface;
1818

1919
/**
2020
* Provides helpers to display a table.

Logger/ConsoleLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
use Psr\Log\AbstractLogger;
1515
use Psr\Log\InvalidArgumentException;
1616
use Psr\Log\LogLevel;
17-
use Symfony\Component\Console\Output\OutputInterface;
1817
use Symfony\Component\Console\Output\ConsoleOutputInterface;
18+
use Symfony\Component\Console\Output\OutputInterface;
1919

2020
/**
2121
* PSR-3 compliant console logger.

Output/Output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\Console\Output;
1313

14-
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
1514
use Symfony\Component\Console\Formatter\OutputFormatter;
15+
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
1616

1717
/**
1818
* Base class for output classes.

Style/OutputStyle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
1515
use Symfony\Component\Console\Helper\ProgressBar;
16-
use Symfony\Component\Console\Output\OutputInterface;
1716
use Symfony\Component\Console\Output\ConsoleOutputInterface;
17+
use Symfony\Component\Console\Output\OutputInterface;
1818

1919
/**
2020
* Decorates output to add console style guide helpers.

Tests/ApplicationTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@
1616
use Symfony\Component\Console\Command\Command;
1717
use Symfony\Component\Console\CommandLoader\FactoryCommandLoader;
1818
use Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass;
19+
use Symfony\Component\Console\Event\ConsoleCommandEvent;
20+
use Symfony\Component\Console\Event\ConsoleErrorEvent;
21+
use Symfony\Component\Console\Event\ConsoleTerminateEvent;
22+
use Symfony\Component\Console\Exception\CommandNotFoundException;
1923
use Symfony\Component\Console\Exception\NamespaceNotFoundException;
20-
use Symfony\Component\Console\Helper\HelperSet;
2124
use Symfony\Component\Console\Helper\FormatterHelper;
25+
use Symfony\Component\Console\Helper\HelperSet;
2226
use Symfony\Component\Console\Input\ArgvInput;
2327
use Symfony\Component\Console\Input\ArrayInput;
24-
use Symfony\Component\Console\Input\InputInterface;
2528
use Symfony\Component\Console\Input\InputArgument;
2629
use Symfony\Component\Console\Input\InputDefinition;
30+
use Symfony\Component\Console\Input\InputInterface;
2731
use Symfony\Component\Console\Input\InputOption;
2832
use Symfony\Component\Console\Output\NullOutput;
2933
use Symfony\Component\Console\Output\Output;
3034
use Symfony\Component\Console\Output\OutputInterface;
3135
use Symfony\Component\Console\Output\StreamOutput;
3236
use Symfony\Component\Console\Tester\ApplicationTester;
33-
use Symfony\Component\Console\Event\ConsoleCommandEvent;
34-
use Symfony\Component\Console\Event\ConsoleErrorEvent;
35-
use Symfony\Component\Console\Event\ConsoleTerminateEvent;
36-
use Symfony\Component\Console\Exception\CommandNotFoundException;
3737
use Symfony\Component\DependencyInjection\ContainerBuilder;
3838
use Symfony\Component\EventDispatcher\EventDispatcher;
3939

Tests/Command/CommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
namespace Symfony\Component\Console\Tests\Command;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Component\Console\Application;
1516
use Symfony\Component\Console\Command\Command;
1617
use Symfony\Component\Console\Helper\FormatterHelper;
17-
use Symfony\Component\Console\Application;
18-
use Symfony\Component\Console\Input\InputDefinition;
1918
use Symfony\Component\Console\Input\InputArgument;
20-
use Symfony\Component\Console\Input\InputOption;
19+
use Symfony\Component\Console\Input\InputDefinition;
2120
use Symfony\Component\Console\Input\InputInterface;
21+
use Symfony\Component\Console\Input\InputOption;
2222
use Symfony\Component\Console\Input\StringInput;
23-
use Symfony\Component\Console\Output\OutputInterface;
2423
use Symfony\Component\Console\Output\NullOutput;
24+
use Symfony\Component\Console\Output\OutputInterface;
2525
use Symfony\Component\Console\Tester\CommandTester;
2626

2727
class CommandTest extends TestCase

Tests/Command/HelpCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
namespace Symfony\Component\Console\Tests\Command;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Console\Tester\CommandTester;
15+
use Symfony\Component\Console\Application;
1616
use Symfony\Component\Console\Command\HelpCommand;
1717
use Symfony\Component\Console\Command\ListCommand;
18-
use Symfony\Component\Console\Application;
18+
use Symfony\Component\Console\Tester\CommandTester;
1919

2020
class HelpCommandTest extends TestCase
2121
{

Tests/Command/ListCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace Symfony\Component\Console\Tests\Command;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Console\Tester\CommandTester;
1615
use Symfony\Component\Console\Application;
16+
use Symfony\Component\Console\Tester\CommandTester;
1717

1818
class ListCommandTest extends TestCase
1919
{

Tests/EventListener/ErrorListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
use Symfony\Component\Console\Input\ArgvInput;
2121
use Symfony\Component\Console\Input\ArrayInput;
2222
use Symfony\Component\Console\Input\Input;
23-
use Symfony\Component\Console\Input\StringInput;
2423
use Symfony\Component\Console\Input\InputInterface;
24+
use Symfony\Component\Console\Input\StringInput;
2525
use Symfony\Component\Console\Output\OutputInterface;
2626

2727
class ErrorListenerTest extends TestCase

Tests/Fixtures/Style/SymfonyStyle/command/command_8.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3+
use Symfony\Component\Console\Helper\TableCell;
34
use Symfony\Component\Console\Input\InputInterface;
45
use Symfony\Component\Console\Output\OutputInterface;
56
use Symfony\Component\Console\Style\SymfonyStyle;
6-
use Symfony\Component\Console\Helper\TableCell;
77

88
//Ensure formatting tables when using multiple headers with TableCell
99
return function (InputInterface $input, OutputInterface $output) {

Tests/Formatter/OutputFormatterStyleStackTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace Symfony\Component\Console\Tests\Formatter;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Console\Formatter\OutputFormatterStyleStack;
1615
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
16+
use Symfony\Component\Console\Formatter\OutputFormatterStyleStack;
1717

1818
class OutputFormatterStyleStackTest extends TestCase
1919
{

Tests/Helper/HelperSetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace Symfony\Component\Console\Tests\Helper;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Console\Helper\HelperSet;
1615
use Symfony\Component\Console\Command\Command;
16+
use Symfony\Component\Console\Helper\HelperSet;
1717

1818
class HelperSetTest extends TestCase
1919
{

Tests/Helper/ProcessHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Console\Helper\DebugFormatterHelper;
1616
use Symfony\Component\Console\Helper\HelperSet;
17-
use Symfony\Component\Console\Output\StreamOutput;
1817
use Symfony\Component\Console\Helper\ProcessHelper;
18+
use Symfony\Component\Console\Output\StreamOutput;
1919
use Symfony\Component\Process\Process;
2020

2121
class ProcessHelperTest extends TestCase

Tests/Helper/ProgressBarTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Console\Formatter\OutputFormatter;
16-
use Symfony\Component\Console\Helper\ProgressBar;
1716
use Symfony\Component\Console\Helper\Helper;
17+
use Symfony\Component\Console\Helper\ProgressBar;
1818
use Symfony\Component\Console\Output\ConsoleSectionOutput;
1919
use Symfony\Component\Console\Output\StreamOutput;
2020

Tests/Helper/QuestionHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace Symfony\Component\Console\Tests\Helper;
1313

1414
use Symfony\Component\Console\Formatter\OutputFormatter;
15-
use Symfony\Component\Console\Helper\QuestionHelper;
16-
use Symfony\Component\Console\Helper\HelperSet;
1715
use Symfony\Component\Console\Helper\FormatterHelper;
16+
use Symfony\Component\Console\Helper\HelperSet;
17+
use Symfony\Component\Console\Helper\QuestionHelper;
1818
use Symfony\Component\Console\Output\StreamOutput;
1919
use Symfony\Component\Console\Question\ChoiceQuestion;
2020
use Symfony\Component\Console\Question\ConfirmationQuestion;

Tests/Helper/SymfonyQuestionHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
use Symfony\Component\Console\Helper\HelperSet;
77
use Symfony\Component\Console\Helper\SymfonyQuestionHelper;
88
use Symfony\Component\Console\Output\StreamOutput;
9-
use Symfony\Component\Console\Question\Question;
109
use Symfony\Component\Console\Question\ChoiceQuestion;
10+
use Symfony\Component\Console\Question\Question;
1111

1212
/**
1313
* @group tty

Tests/Helper/TableTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Console\Formatter\OutputFormatter;
1616
use Symfony\Component\Console\Helper\Table;
17-
use Symfony\Component\Console\Helper\TableStyle;
18-
use Symfony\Component\Console\Helper\TableSeparator;
1917
use Symfony\Component\Console\Helper\TableCell;
18+
use Symfony\Component\Console\Helper\TableSeparator;
19+
use Symfony\Component\Console\Helper\TableStyle;
2020
use Symfony\Component\Console\Output\ConsoleSectionOutput;
2121
use Symfony\Component\Console\Output\StreamOutput;
2222

Tests/Input/ArgvInputTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Console\Input\ArgvInput;
16-
use Symfony\Component\Console\Input\InputDefinition;
1716
use Symfony\Component\Console\Input\InputArgument;
17+
use Symfony\Component\Console\Input\InputDefinition;
1818
use Symfony\Component\Console\Input\InputOption;
1919

2020
class ArgvInputTest extends TestCase

Tests/Input/ArrayInputTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Console\Input\ArrayInput;
16-
use Symfony\Component\Console\Input\InputDefinition;
1716
use Symfony\Component\Console\Input\InputArgument;
17+
use Symfony\Component\Console\Input\InputDefinition;
1818
use Symfony\Component\Console\Input\InputOption;
1919

2020
class ArrayInputTest extends TestCase

0 commit comments

Comments
 (0)