Skip to content

Commit dd58431

Browse files
authoredMay 10, 2022
fix(chore): fix code style; PSR4 on KafkaSchemaRegistryApiClientTest.php; update composer.json to comply with newer composer versions (#15)
1 parent 3d80b85 commit dd58431

20 files changed

+5
-20
lines changed
 

‎composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"squizlabs/php_codesniffer": "^3.4.2"
3434
},
3535
"config": {
36-
"sort-packages": true
36+
"sort-packages": true,
37+
"allow-plugins": {
38+
"infection/extension-installer": true
39+
}
3740
}
3841
}

‎src/Exception/AbstractKafkaSchemaRegistryException.php

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66

77
abstract class AbstractKafkaSchemaRegistryException extends Exception implements SchemaRegistryExceptionInterface
88
{
9-
109
}

‎src/Exception/BackendDatastoreException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class BackendDatastoreException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/CompatibilityException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class CompatibilityException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/ImportException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class ImportException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/IncompatibileAvroSchemaException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class IncompatibileAvroSchemaException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/InvalidAvroSchemaException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class InvalidAvroSchemaException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/InvalidVersionException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class InvalidVersionException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/OperationTimeoutException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class OperationTimeoutException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/PathNotFoundException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class PathNotFoundException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/RequestForwardException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class RequestForwardException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/SchemaNotFoundException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class SchemaNotFoundException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/SchemaRegistryExceptionInterface.php

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66

77
interface SchemaRegistryExceptionInterface extends ClientExceptionInterface
88
{
9-
109
}

‎src/Exception/SubjectNotFoundException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class SubjectNotFoundException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/UnauthorizedException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class UnauthorizedException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/UnprocessableEntityException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class UnprocessableEntityException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/Exception/VersionNotFoundException.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
class VersionNotFoundException extends AbstractKafkaSchemaRegistryException
66
{
7-
87
}

‎src/ServiceProvider/KafkaSchemaRegistryApiClientProvider.php

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
class KafkaSchemaRegistryApiClientProvider implements ServiceProviderInterface
2020
{
21-
2221
public const CONTAINER_KEY = 'kafka.schema.registry';
2322

2423
public const SETTING_KEY_USERNAME = 'username';

‎tests/KafkaSchemaRegistryApiClientTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* @covers \Jobcloud\Kafka\SchemaRegistryClient\KafkaSchemaRegistryApiClient
1717
*/
18-
class KafkaSchemaRegistryApiApiClientTest extends TestCase
18+
class KafkaSchemaRegistryApiClientTest extends TestCase
1919
{
2020
private const TEST_SUBJECT_NAME = 'some-subject';
2121
private const TEST_SCHEMA = '{}';

‎tests/ReflectionAccessTrait.php

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212
trait ReflectionAccessTrait
1313
{
14-
1514
/**
1615
* Set private/protected property.
1716
*

0 commit comments

Comments
 (0)