Skip to content

Commit 6b16fc4

Browse files
committed
Adding phpcs.xml and some phpcs fixes
1 parent 858d930 commit 6b16fc4

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

phpcs.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="Phauthentic">
3+
<rule ref="./vendor/squizlabs/php_codesniffer/src/Standards/PSR2/ruleset.xml">
4+
<exclude name="Generic.Files.LineLength.TooLong"/>
5+
</rule>
6+
<file>./src</file>
7+
<file>./tests</file>
8+
</ruleset>

tests/TestCase/Identifier/CallbackIdentifierTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use PHPUnit\Framework\TestCase;
2121
use RuntimeException;
2222

23-
// phpcs:disable
23+
// phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses
2424
class MyCallback
2525
{
2626

@@ -29,8 +29,10 @@ public static function callme($data)
2929
return new ArrayObject();
3030
}
3131
}
32-
// phpcs:enable
3332

33+
/**
34+
* Callback Identifier Test
35+
*/
3436
class CallbackIdentifierTest extends TestCase
3537
{
3638
/**

tests/TestCase/Middleware/AuthenticationErrorHandlerMiddlewareTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use Psr\Http\Server\RequestHandlerInterface;
2626
use Throwable;
2727

28-
// phpcs:disable
28+
// phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses
2929
class TestRequestHandler implements RequestHandlerInterface
3030
{
3131
/**
@@ -53,7 +53,6 @@ public function handle(ServerRequestInterface $request): ResponseInterface
5353
throw $this->exception;
5454
}
5555
}
56-
// phpcs:enable
5756

5857
/**
5958
* Authentication Error Handler Middleware Test

0 commit comments

Comments
 (0)