From 756d0e3cb1ec1af946862dc60629d96a125057f3 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sun, 24 Dec 2023 10:06:32 +0100 Subject: [PATCH] Fix CS/WS issues --- src/schema/FieldDefinition.php | 2 +- src/schema/type/Type.php | 2 +- tests/unit/ParserTest.php | 4 ++-- tests/unit/schema/SchemaTest.php | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/schema/FieldDefinition.php b/src/schema/FieldDefinition.php index 6c85762..ab1e0f8 100644 --- a/src/schema/FieldDefinition.php +++ b/src/schema/FieldDefinition.php @@ -59,7 +59,7 @@ public function apply(array $input, array &$output): void { if (!array_key_exists($this->position - 1, $input)) { throw new OutOfBoundsException( - 'Input array does not have an element at position ' . $this->position + 'Input array does not have an element at position ' . $this->position, ); } diff --git a/src/schema/type/Type.php b/src/schema/type/Type.php index d4c5195..f5afc70 100644 --- a/src/schema/type/Type.php +++ b/src/schema/type/Type.php @@ -45,5 +45,5 @@ private function __construct() { } - abstract public function apply(string $value): bool|int|float|object|string; + abstract public function apply(string $value): bool|float|int|object|string; } diff --git a/tests/unit/ParserTest.php b/tests/unit/ParserTest.php index e241d34..35a07e5 100644 --- a/tests/unit/ParserTest.php +++ b/tests/unit/ParserTest.php @@ -192,8 +192,8 @@ public function test_Parses_CSV_file_according_to_schema(array $expected, Schema $parser->parse( $filename, $schema, - ) - ) + ), + ), ); } diff --git a/tests/unit/schema/SchemaTest.php b/tests/unit/schema/SchemaTest.php index 9fa4323..14a5a83 100644 --- a/tests/unit/schema/SchemaTest.php +++ b/tests/unit/schema/SchemaTest.php @@ -46,8 +46,8 @@ public function testAppliesFieldDefinitionsToMapInputArrayToOutputArray(): void '1.1', '1', '1', - ] - ) + ], + ), ); } }