Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Oct 11, 2018
1 parent 445ef28 commit 5b7ce82
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Autoload/ScoperAutoloadGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
13 changes: 6 additions & 7 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 10 additions & 3 deletions tests/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@

declare(strict_types=1);

/*
* This file is part of the humbug/php-scoper package.
*
* Copyright (c) 2017 Théo FIDRY <[email protected]>,
* Pádraic Brady <[email protected]>
*
* 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
Expand Down Expand Up @@ -39,7 +48,6 @@ public function test_it_cannot_create_a_configuration_with_an_invalid_key(): voi
'unknown key' => 'val',
];
PHP

);

try {
Expand Down Expand Up @@ -70,7 +78,6 @@ public function test_it_can_create_a_complete_configuration(): void
'whitelist' => ['Foo', 'Bar\*'],
];
PHP

);
touch('file1');

Expand Down

0 comments on commit 5b7ce82

Please sign in to comment.