Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the PhpcsChanged\Cli namespace #83

Merged
merged 1 commit into from
May 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PhpcsChanged/Cli.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace PhpcsChanged\Cli;
namespace PhpcsChanged;

use PhpcsChanged\CliOptions;
use PhpcsChanged\NoChangesException;
Expand Down
2 changes: 1 addition & 1 deletion PhpcsChanged/FullReporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use PhpcsChanged\Reporter;
use PhpcsChanged\PhpcsMessages;
use PhpcsChanged\LintMessage;
use function PhpcsChanged\Cli\getLongestString;
use function PhpcsChanged\getLongestString;

class FullReporter implements Reporter {
public function getFormattedMessages(PhpcsMessages $messages, array $options): string {
Expand Down
6 changes: 3 additions & 3 deletions PhpcsChanged/UnixShell.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use PhpcsChanged\ShellOperator;
use PhpcsChanged\CliOptions;
use PhpcsChanged\Modes;
use function PhpcsChanged\Cli\printError;
use function PhpcsChanged\Cli\getDebug;
use function PhpcsChanged\Cli\getPhpcsExecutable;
use function PhpcsChanged\printError;
use function PhpcsChanged\getDebug;
use function PhpcsChanged\getPhpcsExecutable;

/**
* Module to perform file and shell operations
Expand Down
2 changes: 1 addition & 1 deletion bin/phpcs-changed
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if ('cli' !== php_sapi_name()) {

require_once __DIR__ . '/../index.php';

use function PhpcsChanged\Cli\{
use function PhpcsChanged\{
printHelp,
printVersion,
printErrorAndExit,
Expand Down
2 changes: 1 addition & 1 deletion tests/CliTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require_once dirname(__DIR__) . '/index.php';

use PHPUnit\Framework\TestCase;
use function PhpcsChanged\Cli\{fileHasValidExtension,shouldIgnorePath};
use function PhpcsChanged\{fileHasValidExtension,shouldIgnorePath};

class MockSplFileInfo extends \SplFileInfo {
private $isFile = false;
Expand Down
2 changes: 1 addition & 1 deletion tests/GitWorkflowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use PhpcsChangedTests\GitFixture;
use PhpcsChangedTests\PhpcsFixture;
use PhpcsChangedTests\TestCache;
use function PhpcsChanged\Cli\runGitWorkflow;
use function PhpcsChanged\runGitWorkflow;

final class GitWorkflowTest extends TestCase {
public $fixture;
Expand Down
2 changes: 1 addition & 1 deletion tests/SvnWorkflowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use PhpcsChangedTests\TestCache;
use PhpcsChangedTests\SvnFixture;
use PhpcsChangedTests\PhpcsFixture;
use function PhpcsChanged\Cli\runSvnWorkflow;
use function PhpcsChanged\runSvnWorkflow;

final class SvnWorkflowTest extends TestCase {
public $phpcs;
Expand Down