Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Jul 4, 2017
1 parent d8dab50 commit fff1d6f
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 13 deletions.
3 changes: 1 addition & 2 deletions php-scoper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
*/

return [
function(string $filePath, string $prefix, string $content): string
{
function (string $filePath, string $prefix, string $content): string {
//
// PHP-Parser patch
//
Expand Down
6 changes: 3 additions & 3 deletions src/Handler/HandleAddPrefix.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public function __construct(Scoper $scoper)
/**
* Apply prefix to all the code found in the given paths, AKA scope all the files found.
*
* @param string $prefix e.g. 'Foo'
* @param string[] $paths List of files to scan (absolute paths)
* @param string $output absolute path to the output directory
* @param string $prefix e.g. 'Foo'
* @param string[] $paths List of files to scan (absolute paths)
* @param string $output absolute path to the output directory
* @param callable[] $patchers
* @param ConsoleLogger $logger
*/
Expand Down
6 changes: 3 additions & 3 deletions tests/Console/Command/AddPrefixCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use Symfony\Component\Console\Exception\RuntimeException as SymfonyConsoleRuntimeException;
use Symfony\Component\Console\Exception\RuntimeException;
use Symfony\Component\Console\Exception\RuntimeException as SymfonyConsoleRuntimeException;
use Symfony\Component\Console\Tester\ApplicationTester;
use Symfony\Component\Filesystem\Filesystem;
use function Humbug\PhpScoper\escape_path;
Expand All @@ -34,7 +34,7 @@
class AddPrefixCommandTest extends TestCase
{
const FIXTURE_PATH = __DIR__.'/../../../fixtures';

/**
* @var ApplicationTester
*/
Expand Down Expand Up @@ -596,7 +596,7 @@ public function test_throws_an_error_when_passing_a_non_existent_path_file()
public function test_attemps_to_use_patch_file_in_current_directory()
{
chdir(escape_path(self::FIXTURE_PATH.'/set006'));

$input = [
'add-prefix',
'--prefix' => 'MyPrefix',
Expand Down
2 changes: 1 addition & 1 deletion tests/Handler/HandleAddPrefixTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
namespace Humbug\PhpScoper\Handler;

use Error;
use function Humbug\PhpScoper\create_fake_patcher;
use Humbug\PhpScoper\Logger\ConsoleLogger;
use Humbug\PhpScoper\Scoper;
use Humbug\PhpScoper\Throwable\Exception\ParsingException;
Expand All @@ -25,6 +24,7 @@
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use Throwable;
use function Humbug\PhpScoper\create_fake_patcher;
use function Humbug\PhpScoper\escape_path;
use function Humbug\PhpScoper\make_tmp_dir;
use function Humbug\PhpScoper\remove_dir;
Expand Down
2 changes: 1 addition & 1 deletion tests/Scoper/Composer/InstalledPackagesScoperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

namespace Humbug\PhpScoper\Scoper\Composer;

use function Humbug\PhpScoper\create_fake_patcher;
use Humbug\PhpScoper\Scoper;
use Humbug\PhpScoper\Scoper\FakeScoper;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use function Humbug\PhpScoper\create_fake_patcher;
use function Humbug\PhpScoper\escape_path;
use function Humbug\PhpScoper\make_tmp_dir;
use function Humbug\PhpScoper\remove_dir;
Expand Down
2 changes: 1 addition & 1 deletion tests/Scoper/Composer/JsonFileScoperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

namespace Humbug\PhpScoper\Scoper\Composer;

use function Humbug\PhpScoper\create_fake_patcher;
use Humbug\PhpScoper\Scoper;
use Humbug\PhpScoper\Scoper\FakeScoper;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use function Humbug\PhpScoper\create_fake_patcher;
use function Humbug\PhpScoper\escape_path;
use function Humbug\PhpScoper\make_tmp_dir;
use function Humbug\PhpScoper\remove_dir;
Expand Down
2 changes: 1 addition & 1 deletion tests/Scoper/NullScoperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

namespace Humbug\PhpScoper\Scoper;

use function Humbug\PhpScoper\create_fake_patcher;
use Humbug\PhpScoper\Scoper;
use PHPUnit\Framework\TestCase;
use function Humbug\PhpScoper\create_fake_patcher;
use function Humbug\PhpScoper\escape_path;
use function Humbug\PhpScoper\make_tmp_dir;
use function Humbug\PhpScoper\remove_dir;
Expand Down
2 changes: 1 addition & 1 deletion tests/Scoper/PhpScoperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

namespace Humbug\PhpScoper\Scoper;

use function Humbug\PhpScoper\create_fake_patcher;
use Humbug\PhpScoper\PhpParser\FakeParser;
use Humbug\PhpScoper\Scoper;
use PhpParser\Error as PhpParserError;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Prophecy\Prophecy\ObjectProphecy;
use function Humbug\PhpScoper\create_fake_patcher;
use function Humbug\PhpScoper\create_parser;
use function Humbug\PhpScoper\escape_path;
use function Humbug\PhpScoper\make_tmp_dir;
Expand Down

0 comments on commit fff1d6f

Please sign in to comment.