From 03fefae35ae34885dd557be43e45b0517d47a54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Thu, 11 Oct 2018 12:56:35 +0200 Subject: [PATCH] Fix CS --- src/Autoload/ScoperAutoloadGenerator.php | 2 +- src/Configuration.php | 13 ++++++------- tests/ConfigurationTest.php | 13 ++++++++++--- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/Autoload/ScoperAutoloadGenerator.php b/src/Autoload/ScoperAutoloadGenerator.php index d1d416780..52227c6f9 100644 --- a/src/Autoload/ScoperAutoloadGenerator.php +++ b/src/Autoload/ScoperAutoloadGenerator.php @@ -14,10 +14,10 @@ namespace Humbug\PhpScoper\Autoload; -use function array_column; use Humbug\PhpScoper\Whitelist; use PhpParser\Node\Name\FullyQualified; use const PHP_EOL; +use function array_column; use function array_map; use function array_unshift; use function sprintf; diff --git a/src/Configuration.php b/src/Configuration.php index dc946ed3c..5740474a8 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -15,26 +15,25 @@ namespace Humbug\PhpScoper; use Closure; -use function file_exists; -use function in_array; use InvalidArgumentException; -use function is_file; -use function is_link; use Iterator; -use function readlink; use RuntimeException; use SplFileInfo; -use function sprintf; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; use const DIRECTORY_SEPARATOR; use function dirname; +use function file_exists; use function gettype; +use function in_array; use function is_array; use function is_bool; +use function is_file; +use function is_link; use function is_string; +use function readlink; use function realpath; -use function var_dump; +use function sprintf; /** * @final diff --git a/tests/ConfigurationTest.php b/tests/ConfigurationTest.php index 54be0af20..f51bfe6c9 100644 --- a/tests/ConfigurationTest.php +++ b/tests/ConfigurationTest.php @@ -2,11 +2,20 @@ declare(strict_types=1); +/* + * This file is part of the humbug/php-scoper package. + * + * Copyright (c) 2017 Théo FIDRY , + * Pádraic Brady + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Humbug\PhpScoper; use InvalidArgumentException; use function KevinGH\Box\FileSystem\dump_file; -use PHPUnit\Framework\TestCase; /** * @covers \Humbug\PhpScoper\Configuration @@ -39,7 +48,6 @@ public function test_it_cannot_create_a_configuration_with_an_invalid_key(): voi 'unknown key' => 'val', ]; PHP - ); try { @@ -70,7 +78,6 @@ public function test_it_can_create_a_complete_configuration(): void 'whitelist' => ['Foo', 'Bar\*'], ]; PHP - ); touch('file1');