Skip to content

Commit 6f92f59

Browse files
committed
Adopted new codestyle
1 parent 32967c9 commit 6f92f59

File tree

248 files changed

+4614
-3261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+4614
-3261
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"phpunit/phpunit": "^10.4",
2525
"infection/infection": "^0.27 || ^0.28 || ^0.29",
2626
"phpstan/phpstan": "^1.10",
27-
"infinityloop-dev/coding-standard": "^0.2"
27+
"webthinx/codestyle": "dev-main"
2828
},
2929
"suggest": {
3030
"infinityloop-dev/graphpinator-nette": "Adapters for Nette framework.",
@@ -46,8 +46,8 @@
4646
"phpstan": "phpstan analyze --level 2 src",
4747
"phpstan-next": "phpstan analyze --level 3 src",
4848
"phpstan-max": "phpstan analyze --level max src",
49-
"codestyle": "phpcs --standard=vendor/infinityloop-dev/coding-standard/InfinityloopCodingStandard/ruleset.xml --extensions=php src tests",
50-
"codestyle-fix": "phpcbf --standard=vendor/infinityloop-dev/coding-standard/InfinityloopCodingStandard/ruleset.xml --extensions=php src tests"
49+
"codestyle": "phpcs --extensions=php src tests",
50+
"codestyle-fix": "phpcbf --extensions=php src tests"
5151
},
5252
"autoload": {
5353
"psr-4": {

composer.lock

Lines changed: 106 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0"?>
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Webthinx Coding Standard" xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd">
3+
<file>src</file>
4+
<file>tests</file>
5+
6+
<rule ref="./vendor/webthinx/codestyle/phpcs.xml"/>
7+
</ruleset>

src/Exception/DuplicateNonRepeatableDirective.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Graphpinator\Exception;
66

7-
final class DuplicateNonRepeatableDirective extends \Graphpinator\Exception\GraphpinatorBase
7+
final class DuplicateNonRepeatableDirective extends GraphpinatorBase
88
{
99
public const MESSAGE = 'Duplicate non-repeatable directive in DirectiveUsageSet found.';
1010
}

src/Exception/OperationNotSupported.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Graphpinator\Exception;
66

7-
final class OperationNotSupported extends \Graphpinator\Exception\GraphpinatorBase
7+
final class OperationNotSupported extends GraphpinatorBase
88
{
99
public const MESSAGE = 'This method is not supported on this object.';
1010
}

src/Exception/Value/InvalidValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Graphpinator\Exception\Value;
66

7-
final class InvalidValue extends \Graphpinator\Exception\Value\ValueError
7+
final class InvalidValue extends ValueError
88
{
99
public const MESSAGE = 'Invalid value resolved for type "%s" - got %s.';
1010

0 commit comments

Comments
 (0)