Skip to content

Commit

Permalink
Adopted new codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax committed Jul 18, 2024
1 parent 32967c9 commit 6f92f59
Show file tree
Hide file tree
Showing 248 changed files with 4,614 additions and 3,261 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"phpunit/phpunit": "^10.4",
"infection/infection": "^0.27 || ^0.28 || ^0.29",
"phpstan/phpstan": "^1.10",
"infinityloop-dev/coding-standard": "^0.2"
"webthinx/codestyle": "dev-main"
},
"suggest": {
"infinityloop-dev/graphpinator-nette": "Adapters for Nette framework.",
Expand All @@ -46,8 +46,8 @@
"phpstan": "phpstan analyze --level 2 src",
"phpstan-next": "phpstan analyze --level 3 src",
"phpstan-max": "phpstan analyze --level max src",
"codestyle": "phpcs --standard=vendor/infinityloop-dev/coding-standard/InfinityloopCodingStandard/ruleset.xml --extensions=php src tests",
"codestyle-fix": "phpcbf --standard=vendor/infinityloop-dev/coding-standard/InfinityloopCodingStandard/ruleset.xml --extensions=php src tests"
"codestyle": "phpcs --extensions=php src tests",
"codestyle-fix": "phpcbf --extensions=php src tests"
},
"autoload": {
"psr-4": {
Expand Down
192 changes: 106 additions & 86 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Webthinx Coding Standard" xsi:noNamespaceSchemaLocation="./vendor/squizlabs/php_codesniffer/phpcs.xsd">
<file>src</file>
<file>tests</file>

<rule ref="./vendor/webthinx/codestyle/phpcs.xml"/>
</ruleset>
2 changes: 1 addition & 1 deletion src/Exception/DuplicateNonRepeatableDirective.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Graphpinator\Exception;

final class DuplicateNonRepeatableDirective extends \Graphpinator\Exception\GraphpinatorBase
final class DuplicateNonRepeatableDirective extends GraphpinatorBase
{
public const MESSAGE = 'Duplicate non-repeatable directive in DirectiveUsageSet found.';
}
2 changes: 1 addition & 1 deletion src/Exception/OperationNotSupported.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Graphpinator\Exception;

final class OperationNotSupported extends \Graphpinator\Exception\GraphpinatorBase
final class OperationNotSupported extends GraphpinatorBase
{
public const MESSAGE = 'This method is not supported on this object.';
}
2 changes: 1 addition & 1 deletion src/Exception/Value/InvalidValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Graphpinator\Exception\Value;

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

Expand Down
Loading

0 comments on commit 6f92f59

Please sign in to comment.