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

Rebrand to IODigital namespace #1

Merged
merged 2 commits into from
Oct 19, 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
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- "develop"
- "master"
- "main"
pull_request: ~

jobs:
Expand All @@ -14,7 +14,6 @@ jobs:
strategy:
matrix:
php-version:
- "7.3"
- "7.4"
- "8.0"
- "8.1"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ all new code adheres to your coding standard without touching the existing code.
Require the package with composer:

```sh
composer require --dev isaac/php-code-sniffer-baseliner
composer require --dev iodigital-com/php-code-sniffer-baseliner
```

It is also possible to install this package as a global composer dependency.
Expand Down Expand Up @@ -96,4 +96,4 @@ multi-line strings). In those cases, `// phpcs:disable` and `// phpcs:enable` in
[slevomat-coding-standard]: (https://github.com/slevomat/coding-standard)
[declare-strict-types-sniff]: (https://github.com/slevomat/coding-standard#slevomatcodingstandardtypehintsdeclarestricttypes-)
[property-type-hint-sniff]: (https://github.com/slevomat/coding-standard#slevomatcodingstandardtypehintspropertytypehint-)
[unit-test-data-set]: (https://github.com/isaaceindhoven/php-code-sniffer-baseliner/blob/master/tests/File/AddBaselineProcessorTestDataProvider.php)
[unit-test-data-set]: (https://github.com/iodigital-com/php-code-sniffer-baseliner/blob/master/tests/File/AddBaselineProcessorTestDataProvider.php)
2 changes: 1 addition & 1 deletion bin/phpcs-baseliner
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner;
namespace IODigital\CodeSnifferBaseliner;

use function file_exists;

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "isaac/php-code-sniffer-baseliner",
"description": "ISAAC PHP Code Sniffer Baseliner",
"name": "iodigital-com/php-code-sniffer-baseliner",
"description": "IO PHP Code Sniffer Baseliner",
"type": "library",
"license": "MIT",
"require": {
"php": "~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0",
"php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0",
"ext-dom": "*",
"ext-json": "*",
"ext-simplexml": "*",
"squizlabs/php_codesniffer": "^3.5"
},
"autoload": {
"psr-4": {
"ISAAC\\CodeSnifferBaseliner\\": "src/"
"IODigital\\CodeSnifferBaseliner\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ISAAC\\CodeSnifferBaseliner\\Tests\\": "tests/"
"IODigital\\CodeSnifferBaseliner\\Tests\\": "tests/"
}
},
"bin": [
"bin/phpcs-baseliner"
],
"require-dev": {
"isaac/php-code-sniffer-standard": "^28.0",
"iodigital-com/php-code-sniffer-standard": "^29.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.6.8",
"phpstan/phpstan-phpunit": "^1.1.1",
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<file>src</file>
<file>tests</file>
<exclude-pattern>/tests/Fixtures/</exclude-pattern>
<rule ref="ISAAC"/>
<rule ref="IO"/>
<config name="php_version" value="70300"/>
<config name="testVersion" value="7.3-8.2"/>
<arg name="extensions" value="php"/>
Expand Down
18 changes: 9 additions & 9 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner;
namespace IODigital\CodeSnifferBaseliner;

use Exception;
use InvalidArgumentException;
use ISAAC\CodeSnifferBaseliner\Baseline\BaselineFactory;
use ISAAC\CodeSnifferBaseliner\Command\CreateBaseline;
use ISAAC\CodeSnifferBaseliner\Command\ShowHelp;
use ISAAC\CodeSnifferBaseliner\Filesystem\NativeFilesystem;
use ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Runner;
use ISAAC\CodeSnifferBaseliner\SourceCodeProcessor\AddBaselineProcessor;
use ISAAC\CodeSnifferBaseliner\SourceCodeProcessor\InstructionCommentLineParser;
use ISAAC\CodeSnifferBaseliner\Util\OutputWriter;
use IODigital\CodeSnifferBaseliner\Baseline\BaselineFactory;
use IODigital\CodeSnifferBaseliner\Command\CreateBaseline;
use IODigital\CodeSnifferBaseliner\Command\ShowHelp;
use IODigital\CodeSnifferBaseliner\Filesystem\NativeFilesystem;
use IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Runner;
use IODigital\CodeSnifferBaseliner\SourceCodeProcessor\AddBaselineProcessor;
use IODigital\CodeSnifferBaseliner\SourceCodeProcessor\InstructionCommentLineParser;
use IODigital\CodeSnifferBaseliner\Util\OutputWriter;
use Throwable;

use function array_shift;
Expand Down
2 changes: 1 addition & 1 deletion src/BasePathFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner;
namespace IODigital\CodeSnifferBaseliner;

use RuntimeException;

Expand Down
2 changes: 1 addition & 1 deletion src/Baseline/Baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\Baseline;
namespace IODigital\CodeSnifferBaseliner\Baseline;

class Baseline
{
Expand Down
6 changes: 3 additions & 3 deletions src/Baseline/BaselineFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\Baseline;
namespace IODigital\CodeSnifferBaseliner\Baseline;

use ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\FileReport;
use ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\Report;
use IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\FileReport;
use IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\Report;

use function array_map;

Expand Down
12 changes: 6 additions & 6 deletions src/BaselineCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner;
namespace IODigital\CodeSnifferBaseliner;

use ISAAC\CodeSnifferBaseliner\Baseline\BaselineFactory;
use ISAAC\CodeSnifferBaseliner\Filesystem\Filesystem;
use ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Runner;
use ISAAC\CodeSnifferBaseliner\SourceCodeProcessor\AddBaselineProcessor;
use ISAAC\CodeSnifferBaseliner\Util\OutputWriter;
use IODigital\CodeSnifferBaseliner\Baseline\BaselineFactory;
use IODigital\CodeSnifferBaseliner\Filesystem\Filesystem;
use IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Runner;
use IODigital\CodeSnifferBaseliner\SourceCodeProcessor\AddBaselineProcessor;
use IODigital\CodeSnifferBaseliner\Util\OutputWriter;

use function sprintf;

Expand Down
2 changes: 1 addition & 1 deletion src/Command/CreateBaseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\Command;
namespace IODigital\CodeSnifferBaseliner\Command;

class CreateBaseline
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/ShowHelp.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\Command;
namespace IODigital\CodeSnifferBaseliner\Command;

class ShowHelp
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\Filesystem;
namespace IODigital\CodeSnifferBaseliner\Filesystem;

interface Filesystem
{
Expand Down
2 changes: 1 addition & 1 deletion src/Filesystem/FilesystemException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\Filesystem;
namespace IODigital\CodeSnifferBaseliner\Filesystem;

use RuntimeException;

Expand Down
2 changes: 1 addition & 1 deletion src/Filesystem/NativeFilesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\Filesystem;
namespace IODigital\CodeSnifferBaseliner\Filesystem;

use function file_get_contents;
use function file_put_contents;
Expand Down
2 changes: 1 addition & 1 deletion src/PhpCodeSnifferRunner/Report/FileReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report;
namespace IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report;

class FileReport
{
Expand Down
2 changes: 1 addition & 1 deletion src/PhpCodeSnifferRunner/Report/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report;
namespace IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report;

class Message
{
Expand Down
2 changes: 1 addition & 1 deletion src/PhpCodeSnifferRunner/Report/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report;
namespace IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report;

class Report
{
Expand Down
2 changes: 1 addition & 1 deletion src/PhpCodeSnifferRunner/Report/Totals.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report;
namespace IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report;

class Totals
{
Expand Down
12 changes: 6 additions & 6 deletions src/PhpCodeSnifferRunner/ReportDeserializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner;
namespace IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner;

use ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\FileReport;
use ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\Message;
use ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\Report;
use ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\Totals;
use ISAAC\CodeSnifferBaseliner\Util\PropertyAccessor;
use IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\FileReport;
use IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\Message;
use IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\Report;
use IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\Totals;
use IODigital\CodeSnifferBaseliner\Util\PropertyAccessor;
use RuntimeException;

use function array_map;
Expand Down
4 changes: 2 additions & 2 deletions src/PhpCodeSnifferRunner/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner;
namespace IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner;

use ISAAC\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\Report;
use IODigital\CodeSnifferBaseliner\PhpCodeSnifferRunner\Report\Report;
use RuntimeException;

use function array_key_exists;
Expand Down
2 changes: 1 addition & 1 deletion src/PhpTokenizer/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\PhpTokenizer;
namespace IODigital\CodeSnifferBaseliner\PhpTokenizer;

use function in_array;
use function json_encode;
Expand Down
2 changes: 1 addition & 1 deletion src/PhpTokenizer/TokenizedSourceCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\PhpTokenizer;
namespace IODigital\CodeSnifferBaseliner\PhpTokenizer;

use ArrayIterator;
use Iterator;
Expand Down
2 changes: 1 addition & 1 deletion src/PhpTokenizer/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\PhpTokenizer;
namespace IODigital\CodeSnifferBaseliner\PhpTokenizer;

use function is_array;
use function token_get_all;
Expand Down
6 changes: 3 additions & 3 deletions src/SourceCodeProcessor/AddBaselineProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\SourceCodeProcessor;
namespace IODigital\CodeSnifferBaseliner\SourceCodeProcessor;

use ISAAC\CodeSnifferBaseliner\PhpTokenizer\TokenizedSourceCode;
use ISAAC\CodeSnifferBaseliner\PhpTokenizer\Tokenizer;
use IODigital\CodeSnifferBaseliner\PhpTokenizer\TokenizedSourceCode;
use IODigital\CodeSnifferBaseliner\PhpTokenizer\Tokenizer;

use function array_key_exists;
use function array_splice;
Expand Down
2 changes: 1 addition & 1 deletion src/SourceCodeProcessor/Exception/MergeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\SourceCodeProcessor\Exception;
namespace IODigital\CodeSnifferBaseliner\SourceCodeProcessor\Exception;

use LogicException;

Expand Down
2 changes: 1 addition & 1 deletion src/SourceCodeProcessor/Exception/ParseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\SourceCodeProcessor\Exception;
namespace IODigital\CodeSnifferBaseliner\SourceCodeProcessor\Exception;

use LogicException;

Expand Down
4 changes: 2 additions & 2 deletions src/SourceCodeProcessor/InstructionComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\SourceCodeProcessor;
namespace IODigital\CodeSnifferBaseliner\SourceCodeProcessor;

use ISAAC\CodeSnifferBaseliner\SourceCodeProcessor\Exception\MergeException;
use IODigital\CodeSnifferBaseliner\SourceCodeProcessor\Exception\MergeException;

use function array_merge;
use function array_unique;
Expand Down
2 changes: 1 addition & 1 deletion src/SourceCodeProcessor/InstructionCommentLineParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\SourceCodeProcessor;
namespace IODigital\CodeSnifferBaseliner\SourceCodeProcessor;

use function array_key_exists;
use function explode;
Expand Down
2 changes: 1 addition & 1 deletion src/Util/OutputWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\Util;
namespace IODigital\CodeSnifferBaseliner\Util;

use const PHP_EOL;

Expand Down
2 changes: 1 addition & 1 deletion src/Util/PropertyAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\Util;
namespace IODigital\CodeSnifferBaseliner\Util;

use RuntimeException;

Expand Down
4 changes: 2 additions & 2 deletions tests/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace ISAAC\CodeSnifferBaseliner\Tests;
namespace IODigital\CodeSnifferBaseliner\Tests;

use ISAAC\CodeSnifferBaseliner\Application;
use IODigital\CodeSnifferBaseliner\Application;
use PHPUnit\Framework\TestCase;

use function chdir;
Expand Down
Loading