From ed03cf1bdf133a6f795c2f756abd823065ea4b16 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Tue, 3 Dec 2019 21:38:02 -0700 Subject: [PATCH] Enabled 'ordered_imports' in php-cs-fixer config --- .php_cs.dist | 1 + src/Config/Config.php | 2 +- src/Traits/Encryptable.php | 2 +- tests/DecryptionExceptionTest.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.php_cs.dist b/.php_cs.dist index 74298d9..8760451 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -24,6 +24,7 @@ return PhpCsFixer\Config::create() 'no_useless_else' => true, 'no_useless_return' => true, 'not_operator_with_successor_space' => true, + 'ordered_imports' => true, 'phpdoc_no_empty_return' => false, 'phpdoc_order' => true, 'return_type_declaration' => [ diff --git a/src/Config/Config.php b/src/Config/Config.php index 9506ab4..21a14b9 100644 --- a/src/Config/Config.php +++ b/src/Config/Config.php @@ -2,8 +2,8 @@ namespace PHLAK\Twine\Config; -use ReflectionClass; use PHLAK\Twine\Exceptions\ConfigException; +use ReflectionClass; abstract class Config { diff --git a/src/Traits/Encryptable.php b/src/Traits/Encryptable.php index 5e734de..54e2386 100644 --- a/src/Traits/Encryptable.php +++ b/src/Traits/Encryptable.php @@ -2,8 +2,8 @@ namespace PHLAK\Twine\Traits; -use PHLAK\Twine\Exceptions\EncryptionException; use PHLAK\Twine\Exceptions\DecryptionException; +use PHLAK\Twine\Exceptions\EncryptionException; trait Encryptable { diff --git a/tests/DecryptionExceptionTest.php b/tests/DecryptionExceptionTest.php index a91a4b0..7671af5 100644 --- a/tests/DecryptionExceptionTest.php +++ b/tests/DecryptionExceptionTest.php @@ -2,9 +2,9 @@ namespace PHLAK\Twine\Tests; -use PHPUnit\Framework\TestCase; use PHLAK\Twine\Exceptions\DecryptionException; use PHLAK\Twine\Exceptions\TwineException; +use PHPUnit\Framework\TestCase; class DecryptionExceptionTest extends TestCase {