From 1a35d1be618df8f94b68729fb91c8a2e5a14704b Mon Sep 17 00:00:00 2001 From: Marijn van Wezel Date: Fri, 6 Feb 2026 18:41:54 +0100 Subject: [PATCH 1/5] Add support for operator chaining --- CHANGELOG.md | 6 +- .../Operators/ComparisonBinaryOperator.php | 12 ++++ src/Expressions/Operators/Operator.php | 2 +- .../Expressions/Operators/EqualityTest.php | 2 +- .../Operators/GreaterThanOrEqualTest.php | 2 +- .../Expressions/Operators/GreaterThanTest.php | 13 +++- .../Expressions/Operators/InequalityTest.php | 2 +- .../Operators/LessThanOrEqualTest.php | 2 +- .../Expressions/Operators/LessThanTest.php | 2 +- .../Expressions/Operators/PrecedenceTest.php | 72 +++++++++++++++++-- 10 files changed, 103 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e338e42..4a7a73e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,12 +8,16 @@ The format is based on [Keep a Changelog], and this project adheres to ## 7.0.0 - T.B.D. +### Added + +- Added support for operator chaining (e.g. `a > b > c`). + ### Changed - Changed the minimum required PHP version to 8.1. - Changed the signature of many functions to use PHP 8 union types. - Changed the `Relationship::DIR_*` to the `Direction` enum. -- Remove `$insertParentheses` from all methods, and automatically insert them based on precedence. +- Remove `$insertParentheses` from all methods, and automatically insert them based on precedence. - No longer insert parentheses when chaining comparison operators. ### Removed diff --git a/src/Expressions/Operators/ComparisonBinaryOperator.php b/src/Expressions/Operators/ComparisonBinaryOperator.php index 2538c30..fc0996d 100644 --- a/src/Expressions/Operators/ComparisonBinaryOperator.php +++ b/src/Expressions/Operators/ComparisonBinaryOperator.php @@ -45,4 +45,16 @@ public function __construct(AnyType $left, AnyType $right) { parent::__construct($left, $right); } + + /** + * @inheritDoc + */ + protected function shouldInsertParentheses(AnyType $expression): bool + { + if ($expression instanceof ComparisonBinaryOperator) { + return false; + } + + return parent::shouldInsertParentheses($expression); + } } diff --git a/src/Expressions/Operators/Operator.php b/src/Expressions/Operators/Operator.php index 22d754d..b850443 100644 --- a/src/Expressions/Operators/Operator.php +++ b/src/Expressions/Operators/Operator.php @@ -38,7 +38,7 @@ abstract protected function getPrecedence(): Precedence; /** * Whether to insert parentheses around the given expression, given the precedence of this operator. */ - final protected function shouldInsertParentheses(AnyType $expression): bool + protected function shouldInsertParentheses(AnyType $expression): bool { if (!$expression instanceof self) { return false; diff --git a/tests/unit/Expressions/Operators/EqualityTest.php b/tests/unit/Expressions/Operators/EqualityTest.php index 97d9447..752d1a3 100644 --- a/tests/unit/Expressions/Operators/EqualityTest.php +++ b/tests/unit/Expressions/Operators/EqualityTest.php @@ -28,7 +28,7 @@ public function testToQuery(): void $equality = new Equality($equality, $equality); - $this->assertSame("(10 = 15) = (10 = 15)", $equality->toQuery()); + $this->assertSame("10 = 15 = 10 = 15", $equality->toQuery()); } public function testInstanceOfBooleanType(): void diff --git a/tests/unit/Expressions/Operators/GreaterThanOrEqualTest.php b/tests/unit/Expressions/Operators/GreaterThanOrEqualTest.php index e70405c..5eccfd7 100644 --- a/tests/unit/Expressions/Operators/GreaterThanOrEqualTest.php +++ b/tests/unit/Expressions/Operators/GreaterThanOrEqualTest.php @@ -27,7 +27,7 @@ public function testToQuery(): void $greaterThanOrEqual = new GreaterThanOrEqual($greaterThanOrEqual, $greaterThanOrEqual); - $this->assertSame("(10 >= 15) >= (10 >= 15)", $greaterThanOrEqual->toQuery()); + $this->assertSame("10 >= 15 >= 10 >= 15", $greaterThanOrEqual->toQuery()); } public function testInstanceOfBooleanType(): void diff --git a/tests/unit/Expressions/Operators/GreaterThanTest.php b/tests/unit/Expressions/Operators/GreaterThanTest.php index 46d0cef..c477175 100644 --- a/tests/unit/Expressions/Operators/GreaterThanTest.php +++ b/tests/unit/Expressions/Operators/GreaterThanTest.php @@ -27,7 +27,18 @@ public function testToQuery(): void $greaterThan = new GreaterThan($greaterThan, $greaterThan, false); - $this->assertSame("(10 > 15) > (10 > 15)", $greaterThan->toQuery()); + $this->assertSame("10 > 15 > 10 > 15", $greaterThan->toQuery()); + } + + public function testChainedComparisons(): void + { + $a = new Integer(10); + $b = new Integer(5); + $c = new Integer(1); + + $expr = $a->gt($b)->gt($c); + + $this->assertSame("10 > 5 > 1", $expr->toQuery()); } public function testInstanceOfBooleanType(): void diff --git a/tests/unit/Expressions/Operators/InequalityTest.php b/tests/unit/Expressions/Operators/InequalityTest.php index 13f4096..41ffb5d 100644 --- a/tests/unit/Expressions/Operators/InequalityTest.php +++ b/tests/unit/Expressions/Operators/InequalityTest.php @@ -28,7 +28,7 @@ public function testToQuery(): void $inequality = new Inequality($inequality, $inequality); - $this->assertSame("(v.a <> v.b) <> (v.a <> v.b)", $inequality->toQuery()); + $this->assertSame("v.a <> v.b <> v.a <> v.b", $inequality->toQuery()); } public function testInstanceOfBooleanType(): void diff --git a/tests/unit/Expressions/Operators/LessThanOrEqualTest.php b/tests/unit/Expressions/Operators/LessThanOrEqualTest.php index e03e1a2..32213d9 100644 --- a/tests/unit/Expressions/Operators/LessThanOrEqualTest.php +++ b/tests/unit/Expressions/Operators/LessThanOrEqualTest.php @@ -27,7 +27,7 @@ public function testToQuery(): void $lessThanOrEqual = new LessThanOrEqual($lessThanOrEqual, $lessThanOrEqual, false); - $this->assertSame("(10 <= 15) <= (10 <= 15)", $lessThanOrEqual->toQuery()); + $this->assertSame("10 <= 15 <= 10 <= 15", $lessThanOrEqual->toQuery()); } public function testInstanceOfBooleanType(): void diff --git a/tests/unit/Expressions/Operators/LessThanTest.php b/tests/unit/Expressions/Operators/LessThanTest.php index 8d5ff5e..e004abc 100644 --- a/tests/unit/Expressions/Operators/LessThanTest.php +++ b/tests/unit/Expressions/Operators/LessThanTest.php @@ -27,7 +27,7 @@ public function testToQuery(): void $lessThan = new LessThan($lessThan, $lessThan, false); - $this->assertSame("(10 < 15) < (10 < 15)", $lessThan->toQuery()); + $this->assertSame("10 < 15 < 10 < 15", $lessThan->toQuery()); } public function testInstanceOfBooleanType(): void diff --git a/tests/unit/Expressions/Operators/PrecedenceTest.php b/tests/unit/Expressions/Operators/PrecedenceTest.php index 47e53c7..a5e18b8 100644 --- a/tests/unit/Expressions/Operators/PrecedenceTest.php +++ b/tests/unit/Expressions/Operators/PrecedenceTest.php @@ -106,7 +106,7 @@ public function testComparisonWithAdditive(): void $this->assertSame('10 + 5 > 10 - 5', $expr->toQuery()); $expr = new Equality(new Inequality($num1, $num2), new Boolean(true)); - $this->assertSame('(10 <> 5) = true', $expr->toQuery()); + $this->assertSame('10 <> 5 = true', $expr->toQuery()); } public function testAdditiveWithMultiplicative(): void @@ -380,7 +380,7 @@ public function testMixedUnaryBinaryNesting(): void new LessThan($num, $num), $num ); - $this->assertSame('(3.0 < 3.0) < 3.0', $expr->toQuery()); + $this->assertSame('3.0 < 3.0 < 3.0', $expr->toQuery()); $expr = new Multiplication( new UnaryMinus(new Exponentiation($num, $num)), @@ -452,10 +452,10 @@ public function testAllSamePrecedenceCombinations(): void $this->assertSame('NOT (NOT true)', $expr->toQuery()); $expr = new Equality(new LessThan($num, $num), $true); - $this->assertSame('(7.0 < 7.0) = true', $expr->toQuery()); + $this->assertSame('7.0 < 7.0 = true', $expr->toQuery()); $expr = new LessThanOrEqual(new GreaterThanOrEqual($num, $num), $num); - $this->assertSame('(7.0 >= 7.0) <= 7.0', $expr->toQuery()); + $this->assertSame('7.0 >= 7.0 <= 7.0', $expr->toQuery()); $expr = new Addition(new Subtraction($num, $num), $num); $this->assertSame('(7.0 - 7.0) + 7.0', $expr->toQuery()); @@ -478,4 +478,68 @@ public function testAllSamePrecedenceCombinations(): void $expr = new Equality(new Contains($var, $var), new StartsWith($var, $var)); $this->assertSame('y CONTAINS y = y STARTS WITH y', $expr->toQuery()); } + + public function testChainedComparison(): void + { + $a = new Integer(10); + $b = new Integer(5); + $c = new Integer(1); + + $expr = new GreaterThan(new GreaterThan($a, $b), $c); + $this->assertSame("10 > 5 > 1", $expr->toQuery()); + } + + public function testChainedComparisonRhs(): void + { + $a = new Integer(10); + $b = new Integer(5); + $c = new Integer(1); + + $expr = new GreaterThan($a, new GreaterThan($b, $c)); + $this->assertSame("10 > 5 > 1", $expr->toQuery()); + } + + public function testChainedComparisonRhsCheck(): void + { + $a = new Integer(10); + $b = new Integer(5); + $c = new Integer(1); + $d = new Integer(0); + + $expr = new GreaterThan($a, new GreaterThan($b, new GreaterThan($c, $d))); + $this->assertSame("10 > 5 > 1 > 0", $expr->toQuery()); + } + + public function testChainedMixedComparisons(): void + { + $a = new Integer(10); + $b = new Integer(5); + $c = new Integer(5); + + $expr = new GreaterThanOrEqual(new GreaterThan($a, $b), $c); + $this->assertSame("10 > 5 >= 5", $expr->toQuery()); + } + + public function testChainedInequality(): void + { + $a = new Integer(10); + $b = new Integer(5); + $c = new Integer(10); + + $expr = new Inequality(new Inequality($a, $b), $c); + $this->assertSame("10 <> 5 <> 10", $expr->toQuery()); + } + + public function testChainedEquality(): void + { + $a = new Integer(1); + $b = new Integer(1); + $c = new Integer(1); + + $expr = new Equality(new Equality($a, $b), $c); + $this->assertSame("1 = 1 = 1", $expr->toQuery()); + + $expr = new Equality($a, new Equality($b, $c)); + $this->assertSame("1 = 1 = 1", $expr->toQuery()); + } } From 81d4b682011ca158545c5975b486955c93a5e787 Mon Sep 17 00:00:00 2001 From: Marijn van Wezel Date: Fri, 6 Feb 2026 18:44:01 +0100 Subject: [PATCH 2/5] Remove removed parameter from tests --- tests/unit/Expressions/ExistsTest.php | 2 +- tests/unit/Expressions/Operators/AdditionTest.php | 2 +- tests/unit/Expressions/Operators/GreaterThanTest.php | 2 +- tests/unit/Expressions/Operators/IsNotNullTest.php | 2 +- tests/unit/Expressions/Operators/IsNullTest.php | 2 +- tests/unit/Expressions/Operators/LessThanTest.php | 2 +- tests/unit/Expressions/Operators/MultiplicationTest.php | 4 ++-- tests/unit/Patterns/PathTest.php | 2 +- tests/unit/QueryTest.php | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/unit/Expressions/ExistsTest.php b/tests/unit/Expressions/ExistsTest.php index 99812c1..1c428ff 100644 --- a/tests/unit/Expressions/ExistsTest.php +++ b/tests/unit/Expressions/ExistsTest.php @@ -48,7 +48,7 @@ public function testToQuery(): void ) ), (new WhereClause)->addExpression( - new Equality(new Property(new Variable('toy'), 'name'), new String_('Banana'), false) + new Equality(new Property(new Variable('toy'), 'name'), new String_('Banana')) ) ); diff --git a/tests/unit/Expressions/Operators/AdditionTest.php b/tests/unit/Expressions/Operators/AdditionTest.php index 4cd9511..ce8c953 100644 --- a/tests/unit/Expressions/Operators/AdditionTest.php +++ b/tests/unit/Expressions/Operators/AdditionTest.php @@ -40,7 +40,7 @@ public function testToQuery(): void $this->assertEquals($addition, $newAddition->getLeft()); $this->assertEquals($addition, $newAddition->getRight()); - $newAddition = new Addition($addition, $addition, false); + $newAddition = new Addition($addition, $addition); $this->assertSame("(10 + 15.0) + (10 + 15.0)", $newAddition->toQuery()); diff --git a/tests/unit/Expressions/Operators/GreaterThanTest.php b/tests/unit/Expressions/Operators/GreaterThanTest.php index c477175..07c2743 100644 --- a/tests/unit/Expressions/Operators/GreaterThanTest.php +++ b/tests/unit/Expressions/Operators/GreaterThanTest.php @@ -25,7 +25,7 @@ public function testToQuery(): void $this->assertSame("10 > 15", $greaterThan->toQuery()); - $greaterThan = new GreaterThan($greaterThan, $greaterThan, false); + $greaterThan = new GreaterThan($greaterThan, $greaterThan); $this->assertSame("10 > 15 > 10 > 15", $greaterThan->toQuery()); } diff --git a/tests/unit/Expressions/Operators/IsNotNullTest.php b/tests/unit/Expressions/Operators/IsNotNullTest.php index 5d1dfb4..1fd2df7 100644 --- a/tests/unit/Expressions/Operators/IsNotNullTest.php +++ b/tests/unit/Expressions/Operators/IsNotNullTest.php @@ -21,7 +21,7 @@ final class IsNotNullTest extends TestCase { public function testToQuery(): void { - $isNotNull = new IsNotNull(new Boolean(true), false); + $isNotNull = new IsNotNull(new Boolean(true)); $this->assertSame("true IS NOT NULL", $isNotNull->toQuery()); diff --git a/tests/unit/Expressions/Operators/IsNullTest.php b/tests/unit/Expressions/Operators/IsNullTest.php index e307f3e..6dca198 100644 --- a/tests/unit/Expressions/Operators/IsNullTest.php +++ b/tests/unit/Expressions/Operators/IsNullTest.php @@ -21,7 +21,7 @@ final class IsNullTest extends TestCase { public function testToQuery(): void { - $isNull = new IsNull(new Boolean(true), false); + $isNull = new IsNull(new Boolean(true)); $this->assertSame("true IS NULL", $isNull->toQuery()); diff --git a/tests/unit/Expressions/Operators/LessThanTest.php b/tests/unit/Expressions/Operators/LessThanTest.php index e004abc..7e3fc54 100644 --- a/tests/unit/Expressions/Operators/LessThanTest.php +++ b/tests/unit/Expressions/Operators/LessThanTest.php @@ -25,7 +25,7 @@ public function testToQuery(): void $this->assertSame("10 < 15", $lessThan->toQuery()); - $lessThan = new LessThan($lessThan, $lessThan, false); + $lessThan = new LessThan($lessThan, $lessThan); $this->assertSame("10 < 15 < 10 < 15", $lessThan->toQuery()); } diff --git a/tests/unit/Expressions/Operators/MultiplicationTest.php b/tests/unit/Expressions/Operators/MultiplicationTest.php index 7051fed..6fb67c0 100644 --- a/tests/unit/Expressions/Operators/MultiplicationTest.php +++ b/tests/unit/Expressions/Operators/MultiplicationTest.php @@ -34,14 +34,14 @@ public function testToQuery(): void public function testInstanceOfFloatType(): void { - $multiplication = new Multiplication(new Float_(10.0), new Float_(15.0), false); + $multiplication = new Multiplication(new Float_(10.0), new Float_(15.0)); $this->assertInstanceOf(FloatType::class, $multiplication); } public function testInstanceOfIntegerType(): void { - $multiplication = new Multiplication(new Integer(10), new Integer(15), false); + $multiplication = new Multiplication(new Integer(10), new Integer(15)); $this->assertInstanceOf(IntegerType::class, $multiplication); } diff --git a/tests/unit/Patterns/PathTest.php b/tests/unit/Patterns/PathTest.php index 0a5d59a..a607fb6 100644 --- a/tests/unit/Patterns/PathTest.php +++ b/tests/unit/Patterns/PathTest.php @@ -109,6 +109,6 @@ public function testPathCanBeTreatedAsBoolean(): void $pathA = new Path([new Node(), new Node()], [new Relationship(Direction::UNI)]); $pathB = new Path([new Node(), new Node()], [new Relationship(Direction::RIGHT)]); - $this->assertSame("()--() AND ()-->()", $pathA->and($pathB, false)->toQuery()); + $this->assertSame("()--() AND ()-->()", $pathA->and($pathB)->toQuery()); } } diff --git a/tests/unit/QueryTest.php b/tests/unit/QueryTest.php index 215373d..a365663 100644 --- a/tests/unit/QueryTest.php +++ b/tests/unit/QueryTest.php @@ -303,7 +303,7 @@ public function testBuild(): void $pathMock = new Path([$nodeMock, (new Node)->withVariable('b')], [new Relationship(Direction::RIGHT)]); $numeralMock = new Integer(12); - $booleanMock = new GreaterThan($variableMock, new Variable('b'), false); + $booleanMock = new GreaterThan($variableMock, new Variable('b')); $propertyMock = new Property($variableMock, 'b'); $query = new Query(); From a88fd70ebd6b26ddea62227abb66c0000ce42d53 Mon Sep 17 00:00:00 2001 From: Marijn van Wezel Date: Fri, 6 Feb 2026 18:53:23 +0100 Subject: [PATCH 3/5] Run PHP-CS-Fixer and update configuration --- .php-cs-fixer.dist.php | 31 +++++++++---------- .../Operators/ComparisonBinaryOperator.php | 2 +- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index b94af5c..84a8a51 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -61,9 +61,15 @@ 'yield', ], ], - 'braces' => [ - 'position_after_anonymous_constructs' => 'next', + 'single_space_around_construct' => true, + 'control_structure_braces' => true, + 'control_structure_continuation_position' => true, + 'declare_parentheses' => true, + 'no_multiple_statements_per_line' => true, + 'braces_position' => [ + 'anonymous_classes_opening_brace' => 'next_line_unless_newline_at_signature_end', ], + 'statement_indentation' => true, 'cast_spaces' => true, 'class_attributes_separation' => [ 'elements' => [ @@ -77,7 +83,7 @@ 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, 'combine_nested_dirname' => true, - 'compact_nullable_typehint' => true, + 'compact_nullable_type_declaration' => true, 'concat_space' => ['spacing' => 'one'], 'constant_case' => true, 'declare_equal_normalize' => ['space' => 'none'], @@ -126,12 +132,12 @@ 'native_constant_invocation' => false, 'native_function_casing' => false, 'native_function_invocation' => false, - 'native_function_type_declaration_casing' => true, + 'native_type_declaration_casing' => true, 'no_alias_functions' => true, 'no_alias_language_construct_call' => true, 'no_blank_lines_after_class_opening' => true, 'no_blank_lines_after_phpdoc' => true, - 'no_blank_lines_before_namespace' => true, + 'blank_lines_before_namespace' => true, 'no_break_comment' => true, 'no_closing_tag' => true, 'no_empty_comment' => true, @@ -146,18 +152,17 @@ 'no_singleline_whitespace_before_semicolons' => true, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, - 'no_spaces_inside_parenthesis' => true, + 'spaces_inside_parentheses' => true, 'no_superfluous_elseif' => true, 'no_superfluous_phpdoc_tags' => [ 'allow_mixed' => true, ], - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, + 'no_trailing_comma_in_singleline' => true, 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'no_trailing_whitespace_in_string' => true, 'no_unneeded_control_parentheses' => true, - 'no_unneeded_curly_braces' => true, + 'no_unneeded_braces' => true, 'no_unneeded_final_method' => true, 'no_unreachable_default_argument_value' => true, 'no_unset_cast' => true, @@ -270,13 +275,7 @@ 'trailing_comma_in_multiline' => true, 'trim_array_spaces' => true, 'unary_operator_spaces' => true, - 'visibility_required' => [ - 'elements' => [ - 'const', - 'method', - 'property', - ], - ], + 'modifier_keywords' => true, 'void_return' => true, 'whitespace_after_comma_in_array' => true, 'yoda_style' => [ diff --git a/src/Expressions/Operators/ComparisonBinaryOperator.php b/src/Expressions/Operators/ComparisonBinaryOperator.php index fc0996d..1485484 100644 --- a/src/Expressions/Operators/ComparisonBinaryOperator.php +++ b/src/Expressions/Operators/ComparisonBinaryOperator.php @@ -51,7 +51,7 @@ public function __construct(AnyType $left, AnyType $right) */ protected function shouldInsertParentheses(AnyType $expression): bool { - if ($expression instanceof ComparisonBinaryOperator) { + if ($expression instanceof self) { return false; } From 78b4dc868092306975cc32b8ebe65099522169d5 Mon Sep 17 00:00:00 2001 From: Marijn van Wezel Date: Fri, 6 Feb 2026 18:54:27 +0100 Subject: [PATCH 4/5] Run fixer again --- src/Clauses/CallClause.php | 1 + src/Clauses/CallProcedureClause.php | 1 + src/Clauses/Clause.php | 1 + src/Clauses/CreateClause.php | 1 + src/Clauses/DeleteClause.php | 1 + src/Clauses/LimitClause.php | 1 + src/Clauses/MatchClause.php | 1 + src/Clauses/MergeClause.php | 1 + src/Clauses/OptionalMatchClause.php | 1 + src/Clauses/OrderByClause.php | 1 + src/Clauses/RawClause.php | 1 + src/Clauses/RemoveClause.php | 1 + src/Clauses/ReturnClause.php | 1 + src/Clauses/SetClause.php | 1 + src/Clauses/SkipClause.php | 1 + src/Clauses/UnionClause.php | 1 + src/Clauses/WhereClause.php | 1 + src/Clauses/WithClause.php | 1 + src/Expressions/Exists.php | 1 + src/Expressions/Label.php | 1 + src/Expressions/Literals/Boolean.php | 1 + src/Expressions/Literals/Float_.php | 1 + src/Expressions/Literals/Integer.php | 1 + src/Expressions/Literals/List_.php | 1 + src/Expressions/Literals/Literal.php | 1 + src/Expressions/Literals/Map.php | 1 + src/Expressions/Literals/String_.php | 1 + src/Expressions/Operators/Addition.php | 1 + src/Expressions/Operators/BinaryOperator.php | 1 + .../Operators/BooleanBinaryOperator.php | 1 + .../Operators/BooleanUnaryOperator.php | 1 + .../Operators/ComparisonBinaryOperator.php | 1 + .../Operators/ComparisonUnaryOperator.php | 1 + src/Expressions/Operators/Conjunction.php | 1 + src/Expressions/Operators/Contains.php | 1 + src/Expressions/Operators/Disjunction.php | 1 + src/Expressions/Operators/Division.php | 1 + src/Expressions/Operators/EndsWith.php | 1 + src/Expressions/Operators/Equality.php | 1 + .../Operators/ExclusiveDisjunction.php | 1 + src/Expressions/Operators/Exponentiation.php | 1 + src/Expressions/Operators/GreaterThan.php | 1 + .../Operators/GreaterThanOrEqual.php | 1 + src/Expressions/Operators/In.php | 1 + src/Expressions/Operators/Inequality.php | 1 + src/Expressions/Operators/IsNotNull.php | 1 + src/Expressions/Operators/IsNull.php | 1 + src/Expressions/Operators/LessThan.php | 1 + src/Expressions/Operators/LessThanOrEqual.php | 1 + .../Operators/MathematicalBinaryOperator.php | 1 + .../Operators/MathematicalUnaryOperator.php | 1 + src/Expressions/Operators/ModuloDivision.php | 1 + src/Expressions/Operators/Multiplication.php | 1 + src/Expressions/Operators/Negation.php | 1 + src/Expressions/Operators/Operator.php | 1 + src/Expressions/Operators/Precedence.php | 1 + src/Expressions/Operators/Regex.php | 1 + src/Expressions/Operators/StartsWith.php | 1 + ...StringSpecificComparisonBinaryOperator.php | 1 + src/Expressions/Operators/Subtraction.php | 1 + src/Expressions/Operators/UnaryMinus.php | 1 + src/Expressions/Operators/UnaryOperator.php | 1 + src/Expressions/Parameter.php | 1 + src/Expressions/Procedures/All.php | 1 + src/Expressions/Procedures/Any.php | 1 + src/Expressions/Procedures/Date.php | 1 + src/Expressions/Procedures/DateTime.php | 1 + src/Expressions/Procedures/Exists.php | 1 + src/Expressions/Procedures/IsEmpty.php | 1 + src/Expressions/Procedures/LocalDateTime.php | 1 + src/Expressions/Procedures/LocalTime.php | 1 + src/Expressions/Procedures/None.php | 1 + src/Expressions/Procedures/Point.php | 1 + src/Expressions/Procedures/Procedure.php | 1 + src/Expressions/Procedures/Raw.php | 1 + src/Expressions/Procedures/Single.php | 1 + src/Expressions/Procedures/Time.php | 1 + src/Expressions/Property.php | 1 + src/Expressions/RawExpression.php | 1 + src/Expressions/Variable.php | 1 + src/Patterns/CompletePattern.php | 1 + src/Patterns/Direction.php | 1 + src/Patterns/Node.php | 1 + src/Patterns/Path.php | 1 + src/Patterns/Pattern.php | 1 + src/Patterns/PropertyPattern.php | 1 + src/Patterns/RelatablePattern.php | 1 + src/Patterns/Relationship.php | 1 + src/Query.php | 1 + src/QueryConvertible.php | 1 + src/Syntax/Alias.php | 1 + src/Syntax/PropertyReplacement.php | 1 + src/Traits/PatternTraits/PatternTrait.php | 1 + .../PatternTraits/PropertyPatternTrait.php | 4 +-- src/Traits/TypeTraits/AnyTypeTrait.php | 1 + .../CompositeTypeTrait.php | 1 + .../CompositeTypeTraits/ListTypeTrait.php | 1 + .../CompositeTypeTraits/MapTypeTrait.php | 1 + .../MethodTraits/PropertyMethodTrait.php | 1 + .../PropertyTypeTraits/BooleanTypeTrait.php | 1 + .../PropertyTypeTraits/DateTimeTypeTrait.php | 1 + .../PropertyTypeTraits/DateTypeTrait.php | 1 + .../PropertyTypeTraits/FloatTypeTrait.php | 1 + .../PropertyTypeTraits/IntegerTypeTrait.php | 1 + .../LocalDateTimeTypeTrait.php | 1 + .../PropertyTypeTraits/LocalTimeTypeTrait.php | 1 + .../PropertyTypeTraits/NumeralTypeTrait.php | 1 + .../PropertyTypeTraits/PointTypeTrait.php | 1 + .../PropertyTypeTraits/PropertyTypeTrait.php | 1 + .../PropertyTypeTraits/StringTypeTrait.php | 1 + .../PropertyTypeTraits/TimeTypeTrait.php | 1 + .../StructuralTypeTraits/NodeTypeTrait.php | 1 + .../StructuralTypeTraits/PathTypeTrait.php | 1 + .../RelationshipTypeTrait.php | 1 + .../StructuralTypeTrait.php | 1 + src/Types/AnyType.php | 1 + src/Types/CompositeTypes/CompositeType.php | 1 + src/Types/CompositeTypes/ListType.php | 1 + src/Types/CompositeTypes/MapType.php | 1 + src/Types/Methods/PropertyMethod.php | 1 + src/Types/PropertyTypes/BooleanType.php | 1 + src/Types/PropertyTypes/DateTimeType.php | 1 + src/Types/PropertyTypes/DateType.php | 1 + src/Types/PropertyTypes/FloatType.php | 1 + src/Types/PropertyTypes/IntegerType.php | 1 + src/Types/PropertyTypes/LocalDateTimeType.php | 1 + src/Types/PropertyTypes/LocalTimeType.php | 1 + src/Types/PropertyTypes/NumeralType.php | 1 + src/Types/PropertyTypes/PointType.php | 1 + src/Types/PropertyTypes/PropertyType.php | 1 + src/Types/PropertyTypes/StringType.php | 1 + src/Types/PropertyTypes/TimeType.php | 1 + src/Types/StructuralTypes/NodeType.php | 1 + src/Types/StructuralTypes/PathType.php | 1 + .../StructuralTypes/RelationshipType.php | 1 + src/Types/StructuralTypes/StructuralType.php | 1 + src/Utils/CastUtils.php | 1 + src/Utils/NameUtils.php | 1 + src/functions.php | 1 + tests/end-to-end/ExamplesTest.php | 7 +++--- tests/end-to-end/MoviesTest.php | 1 + tests/unit/Clauses/CallClauseTest.php | 1 + .../unit/Clauses/CallProcedureClauseTest.php | 1 + tests/unit/Clauses/ClauseTest.php | 1 + tests/unit/Clauses/CreateClauseTest.php | 1 + tests/unit/Clauses/DeleteClauseTest.php | 1 + tests/unit/Clauses/LimitClauseTest.php | 1 + tests/unit/Clauses/MatchClauseTest.php | 1 + tests/unit/Clauses/MergeClauseTest.php | 1 + tests/unit/Clauses/OptionalMatchTest.php | 1 + tests/unit/Clauses/OrderByClauseTest.php | 1 + tests/unit/Clauses/RawClauseTest.php | 1 + tests/unit/Clauses/RemoveClauseTest.php | 1 + tests/unit/Clauses/ReturnClauseTest.php | 1 + tests/unit/Clauses/SetClauseTest.php | 1 + tests/unit/Clauses/SkipClauseTest.php | 1 + tests/unit/Clauses/UnionClauseTest.php | 1 + tests/unit/Clauses/WhereClauseTest.php | 1 + tests/unit/Clauses/WithClauseTest.php | 1 + tests/unit/Expressions/AliasTest.php | 1 + tests/unit/Expressions/ExistsTest.php | 1 + tests/unit/Expressions/LabelTest.php | 1 + .../unit/Expressions/Literals/BooleanTest.php | 1 + tests/unit/Expressions/Literals/FloatTest.php | 1 + .../unit/Expressions/Literals/IntegerTest.php | 1 + tests/unit/Expressions/Literals/ListTest.php | 1 + .../unit/Expressions/Literals/LiteralTest.php | 1 + tests/unit/Expressions/Literals/MapTest.php | 1 + .../unit/Expressions/Literals/StringTest.php | 1 + .../Expressions/Operators/AdditionTest.php | 1 + .../Expressions/Operators/ConjunctionTest.php | 1 + .../Expressions/Operators/ContainsTest.php | 1 + .../Expressions/Operators/DisjunctionTest.php | 1 + .../Expressions/Operators/DivisionTest.php | 1 + .../Expressions/Operators/EndsWithTest.php | 1 + .../Expressions/Operators/EqualityTest.php | 1 + .../Operators/ExclusiveDisjunctionTest.php | 1 + .../Operators/ExponentiationTest.php | 1 + .../Operators/GreaterThanOrEqualTest.php | 1 + .../Expressions/Operators/GreaterThanTest.php | 1 + tests/unit/Expressions/Operators/InTest.php | 1 + .../Expressions/Operators/InequalityTest.php | 1 + .../Expressions/Operators/IsNotNullTest.php | 1 + .../unit/Expressions/Operators/IsNullTest.php | 1 + .../Operators/LessThanOrEqualTest.php | 1 + .../Expressions/Operators/LessThanTest.php | 1 + .../Operators/ModuloDivisionTest.php | 1 + .../Operators/MultiplicationTest.php | 1 + .../Expressions/Operators/NegationTest.php | 1 + .../Expressions/Operators/PrecedenceTest.php | 1 + .../unit/Expressions/Operators/RegexTest.php | 1 + .../Expressions/Operators/StartsWithTest.php | 1 + .../Expressions/Operators/SubtractionTest.php | 1 + .../Expressions/Operators/UnaryMinusTest.php | 1 + tests/unit/Expressions/ParameterTest.php | 1 + tests/unit/Expressions/Procedures/AllTest.php | 1 + tests/unit/Expressions/Procedures/AnyTest.php | 1 + .../unit/Expressions/Procedures/DateTest.php | 1 + .../Expressions/Procedures/DateTimeTest.php | 1 + .../Expressions/Procedures/ExistsTest.php | 1 + .../Expressions/Procedures/IsEmptyTest.php | 1 + .../Procedures/LocalDateTimeTest.php | 1 + .../Expressions/Procedures/LocalTimeTest.php | 1 + .../unit/Expressions/Procedures/NoneTest.php | 1 + .../unit/Expressions/Procedures/PointTest.php | 1 + .../Expressions/Procedures/ProcedureTest.php | 1 + tests/unit/Expressions/Procedures/RawTest.php | 1 + .../Expressions/Procedures/SingleTest.php | 1 + .../unit/Expressions/Procedures/TimeTest.php | 1 + tests/unit/Expressions/PropertyTest.php | 1 + tests/unit/Expressions/RawExpressionTest.php | 1 + tests/unit/Expressions/VariableTest.php | 1 + tests/unit/FunctionsTest.php | 1 + tests/unit/Patterns/NodeTest.php | 1 + tests/unit/Patterns/PathTest.php | 1 + tests/unit/Patterns/RelationshipTest.php | 1 + tests/unit/QueryCallProcedureTest.php | 1 + tests/unit/QueryCallTest.php | 25 +++++++------------ tests/unit/QueryCreateTest.php | 1 + tests/unit/QueryDeleteTest.php | 1 + tests/unit/QueryLimitTest.php | 1 + tests/unit/QueryMatchTest.php | 1 + tests/unit/QueryMergeTest.php | 1 + tests/unit/QueryOptionalMatchTest.php | 1 + tests/unit/QueryOrderByTest.php | 1 + tests/unit/QueryRawTest.php | 1 + tests/unit/QueryRemoveTest.php | 1 + tests/unit/QueryReturningTest.php | 1 + tests/unit/QuerySetTest.php | 1 + tests/unit/QuerySkipTest.php | 1 + tests/unit/QueryTest.php | 1 + tests/unit/QueryUnionTest.php | 7 +++--- tests/unit/QueryWhereTest.php | 1 + tests/unit/QueryWithTest.php | 1 + tests/unit/Syntax/AliasTest.php | 1 + tests/unit/Syntax/PropertyReplacementTest.php | 1 + .../Traits/PatternTraits/PatternTraitTest.php | 1 + .../PropertyPatternTraitTest.php | 1 + .../Traits/TypeTraits/AnyTypeTraitTest.php | 1 + .../CompositeTypeTraits/ListTypeTraitTest.php | 1 + .../MethodTraits/PropertyMethodTraitTest.php | 1 + .../BooleanTypeTraitTest.php | 1 + .../NumeralTypeTraitTest.php | 1 + .../PropertyTypeTraitTest.php | 1 + .../StringTypeTraitTest.php | 1 + tests/unit/Utils/CastUtilsTest.php | 1 + tests/unit/Utils/NameUtilsTest.php | 1 + 247 files changed, 260 insertions(+), 26 deletions(-) diff --git a/src/Clauses/CallClause.php b/src/Clauses/CallClause.php index 3182fc7..31356eb 100644 --- a/src/Clauses/CallClause.php +++ b/src/Clauses/CallClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Clauses/CallProcedureClause.php b/src/Clauses/CallProcedureClause.php index be5ccc1..513bb96 100644 --- a/src/Clauses/CallProcedureClause.php +++ b/src/Clauses/CallProcedureClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Expressions\Procedures\Procedure; diff --git a/src/Clauses/Clause.php b/src/Clauses/Clause.php index 3aeceee..5b292ae 100644 --- a/src/Clauses/Clause.php +++ b/src/Clauses/Clause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\QueryConvertible; diff --git a/src/Clauses/CreateClause.php b/src/Clauses/CreateClause.php index f305b4b..04ef27f 100644 --- a/src/Clauses/CreateClause.php +++ b/src/Clauses/CreateClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Patterns\CompletePattern; diff --git a/src/Clauses/DeleteClause.php b/src/Clauses/DeleteClause.php index b8aeff5..64a746d 100644 --- a/src/Clauses/DeleteClause.php +++ b/src/Clauses/DeleteClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Patterns\Pattern; diff --git a/src/Clauses/LimitClause.php b/src/Clauses/LimitClause.php index 18b900a..b3ff769 100644 --- a/src/Clauses/LimitClause.php +++ b/src/Clauses/LimitClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Query; diff --git a/src/Clauses/MatchClause.php b/src/Clauses/MatchClause.php index 8615dae..f5ae82e 100644 --- a/src/Clauses/MatchClause.php +++ b/src/Clauses/MatchClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Patterns\CompletePattern; diff --git a/src/Clauses/MergeClause.php b/src/Clauses/MergeClause.php index 6f002ef..234baa2 100644 --- a/src/Clauses/MergeClause.php +++ b/src/Clauses/MergeClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Patterns\CompletePattern; diff --git a/src/Clauses/OptionalMatchClause.php b/src/Clauses/OptionalMatchClause.php index 30d473a..88e51b8 100644 --- a/src/Clauses/OptionalMatchClause.php +++ b/src/Clauses/OptionalMatchClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Patterns\CompletePattern; diff --git a/src/Clauses/OrderByClause.php b/src/Clauses/OrderByClause.php index 91f4e97..219286d 100644 --- a/src/Clauses/OrderByClause.php +++ b/src/Clauses/OrderByClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Expressions\Property; diff --git a/src/Clauses/RawClause.php b/src/Clauses/RawClause.php index d40d79b..6cc9d6a 100644 --- a/src/Clauses/RawClause.php +++ b/src/Clauses/RawClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; /** diff --git a/src/Clauses/RemoveClause.php b/src/Clauses/RemoveClause.php index b28665f..3209722 100644 --- a/src/Clauses/RemoveClause.php +++ b/src/Clauses/RemoveClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Expressions\Label; diff --git a/src/Clauses/ReturnClause.php b/src/Clauses/ReturnClause.php index 76986a3..d5fba0a 100644 --- a/src/Clauses/ReturnClause.php +++ b/src/Clauses/ReturnClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Patterns\Pattern; diff --git a/src/Clauses/SetClause.php b/src/Clauses/SetClause.php index 19be1ca..0473f97 100644 --- a/src/Clauses/SetClause.php +++ b/src/Clauses/SetClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Expressions\Label; diff --git a/src/Clauses/SkipClause.php b/src/Clauses/SkipClause.php index 3a7ae7b..4f49a45 100644 --- a/src/Clauses/SkipClause.php +++ b/src/Clauses/SkipClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Types\PropertyTypes\IntegerType; diff --git a/src/Clauses/UnionClause.php b/src/Clauses/UnionClause.php index aaed230..0aa376e 100644 --- a/src/Clauses/UnionClause.php +++ b/src/Clauses/UnionClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Query; diff --git a/src/Clauses/WhereClause.php b/src/Clauses/WhereClause.php index c634e27..b4f7524 100644 --- a/src/Clauses/WhereClause.php +++ b/src/Clauses/WhereClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use InvalidArgumentException; diff --git a/src/Clauses/WithClause.php b/src/Clauses/WithClause.php index 7332e4a..4f3c6af 100644 --- a/src/Clauses/WithClause.php +++ b/src/Clauses/WithClause.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Clauses; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Expressions/Exists.php b/src/Expressions/Exists.php index 38bb60c..a6fa0d3 100644 --- a/src/Expressions/Exists.php +++ b/src/Expressions/Exists.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions; use WikibaseSolutions\CypherDSL\Clauses\MatchClause; diff --git a/src/Expressions/Label.php b/src/Expressions/Label.php index d85bb46..e0c1a5f 100644 --- a/src/Expressions/Label.php +++ b/src/Expressions/Label.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\BooleanTypeTrait; diff --git a/src/Expressions/Literals/Boolean.php b/src/Expressions/Literals/Boolean.php index 08523b9..32a6226 100644 --- a/src/Expressions/Literals/Boolean.php +++ b/src/Expressions/Literals/Boolean.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Literals; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\BooleanTypeTrait; diff --git a/src/Expressions/Literals/Float_.php b/src/Expressions/Literals/Float_.php index 3c579f9..826c935 100644 --- a/src/Expressions/Literals/Float_.php +++ b/src/Expressions/Literals/Float_.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Literals; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\FloatTypeTrait; diff --git a/src/Expressions/Literals/Integer.php b/src/Expressions/Literals/Integer.php index ad9d8e4..56213ee 100644 --- a/src/Expressions/Literals/Integer.php +++ b/src/Expressions/Literals/Integer.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Literals; use TypeError; diff --git a/src/Expressions/Literals/List_.php b/src/Expressions/Literals/List_.php index 63c9126..a5005c7 100644 --- a/src/Expressions/Literals/List_.php +++ b/src/Expressions/Literals/List_.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Literals; use WikibaseSolutions\CypherDSL\Patterns\Pattern; diff --git a/src/Expressions/Literals/Literal.php b/src/Expressions/Literals/Literal.php index 94f8746..2c6d8b4 100644 --- a/src/Expressions/Literals/Literal.php +++ b/src/Expressions/Literals/Literal.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Literals; use LogicException; diff --git a/src/Expressions/Literals/Map.php b/src/Expressions/Literals/Map.php index 6b1c038..300dc18 100644 --- a/src/Expressions/Literals/Map.php +++ b/src/Expressions/Literals/Map.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Literals; use Stringable; diff --git a/src/Expressions/Literals/String_.php b/src/Expressions/Literals/String_.php index 170b063..494fbb3 100644 --- a/src/Expressions/Literals/String_.php +++ b/src/Expressions/Literals/String_.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Literals; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\StringTypeTrait; diff --git a/src/Expressions/Operators/Addition.php b/src/Expressions/Operators/Addition.php index a6b169a..d1c5906 100644 --- a/src/Expressions/Operators/Addition.php +++ b/src/Expressions/Operators/Addition.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/BinaryOperator.php b/src/Expressions/Operators/BinaryOperator.php index 6d9665c..1fc24f2 100644 --- a/src/Expressions/Operators/BinaryOperator.php +++ b/src/Expressions/Operators/BinaryOperator.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\Types\AnyType; diff --git a/src/Expressions/Operators/BooleanBinaryOperator.php b/src/Expressions/Operators/BooleanBinaryOperator.php index b05421d..e7cda20 100644 --- a/src/Expressions/Operators/BooleanBinaryOperator.php +++ b/src/Expressions/Operators/BooleanBinaryOperator.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\BooleanTypeTrait; diff --git a/src/Expressions/Operators/BooleanUnaryOperator.php b/src/Expressions/Operators/BooleanUnaryOperator.php index 7116051..5a4ee95 100644 --- a/src/Expressions/Operators/BooleanUnaryOperator.php +++ b/src/Expressions/Operators/BooleanUnaryOperator.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\BooleanTypeTrait; diff --git a/src/Expressions/Operators/ComparisonBinaryOperator.php b/src/Expressions/Operators/ComparisonBinaryOperator.php index 1485484..9a60744 100644 --- a/src/Expressions/Operators/ComparisonBinaryOperator.php +++ b/src/Expressions/Operators/ComparisonBinaryOperator.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\BooleanTypeTrait; diff --git a/src/Expressions/Operators/ComparisonUnaryOperator.php b/src/Expressions/Operators/ComparisonUnaryOperator.php index 41fbdac..ea74715 100644 --- a/src/Expressions/Operators/ComparisonUnaryOperator.php +++ b/src/Expressions/Operators/ComparisonUnaryOperator.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\BooleanTypeTrait; diff --git a/src/Expressions/Operators/Conjunction.php b/src/Expressions/Operators/Conjunction.php index 996a850..badef98 100644 --- a/src/Expressions/Operators/Conjunction.php +++ b/src/Expressions/Operators/Conjunction.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/Contains.php b/src/Expressions/Operators/Contains.php index e16468d..c17091d 100644 --- a/src/Expressions/Operators/Contains.php +++ b/src/Expressions/Operators/Contains.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/Disjunction.php b/src/Expressions/Operators/Disjunction.php index 3885dba..afe4023 100644 --- a/src/Expressions/Operators/Disjunction.php +++ b/src/Expressions/Operators/Disjunction.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/Division.php b/src/Expressions/Operators/Division.php index b2aacae..c8bec6f 100644 --- a/src/Expressions/Operators/Division.php +++ b/src/Expressions/Operators/Division.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/EndsWith.php b/src/Expressions/Operators/EndsWith.php index 147d719..b1b56a7 100644 --- a/src/Expressions/Operators/EndsWith.php +++ b/src/Expressions/Operators/EndsWith.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/Equality.php b/src/Expressions/Operators/Equality.php index 9d2f017..c4e7490 100644 --- a/src/Expressions/Operators/Equality.php +++ b/src/Expressions/Operators/Equality.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/ExclusiveDisjunction.php b/src/Expressions/Operators/ExclusiveDisjunction.php index 9b47527..b4c3d04 100644 --- a/src/Expressions/Operators/ExclusiveDisjunction.php +++ b/src/Expressions/Operators/ExclusiveDisjunction.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/Exponentiation.php b/src/Expressions/Operators/Exponentiation.php index e9ff53b..36f9b2f 100644 --- a/src/Expressions/Operators/Exponentiation.php +++ b/src/Expressions/Operators/Exponentiation.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/GreaterThan.php b/src/Expressions/Operators/GreaterThan.php index 3f479dd..81f121f 100644 --- a/src/Expressions/Operators/GreaterThan.php +++ b/src/Expressions/Operators/GreaterThan.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/GreaterThanOrEqual.php b/src/Expressions/Operators/GreaterThanOrEqual.php index 271da14..9953abb 100644 --- a/src/Expressions/Operators/GreaterThanOrEqual.php +++ b/src/Expressions/Operators/GreaterThanOrEqual.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/In.php b/src/Expressions/Operators/In.php index 8a2caec..cb6ff0f 100644 --- a/src/Expressions/Operators/In.php +++ b/src/Expressions/Operators/In.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\BooleanTypeTrait; diff --git a/src/Expressions/Operators/Inequality.php b/src/Expressions/Operators/Inequality.php index a39d8b1..9cb2d5a 100644 --- a/src/Expressions/Operators/Inequality.php +++ b/src/Expressions/Operators/Inequality.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/IsNotNull.php b/src/Expressions/Operators/IsNotNull.php index effa376..fb180ff 100644 --- a/src/Expressions/Operators/IsNotNull.php +++ b/src/Expressions/Operators/IsNotNull.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/IsNull.php b/src/Expressions/Operators/IsNull.php index 0736c66..999424e 100644 --- a/src/Expressions/Operators/IsNull.php +++ b/src/Expressions/Operators/IsNull.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/LessThan.php b/src/Expressions/Operators/LessThan.php index 6596a28..2df889b 100644 --- a/src/Expressions/Operators/LessThan.php +++ b/src/Expressions/Operators/LessThan.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/LessThanOrEqual.php b/src/Expressions/Operators/LessThanOrEqual.php index 91f1a33..ea04f1a 100644 --- a/src/Expressions/Operators/LessThanOrEqual.php +++ b/src/Expressions/Operators/LessThanOrEqual.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/MathematicalBinaryOperator.php b/src/Expressions/Operators/MathematicalBinaryOperator.php index 41f3db0..ad45c2f 100644 --- a/src/Expressions/Operators/MathematicalBinaryOperator.php +++ b/src/Expressions/Operators/MathematicalBinaryOperator.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\NumeralTypeTrait; diff --git a/src/Expressions/Operators/MathematicalUnaryOperator.php b/src/Expressions/Operators/MathematicalUnaryOperator.php index a7ba4e9..09553e0 100644 --- a/src/Expressions/Operators/MathematicalUnaryOperator.php +++ b/src/Expressions/Operators/MathematicalUnaryOperator.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\NumeralTypeTrait; diff --git a/src/Expressions/Operators/ModuloDivision.php b/src/Expressions/Operators/ModuloDivision.php index 0a2ba1c..0c29bc5 100644 --- a/src/Expressions/Operators/ModuloDivision.php +++ b/src/Expressions/Operators/ModuloDivision.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/Multiplication.php b/src/Expressions/Operators/Multiplication.php index 69e4afa..7d513c4 100644 --- a/src/Expressions/Operators/Multiplication.php +++ b/src/Expressions/Operators/Multiplication.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/Negation.php b/src/Expressions/Operators/Negation.php index bc63512..c680037 100644 --- a/src/Expressions/Operators/Negation.php +++ b/src/Expressions/Operators/Negation.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/Operator.php b/src/Expressions/Operators/Operator.php index b850443..ddcb8f2 100644 --- a/src/Expressions/Operators/Operator.php +++ b/src/Expressions/Operators/Operator.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\QueryConvertible; diff --git a/src/Expressions/Operators/Precedence.php b/src/Expressions/Operators/Precedence.php index b5ba5ba..4b4caec 100644 --- a/src/Expressions/Operators/Precedence.php +++ b/src/Expressions/Operators/Precedence.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; enum Precedence: int diff --git a/src/Expressions/Operators/Regex.php b/src/Expressions/Operators/Regex.php index 9b651e4..9878681 100644 --- a/src/Expressions/Operators/Regex.php +++ b/src/Expressions/Operators/Regex.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/StartsWith.php b/src/Expressions/Operators/StartsWith.php index ea6b25c..9a4f813 100644 --- a/src/Expressions/Operators/StartsWith.php +++ b/src/Expressions/Operators/StartsWith.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/StringSpecificComparisonBinaryOperator.php b/src/Expressions/Operators/StringSpecificComparisonBinaryOperator.php index 0eeaf12..68eeca6 100644 --- a/src/Expressions/Operators/StringSpecificComparisonBinaryOperator.php +++ b/src/Expressions/Operators/StringSpecificComparisonBinaryOperator.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\BooleanTypeTrait; diff --git a/src/Expressions/Operators/Subtraction.php b/src/Expressions/Operators/Subtraction.php index 2e88da3..0eda746 100644 --- a/src/Expressions/Operators/Subtraction.php +++ b/src/Expressions/Operators/Subtraction.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/UnaryMinus.php b/src/Expressions/Operators/UnaryMinus.php index a26c1eb..493c4db 100644 --- a/src/Expressions/Operators/UnaryMinus.php +++ b/src/Expressions/Operators/UnaryMinus.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; /** diff --git a/src/Expressions/Operators/UnaryOperator.php b/src/Expressions/Operators/UnaryOperator.php index 140528f..6806b8d 100644 --- a/src/Expressions/Operators/UnaryOperator.php +++ b/src/Expressions/Operators/UnaryOperator.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Operators; use WikibaseSolutions\CypherDSL\Types\AnyType; diff --git a/src/Expressions/Parameter.php b/src/Expressions/Parameter.php index 2ab2789..1f6d1c8 100644 --- a/src/Expressions/Parameter.php +++ b/src/Expressions/Parameter.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\CompositeTypeTraits\ListTypeTrait; diff --git a/src/Expressions/Procedures/All.php b/src/Expressions/Procedures/All.php index f78a336..3e35d21 100644 --- a/src/Expressions/Procedures/All.php +++ b/src/Expressions/Procedures/All.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Expressions/Procedures/Any.php b/src/Expressions/Procedures/Any.php index 7dad690..6029802 100644 --- a/src/Expressions/Procedures/Any.php +++ b/src/Expressions/Procedures/Any.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Expressions/Procedures/Date.php b/src/Expressions/Procedures/Date.php index 6e63afc..4bacedf 100644 --- a/src/Expressions/Procedures/Date.php +++ b/src/Expressions/Procedures/Date.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\DateTypeTrait; diff --git a/src/Expressions/Procedures/DateTime.php b/src/Expressions/Procedures/DateTime.php index fe59610..325af19 100644 --- a/src/Expressions/Procedures/DateTime.php +++ b/src/Expressions/Procedures/DateTime.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\DateTimeTypeTrait; diff --git a/src/Expressions/Procedures/Exists.php b/src/Expressions/Procedures/Exists.php index 541d681..04bb2de 100644 --- a/src/Expressions/Procedures/Exists.php +++ b/src/Expressions/Procedures/Exists.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\BooleanTypeTrait; diff --git a/src/Expressions/Procedures/IsEmpty.php b/src/Expressions/Procedures/IsEmpty.php index 7cf7505..3e460a6 100644 --- a/src/Expressions/Procedures/IsEmpty.php +++ b/src/Expressions/Procedures/IsEmpty.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\BooleanTypeTrait; diff --git a/src/Expressions/Procedures/LocalDateTime.php b/src/Expressions/Procedures/LocalDateTime.php index 8485c95..1004d39 100644 --- a/src/Expressions/Procedures/LocalDateTime.php +++ b/src/Expressions/Procedures/LocalDateTime.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\LocalDateTimeTypeTrait; diff --git a/src/Expressions/Procedures/LocalTime.php b/src/Expressions/Procedures/LocalTime.php index da625d5..7684fa8 100644 --- a/src/Expressions/Procedures/LocalTime.php +++ b/src/Expressions/Procedures/LocalTime.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\LocalTimeTypeTrait; diff --git a/src/Expressions/Procedures/None.php b/src/Expressions/Procedures/None.php index 34d1fcc..1310a5a 100644 --- a/src/Expressions/Procedures/None.php +++ b/src/Expressions/Procedures/None.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Expressions/Procedures/Point.php b/src/Expressions/Procedures/Point.php index 6706b81..6cc3d73 100644 --- a/src/Expressions/Procedures/Point.php +++ b/src/Expressions/Procedures/Point.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\PointTypeTrait; diff --git a/src/Expressions/Procedures/Procedure.php b/src/Expressions/Procedures/Procedure.php index 8d12b4d..ae4aa2b 100644 --- a/src/Expressions/Procedures/Procedure.php +++ b/src/Expressions/Procedures/Procedure.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Expressions\Literals\Literal; diff --git a/src/Expressions/Procedures/Raw.php b/src/Expressions/Procedures/Raw.php index f3f9a85..cc8951c 100644 --- a/src/Expressions/Procedures/Raw.php +++ b/src/Expressions/Procedures/Raw.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\CompositeTypeTraits\ListTypeTrait; diff --git a/src/Expressions/Procedures/Single.php b/src/Expressions/Procedures/Single.php index 90923d8..734dd49 100644 --- a/src/Expressions/Procedures/Single.php +++ b/src/Expressions/Procedures/Single.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Expressions/Procedures/Time.php b/src/Expressions/Procedures/Time.php index f4873a3..f744202 100644 --- a/src/Expressions/Procedures/Time.php +++ b/src/Expressions/Procedures/Time.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions\Procedures; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\TimeTypeTrait; diff --git a/src/Expressions/Property.php b/src/Expressions/Property.php index b97fdf8..f5b8ef5 100644 --- a/src/Expressions/Property.php +++ b/src/Expressions/Property.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions; use WikibaseSolutions\CypherDSL\Syntax\PropertyReplacement; diff --git a/src/Expressions/RawExpression.php b/src/Expressions/RawExpression.php index 137dac2..2fdaac8 100644 --- a/src/Expressions/RawExpression.php +++ b/src/Expressions/RawExpression.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\CompositeTypeTraits\ListTypeTrait; diff --git a/src/Expressions/Variable.php b/src/Expressions/Variable.php index 4eaac11..13a7977 100644 --- a/src/Expressions/Variable.php +++ b/src/Expressions/Variable.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Expressions; use WikibaseSolutions\CypherDSL\Expressions\Literals\Map; diff --git a/src/Patterns/CompletePattern.php b/src/Patterns/CompletePattern.php index 5a968d7..77c7359 100644 --- a/src/Patterns/CompletePattern.php +++ b/src/Patterns/CompletePattern.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Patterns; /** diff --git a/src/Patterns/Direction.php b/src/Patterns/Direction.php index 6b7bf95..bb93186 100644 --- a/src/Patterns/Direction.php +++ b/src/Patterns/Direction.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Patterns; /* diff --git a/src/Patterns/Node.php b/src/Patterns/Node.php index cb8538d..1c1bd4b 100644 --- a/src/Patterns/Node.php +++ b/src/Patterns/Node.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Patterns; use WikibaseSolutions\CypherDSL\Expressions\Label; diff --git a/src/Patterns/Path.php b/src/Patterns/Path.php index 36c1714..8e5cc34 100644 --- a/src/Patterns/Path.php +++ b/src/Patterns/Path.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Patterns; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Patterns/Pattern.php b/src/Patterns/Pattern.php index 0fe2729..0882890 100644 --- a/src/Patterns/Pattern.php +++ b/src/Patterns/Pattern.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Patterns; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Patterns/PropertyPattern.php b/src/Patterns/PropertyPattern.php index 55fbf6b..972e53d 100644 --- a/src/Patterns/PropertyPattern.php +++ b/src/Patterns/PropertyPattern.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Patterns; use Stringable; diff --git a/src/Patterns/RelatablePattern.php b/src/Patterns/RelatablePattern.php index b61ec3a..ead49e8 100644 --- a/src/Patterns/RelatablePattern.php +++ b/src/Patterns/RelatablePattern.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Patterns; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Patterns/Relationship.php b/src/Patterns/Relationship.php index 13a49be..c702d6e 100644 --- a/src/Patterns/Relationship.php +++ b/src/Patterns/Relationship.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Patterns; use DomainException; diff --git a/src/Query.php b/src/Query.php index 4dc8d78..03f11a3 100644 --- a/src/Query.php +++ b/src/Query.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL; use Stringable; diff --git a/src/QueryConvertible.php b/src/QueryConvertible.php index c9ce525..614db0f 100644 --- a/src/QueryConvertible.php +++ b/src/QueryConvertible.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL; /** diff --git a/src/Syntax/Alias.php b/src/Syntax/Alias.php index 705d792..9c55d3a 100644 --- a/src/Syntax/Alias.php +++ b/src/Syntax/Alias.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Syntax; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Syntax/PropertyReplacement.php b/src/Syntax/PropertyReplacement.php index b1085e8..95677e0 100644 --- a/src/Syntax/PropertyReplacement.php +++ b/src/Syntax/PropertyReplacement.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Syntax; use WikibaseSolutions\CypherDSL\Expressions\Property; diff --git a/src/Traits/PatternTraits/PatternTrait.php b/src/Traits/PatternTraits/PatternTrait.php index bc40b8b..7947c83 100644 --- a/src/Traits/PatternTraits/PatternTrait.php +++ b/src/Traits/PatternTraits/PatternTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\PatternTraits; use WikibaseSolutions\CypherDSL\Expressions\Variable; diff --git a/src/Traits/PatternTraits/PropertyPatternTrait.php b/src/Traits/PatternTraits/PropertyPatternTrait.php index 80dda04..c74be02 100644 --- a/src/Traits/PatternTraits/PropertyPatternTrait.php +++ b/src/Traits/PatternTraits/PropertyPatternTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\PatternTraits; use Stringable; @@ -66,8 +67,7 @@ public function addProperties(Map|array $properties): self $map = $this->makeMap(); if (is_array($properties)) { - $res = array_map(static function ($property) - { + $res = array_map(static function ($property) { return CastUtils::toAnyType($property); }, $properties); diff --git a/src/Traits/TypeTraits/AnyTypeTrait.php b/src/Traits/TypeTraits/AnyTypeTrait.php index d0aa051..1fe8847 100644 --- a/src/Traits/TypeTraits/AnyTypeTrait.php +++ b/src/Traits/TypeTraits/AnyTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits; use WikibaseSolutions\CypherDSL\Expressions\Operators\Equality; diff --git a/src/Traits/TypeTraits/CompositeTypeTraits/CompositeTypeTrait.php b/src/Traits/TypeTraits/CompositeTypeTraits/CompositeTypeTrait.php index 70c3025..395c1d1 100644 --- a/src/Traits/TypeTraits/CompositeTypeTraits/CompositeTypeTrait.php +++ b/src/Traits/TypeTraits/CompositeTypeTraits/CompositeTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\CompositeTypeTraits; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\AnyTypeTrait; diff --git a/src/Traits/TypeTraits/CompositeTypeTraits/ListTypeTrait.php b/src/Traits/TypeTraits/CompositeTypeTraits/ListTypeTrait.php index ad1179b..5542765 100644 --- a/src/Traits/TypeTraits/CompositeTypeTraits/ListTypeTrait.php +++ b/src/Traits/TypeTraits/CompositeTypeTraits/ListTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\CompositeTypeTraits; use WikibaseSolutions\CypherDSL\Expressions\Operators\In; diff --git a/src/Traits/TypeTraits/CompositeTypeTraits/MapTypeTrait.php b/src/Traits/TypeTraits/CompositeTypeTraits/MapTypeTrait.php index 3a6f2dd..03114f4 100644 --- a/src/Traits/TypeTraits/CompositeTypeTraits/MapTypeTrait.php +++ b/src/Traits/TypeTraits/CompositeTypeTraits/MapTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\CompositeTypeTraits; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\MethodTraits\PropertyMethodTrait; diff --git a/src/Traits/TypeTraits/MethodTraits/PropertyMethodTrait.php b/src/Traits/TypeTraits/MethodTraits/PropertyMethodTrait.php index 11f2c22..6d89c40 100644 --- a/src/Traits/TypeTraits/MethodTraits/PropertyMethodTrait.php +++ b/src/Traits/TypeTraits/MethodTraits/PropertyMethodTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\MethodTraits; use WikibaseSolutions\CypherDSL\Expressions\Property; diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/BooleanTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/BooleanTypeTrait.php index 8eb79f0..1b51847 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/BooleanTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/BooleanTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; use WikibaseSolutions\CypherDSL\Expressions\Operators\Conjunction; diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/DateTimeTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/DateTimeTypeTrait.php index b47624e..5de221c 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/DateTimeTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/DateTimeTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; /** diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/DateTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/DateTypeTrait.php index d25e09d..101bae0 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/DateTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/DateTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; /** diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/FloatTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/FloatTypeTrait.php index fbe5ed4..fa64fb9 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/FloatTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/FloatTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; /** diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/IntegerTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/IntegerTypeTrait.php index 1b1acdb..acdf234 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/IntegerTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/IntegerTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; /** diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/LocalDateTimeTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/LocalDateTimeTypeTrait.php index 7fb0b91..8f4a7e8 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/LocalDateTimeTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/LocalDateTimeTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; /** diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/LocalTimeTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/LocalTimeTypeTrait.php index 84bafc5..a025a3e 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/LocalTimeTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/LocalTimeTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; /** diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/NumeralTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/NumeralTypeTrait.php index 6d674bf..166cd70 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/NumeralTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/NumeralTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; use WikibaseSolutions\CypherDSL\Expressions\Operators\Addition; diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/PointTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/PointTypeTrait.php index c0f4996..0949d06 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/PointTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/PointTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; /** diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/PropertyTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/PropertyTypeTrait.php index e14136d..57f971e 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/PropertyTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/PropertyTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; use WikibaseSolutions\CypherDSL\Expressions\Operators\In; diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/StringTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/StringTypeTrait.php index 432ebeb..94a844a 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/StringTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/StringTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; use WikibaseSolutions\CypherDSL\Expressions\Operators\Contains; diff --git a/src/Traits/TypeTraits/PropertyTypeTraits/TimeTypeTrait.php b/src/Traits/TypeTraits/PropertyTypeTraits/TimeTypeTrait.php index 7c28122..742e55a 100644 --- a/src/Traits/TypeTraits/PropertyTypeTraits/TimeTypeTrait.php +++ b/src/Traits/TypeTraits/PropertyTypeTraits/TimeTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits; /** diff --git a/src/Traits/TypeTraits/StructuralTypeTraits/NodeTypeTrait.php b/src/Traits/TypeTraits/StructuralTypeTraits/NodeTypeTrait.php index d76fde3..94d7ba3 100644 --- a/src/Traits/TypeTraits/StructuralTypeTraits/NodeTypeTrait.php +++ b/src/Traits/TypeTraits/StructuralTypeTraits/NodeTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\StructuralTypeTraits; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\MethodTraits\PropertyMethodTrait; diff --git a/src/Traits/TypeTraits/StructuralTypeTraits/PathTypeTrait.php b/src/Traits/TypeTraits/StructuralTypeTraits/PathTypeTrait.php index c1473a4..3da274b 100644 --- a/src/Traits/TypeTraits/StructuralTypeTraits/PathTypeTrait.php +++ b/src/Traits/TypeTraits/StructuralTypeTraits/PathTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\StructuralTypeTraits; /** diff --git a/src/Traits/TypeTraits/StructuralTypeTraits/RelationshipTypeTrait.php b/src/Traits/TypeTraits/StructuralTypeTraits/RelationshipTypeTrait.php index 222ff49..d317593 100644 --- a/src/Traits/TypeTraits/StructuralTypeTraits/RelationshipTypeTrait.php +++ b/src/Traits/TypeTraits/StructuralTypeTraits/RelationshipTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\StructuralTypeTraits; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\MethodTraits\PropertyMethodTrait; diff --git a/src/Traits/TypeTraits/StructuralTypeTraits/StructuralTypeTrait.php b/src/Traits/TypeTraits/StructuralTypeTraits/StructuralTypeTrait.php index 81a3881..cb9154f 100644 --- a/src/Traits/TypeTraits/StructuralTypeTraits/StructuralTypeTrait.php +++ b/src/Traits/TypeTraits/StructuralTypeTraits/StructuralTypeTrait.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Traits\TypeTraits\StructuralTypeTraits; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\AnyTypeTrait; diff --git a/src/Types/AnyType.php b/src/Types/AnyType.php index 3ce5096..b0feecc 100644 --- a/src/Types/AnyType.php +++ b/src/Types/AnyType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types; use WikibaseSolutions\CypherDSL\Expressions\Operators\Equality; diff --git a/src/Types/CompositeTypes/CompositeType.php b/src/Types/CompositeTypes/CompositeType.php index b0753cf..2b4e5c7 100644 --- a/src/Types/CompositeTypes/CompositeType.php +++ b/src/Types/CompositeTypes/CompositeType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\CompositeTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\CompositeTypeTraits\CompositeTypeTrait; diff --git a/src/Types/CompositeTypes/ListType.php b/src/Types/CompositeTypes/ListType.php index fc41e31..3912acd 100644 --- a/src/Types/CompositeTypes/ListType.php +++ b/src/Types/CompositeTypes/ListType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\CompositeTypes; use WikibaseSolutions\CypherDSL\Expressions\Operators\In; diff --git a/src/Types/CompositeTypes/MapType.php b/src/Types/CompositeTypes/MapType.php index 1fc55b9..640cfd1 100644 --- a/src/Types/CompositeTypes/MapType.php +++ b/src/Types/CompositeTypes/MapType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\CompositeTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\CompositeTypeTraits\MapTypeTrait; diff --git a/src/Types/Methods/PropertyMethod.php b/src/Types/Methods/PropertyMethod.php index 407aa0c..9ebfc2f 100644 --- a/src/Types/Methods/PropertyMethod.php +++ b/src/Types/Methods/PropertyMethod.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\Methods; use WikibaseSolutions\CypherDSL\Expressions\Property; diff --git a/src/Types/PropertyTypes/BooleanType.php b/src/Types/PropertyTypes/BooleanType.php index 576c347..ca7b818 100644 --- a/src/Types/PropertyTypes/BooleanType.php +++ b/src/Types/PropertyTypes/BooleanType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Expressions\Operators\Conjunction; diff --git a/src/Types/PropertyTypes/DateTimeType.php b/src/Types/PropertyTypes/DateTimeType.php index 69557bc..0b007dd 100644 --- a/src/Types/PropertyTypes/DateTimeType.php +++ b/src/Types/PropertyTypes/DateTimeType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\DateTimeTypeTrait; diff --git a/src/Types/PropertyTypes/DateType.php b/src/Types/PropertyTypes/DateType.php index 76436a6..17bfa92 100644 --- a/src/Types/PropertyTypes/DateType.php +++ b/src/Types/PropertyTypes/DateType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\DateTypeTrait; diff --git a/src/Types/PropertyTypes/FloatType.php b/src/Types/PropertyTypes/FloatType.php index dc29d40..480cc91 100644 --- a/src/Types/PropertyTypes/FloatType.php +++ b/src/Types/PropertyTypes/FloatType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\FloatTypeTrait; diff --git a/src/Types/PropertyTypes/IntegerType.php b/src/Types/PropertyTypes/IntegerType.php index ab7177e..19313ed 100644 --- a/src/Types/PropertyTypes/IntegerType.php +++ b/src/Types/PropertyTypes/IntegerType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\IntegerTypeTrait; diff --git a/src/Types/PropertyTypes/LocalDateTimeType.php b/src/Types/PropertyTypes/LocalDateTimeType.php index 55b3631..32dd3c8 100644 --- a/src/Types/PropertyTypes/LocalDateTimeType.php +++ b/src/Types/PropertyTypes/LocalDateTimeType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\LocalDateTimeTypeTrait; diff --git a/src/Types/PropertyTypes/LocalTimeType.php b/src/Types/PropertyTypes/LocalTimeType.php index 54372dc..49facaf 100644 --- a/src/Types/PropertyTypes/LocalTimeType.php +++ b/src/Types/PropertyTypes/LocalTimeType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\LocalTimeTypeTrait; diff --git a/src/Types/PropertyTypes/NumeralType.php b/src/Types/PropertyTypes/NumeralType.php index ab8353e..c5c1f37 100644 --- a/src/Types/PropertyTypes/NumeralType.php +++ b/src/Types/PropertyTypes/NumeralType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Expressions\Operators\Addition; diff --git a/src/Types/PropertyTypes/PointType.php b/src/Types/PropertyTypes/PointType.php index f83328e..14243bc 100644 --- a/src/Types/PropertyTypes/PointType.php +++ b/src/Types/PropertyTypes/PointType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\PointTypeTrait; diff --git a/src/Types/PropertyTypes/PropertyType.php b/src/Types/PropertyTypes/PropertyType.php index 25ea859..c9d1fc8 100644 --- a/src/Types/PropertyTypes/PropertyType.php +++ b/src/Types/PropertyTypes/PropertyType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Expressions\Operators\In; diff --git a/src/Types/PropertyTypes/StringType.php b/src/Types/PropertyTypes/StringType.php index ba5620e..ba12784 100644 --- a/src/Types/PropertyTypes/StringType.php +++ b/src/Types/PropertyTypes/StringType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Expressions\Operators\Contains; diff --git a/src/Types/PropertyTypes/TimeType.php b/src/Types/PropertyTypes/TimeType.php index 110cb00..f2d6b17 100644 --- a/src/Types/PropertyTypes/TimeType.php +++ b/src/Types/PropertyTypes/TimeType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\PropertyTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\PropertyTypeTraits\TimeTypeTrait; diff --git a/src/Types/StructuralTypes/NodeType.php b/src/Types/StructuralTypes/NodeType.php index c8d5794..1f0d7f7 100644 --- a/src/Types/StructuralTypes/NodeType.php +++ b/src/Types/StructuralTypes/NodeType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\StructuralTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\StructuralTypeTraits\NodeTypeTrait; diff --git a/src/Types/StructuralTypes/PathType.php b/src/Types/StructuralTypes/PathType.php index 989ab00..60dc71c 100644 --- a/src/Types/StructuralTypes/PathType.php +++ b/src/Types/StructuralTypes/PathType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\StructuralTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\StructuralTypeTraits\PathTypeTrait; diff --git a/src/Types/StructuralTypes/RelationshipType.php b/src/Types/StructuralTypes/RelationshipType.php index 8a78ec8..1a68666 100644 --- a/src/Types/StructuralTypes/RelationshipType.php +++ b/src/Types/StructuralTypes/RelationshipType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\StructuralTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\StructuralTypeTraits\RelationshipTypeTrait; diff --git a/src/Types/StructuralTypes/StructuralType.php b/src/Types/StructuralTypes/StructuralType.php index 4540a6c..47deda9 100644 --- a/src/Types/StructuralTypes/StructuralType.php +++ b/src/Types/StructuralTypes/StructuralType.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Types\StructuralTypes; use WikibaseSolutions\CypherDSL\Traits\TypeTraits\StructuralTypeTraits\StructuralTypeTrait; diff --git a/src/Utils/CastUtils.php b/src/Utils/CastUtils.php index 8e3d89e..202f59d 100644 --- a/src/Utils/CastUtils.php +++ b/src/Utils/CastUtils.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Utils; use Stringable; diff --git a/src/Utils/NameUtils.php b/src/Utils/NameUtils.php index 24db7c6..435defd 100644 --- a/src/Utils/NameUtils.php +++ b/src/Utils/NameUtils.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Utils; use InvalidArgumentException; diff --git a/src/functions.php b/src/functions.php index a38dcde..2b99586 100644 --- a/src/functions.php +++ b/src/functions.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL; use Stringable; diff --git a/tests/end-to-end/ExamplesTest.php b/tests/end-to-end/ExamplesTest.php index a6085ee..00292ee 100644 --- a/tests/end-to-end/ExamplesTest.php +++ b/tests/end-to-end/ExamplesTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\EndToEnd; use PHPUnit\Framework\TestCase; @@ -48,8 +49,7 @@ public function testOldReadmeExample(): void public function testCallSubqueryClauseExample1(): void { $query = query() - ->call(static function (Query $query): void - { + ->call(static function (Query $query): void { $query->create(node("Person")); }) ->build(); @@ -72,8 +72,7 @@ public function testCallSubqueryClauseExample3(): void $person = variable(); $query = query() ->match(node('Person')->withVariable($person)) - ->call(static function (Query $query) use ($person): void - { + ->call(static function (Query $query) use ($person): void { $query->remove($person->labeled('Person')); }, [$person]) ->build(); diff --git a/tests/end-to-end/MoviesTest.php b/tests/end-to-end/MoviesTest.php index a2bbcfd..cf5756f 100644 --- a/tests/end-to-end/MoviesTest.php +++ b/tests/end-to-end/MoviesTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\EndToEnd; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/CallClauseTest.php b/tests/unit/Clauses/CallClauseTest.php index 15bd27b..e0d20e1 100644 --- a/tests/unit/Clauses/CallClauseTest.php +++ b/tests/unit/Clauses/CallClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/CallProcedureClauseTest.php b/tests/unit/Clauses/CallProcedureClauseTest.php index 38920c3..3a405bd 100644 --- a/tests/unit/Clauses/CallProcedureClauseTest.php +++ b/tests/unit/Clauses/CallProcedureClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/ClauseTest.php b/tests/unit/Clauses/ClauseTest.php index 0e17b7e..758190a 100644 --- a/tests/unit/Clauses/ClauseTest.php +++ b/tests/unit/Clauses/ClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/CreateClauseTest.php b/tests/unit/Clauses/CreateClauseTest.php index 6f09d5e..3c0eeec 100644 --- a/tests/unit/Clauses/CreateClauseTest.php +++ b/tests/unit/Clauses/CreateClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/DeleteClauseTest.php b/tests/unit/Clauses/DeleteClauseTest.php index 115915c..911ba8d 100644 --- a/tests/unit/Clauses/DeleteClauseTest.php +++ b/tests/unit/Clauses/DeleteClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/LimitClauseTest.php b/tests/unit/Clauses/LimitClauseTest.php index a1a5b39..bce9f3b 100644 --- a/tests/unit/Clauses/LimitClauseTest.php +++ b/tests/unit/Clauses/LimitClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/MatchClauseTest.php b/tests/unit/Clauses/MatchClauseTest.php index 0a42bcb..46a9881 100644 --- a/tests/unit/Clauses/MatchClauseTest.php +++ b/tests/unit/Clauses/MatchClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/MergeClauseTest.php b/tests/unit/Clauses/MergeClauseTest.php index ac33129..dee69d5 100644 --- a/tests/unit/Clauses/MergeClauseTest.php +++ b/tests/unit/Clauses/MergeClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/OptionalMatchTest.php b/tests/unit/Clauses/OptionalMatchTest.php index fb69502..bdff365 100644 --- a/tests/unit/Clauses/OptionalMatchTest.php +++ b/tests/unit/Clauses/OptionalMatchTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/OrderByClauseTest.php b/tests/unit/Clauses/OrderByClauseTest.php index 20565d8..ab0392b 100644 --- a/tests/unit/Clauses/OrderByClauseTest.php +++ b/tests/unit/Clauses/OrderByClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/RawClauseTest.php b/tests/unit/Clauses/RawClauseTest.php index 008dc6f..5200688 100644 --- a/tests/unit/Clauses/RawClauseTest.php +++ b/tests/unit/Clauses/RawClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/RemoveClauseTest.php b/tests/unit/Clauses/RemoveClauseTest.php index 5e40794..9f33682 100644 --- a/tests/unit/Clauses/RemoveClauseTest.php +++ b/tests/unit/Clauses/RemoveClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/ReturnClauseTest.php b/tests/unit/Clauses/ReturnClauseTest.php index 7f8f515..7c06cf2 100644 --- a/tests/unit/Clauses/ReturnClauseTest.php +++ b/tests/unit/Clauses/ReturnClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/SetClauseTest.php b/tests/unit/Clauses/SetClauseTest.php index cb01230..ed0f795 100644 --- a/tests/unit/Clauses/SetClauseTest.php +++ b/tests/unit/Clauses/SetClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/SkipClauseTest.php b/tests/unit/Clauses/SkipClauseTest.php index 8b64ae8..2a7c55d 100644 --- a/tests/unit/Clauses/SkipClauseTest.php +++ b/tests/unit/Clauses/SkipClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/UnionClauseTest.php b/tests/unit/Clauses/UnionClauseTest.php index ae9fe31..c64b2c2 100644 --- a/tests/unit/Clauses/UnionClauseTest.php +++ b/tests/unit/Clauses/UnionClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Clauses/WhereClauseTest.php b/tests/unit/Clauses/WhereClauseTest.php index 6e1b38c..1835043 100644 --- a/tests/unit/Clauses/WhereClauseTest.php +++ b/tests/unit/Clauses/WhereClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use InvalidArgumentException; diff --git a/tests/unit/Clauses/WithClauseTest.php b/tests/unit/Clauses/WithClauseTest.php index 29f3ab4..126e73b 100644 --- a/tests/unit/Clauses/WithClauseTest.php +++ b/tests/unit/Clauses/WithClauseTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Clauses; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/AliasTest.php b/tests/unit/Expressions/AliasTest.php index fafbc73..83b7218 100644 --- a/tests/unit/Expressions/AliasTest.php +++ b/tests/unit/Expressions/AliasTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/ExistsTest.php b/tests/unit/Expressions/ExistsTest.php index 1c428ff..a691545 100644 --- a/tests/unit/Expressions/ExistsTest.php +++ b/tests/unit/Expressions/ExistsTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/LabelTest.php b/tests/unit/Expressions/LabelTest.php index 244717a..e9622c5 100644 --- a/tests/unit/Expressions/LabelTest.php +++ b/tests/unit/Expressions/LabelTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Literals/BooleanTest.php b/tests/unit/Expressions/Literals/BooleanTest.php index 26b23b5..d503bcf 100644 --- a/tests/unit/Expressions/Literals/BooleanTest.php +++ b/tests/unit/Expressions/Literals/BooleanTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Literals; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Literals/FloatTest.php b/tests/unit/Expressions/Literals/FloatTest.php index d8163ca..b1ec48e 100644 --- a/tests/unit/Expressions/Literals/FloatTest.php +++ b/tests/unit/Expressions/Literals/FloatTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Literals; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Literals/IntegerTest.php b/tests/unit/Expressions/Literals/IntegerTest.php index c1364cc..46cf08c 100644 --- a/tests/unit/Expressions/Literals/IntegerTest.php +++ b/tests/unit/Expressions/Literals/IntegerTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Literals; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Literals/ListTest.php b/tests/unit/Expressions/Literals/ListTest.php index 54802dc..cff2f54 100644 --- a/tests/unit/Expressions/Literals/ListTest.php +++ b/tests/unit/Expressions/Literals/ListTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Literals; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Literals/LiteralTest.php b/tests/unit/Expressions/Literals/LiteralTest.php index 08bfd38..73072ab 100644 --- a/tests/unit/Expressions/Literals/LiteralTest.php +++ b/tests/unit/Expressions/Literals/LiteralTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Literals; use Iterator; diff --git a/tests/unit/Expressions/Literals/MapTest.php b/tests/unit/Expressions/Literals/MapTest.php index bfee977..3dc4f32 100644 --- a/tests/unit/Expressions/Literals/MapTest.php +++ b/tests/unit/Expressions/Literals/MapTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Literals; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Literals/StringTest.php b/tests/unit/Expressions/Literals/StringTest.php index 3504471..a497f95 100644 --- a/tests/unit/Expressions/Literals/StringTest.php +++ b/tests/unit/Expressions/Literals/StringTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Literals; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/AdditionTest.php b/tests/unit/Expressions/Operators/AdditionTest.php index ce8c953..3c05ebf 100644 --- a/tests/unit/Expressions/Operators/AdditionTest.php +++ b/tests/unit/Expressions/Operators/AdditionTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/ConjunctionTest.php b/tests/unit/Expressions/Operators/ConjunctionTest.php index 6973547..8963e5a 100644 --- a/tests/unit/Expressions/Operators/ConjunctionTest.php +++ b/tests/unit/Expressions/Operators/ConjunctionTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/ContainsTest.php b/tests/unit/Expressions/Operators/ContainsTest.php index 0545c3c..2d802a1 100644 --- a/tests/unit/Expressions/Operators/ContainsTest.php +++ b/tests/unit/Expressions/Operators/ContainsTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/DisjunctionTest.php b/tests/unit/Expressions/Operators/DisjunctionTest.php index 45fdc5c..feeaebc 100644 --- a/tests/unit/Expressions/Operators/DisjunctionTest.php +++ b/tests/unit/Expressions/Operators/DisjunctionTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/DivisionTest.php b/tests/unit/Expressions/Operators/DivisionTest.php index d7c3fa1..a7ea0f6 100644 --- a/tests/unit/Expressions/Operators/DivisionTest.php +++ b/tests/unit/Expressions/Operators/DivisionTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/EndsWithTest.php b/tests/unit/Expressions/Operators/EndsWithTest.php index 41c5301..76c1bbb 100644 --- a/tests/unit/Expressions/Operators/EndsWithTest.php +++ b/tests/unit/Expressions/Operators/EndsWithTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/EqualityTest.php b/tests/unit/Expressions/Operators/EqualityTest.php index 752d1a3..557ff22 100644 --- a/tests/unit/Expressions/Operators/EqualityTest.php +++ b/tests/unit/Expressions/Operators/EqualityTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/ExclusiveDisjunctionTest.php b/tests/unit/Expressions/Operators/ExclusiveDisjunctionTest.php index 59bec7a..69d1d2f 100644 --- a/tests/unit/Expressions/Operators/ExclusiveDisjunctionTest.php +++ b/tests/unit/Expressions/Operators/ExclusiveDisjunctionTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/ExponentiationTest.php b/tests/unit/Expressions/Operators/ExponentiationTest.php index 2c927d6..81d966d 100644 --- a/tests/unit/Expressions/Operators/ExponentiationTest.php +++ b/tests/unit/Expressions/Operators/ExponentiationTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/GreaterThanOrEqualTest.php b/tests/unit/Expressions/Operators/GreaterThanOrEqualTest.php index 5eccfd7..c734fc6 100644 --- a/tests/unit/Expressions/Operators/GreaterThanOrEqualTest.php +++ b/tests/unit/Expressions/Operators/GreaterThanOrEqualTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/GreaterThanTest.php b/tests/unit/Expressions/Operators/GreaterThanTest.php index 07c2743..e74956f 100644 --- a/tests/unit/Expressions/Operators/GreaterThanTest.php +++ b/tests/unit/Expressions/Operators/GreaterThanTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/InTest.php b/tests/unit/Expressions/Operators/InTest.php index 2d077db..08827b4 100644 --- a/tests/unit/Expressions/Operators/InTest.php +++ b/tests/unit/Expressions/Operators/InTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/InequalityTest.php b/tests/unit/Expressions/Operators/InequalityTest.php index 41ffb5d..75e7ff0 100644 --- a/tests/unit/Expressions/Operators/InequalityTest.php +++ b/tests/unit/Expressions/Operators/InequalityTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/IsNotNullTest.php b/tests/unit/Expressions/Operators/IsNotNullTest.php index 1fd2df7..ffbd86a 100644 --- a/tests/unit/Expressions/Operators/IsNotNullTest.php +++ b/tests/unit/Expressions/Operators/IsNotNullTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/IsNullTest.php b/tests/unit/Expressions/Operators/IsNullTest.php index 6dca198..8d9de7a 100644 --- a/tests/unit/Expressions/Operators/IsNullTest.php +++ b/tests/unit/Expressions/Operators/IsNullTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/LessThanOrEqualTest.php b/tests/unit/Expressions/Operators/LessThanOrEqualTest.php index 32213d9..644a51e 100644 --- a/tests/unit/Expressions/Operators/LessThanOrEqualTest.php +++ b/tests/unit/Expressions/Operators/LessThanOrEqualTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/LessThanTest.php b/tests/unit/Expressions/Operators/LessThanTest.php index 7e3fc54..3b132ee 100644 --- a/tests/unit/Expressions/Operators/LessThanTest.php +++ b/tests/unit/Expressions/Operators/LessThanTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/ModuloDivisionTest.php b/tests/unit/Expressions/Operators/ModuloDivisionTest.php index 900953c..3541c00 100644 --- a/tests/unit/Expressions/Operators/ModuloDivisionTest.php +++ b/tests/unit/Expressions/Operators/ModuloDivisionTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/MultiplicationTest.php b/tests/unit/Expressions/Operators/MultiplicationTest.php index 6fb67c0..b21faa9 100644 --- a/tests/unit/Expressions/Operators/MultiplicationTest.php +++ b/tests/unit/Expressions/Operators/MultiplicationTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/NegationTest.php b/tests/unit/Expressions/Operators/NegationTest.php index 84c8e40..32933c3 100644 --- a/tests/unit/Expressions/Operators/NegationTest.php +++ b/tests/unit/Expressions/Operators/NegationTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/PrecedenceTest.php b/tests/unit/Expressions/Operators/PrecedenceTest.php index a5e18b8..77f1852 100644 --- a/tests/unit/Expressions/Operators/PrecedenceTest.php +++ b/tests/unit/Expressions/Operators/PrecedenceTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/RegexTest.php b/tests/unit/Expressions/Operators/RegexTest.php index 122e08b..fbaa949 100644 --- a/tests/unit/Expressions/Operators/RegexTest.php +++ b/tests/unit/Expressions/Operators/RegexTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/StartsWithTest.php b/tests/unit/Expressions/Operators/StartsWithTest.php index 4e02b91..57f23c1 100644 --- a/tests/unit/Expressions/Operators/StartsWithTest.php +++ b/tests/unit/Expressions/Operators/StartsWithTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/SubtractionTest.php b/tests/unit/Expressions/Operators/SubtractionTest.php index 0655dfd..aa055b3 100644 --- a/tests/unit/Expressions/Operators/SubtractionTest.php +++ b/tests/unit/Expressions/Operators/SubtractionTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Operators/UnaryMinusTest.php b/tests/unit/Expressions/Operators/UnaryMinusTest.php index c5541bf..97c9eeb 100644 --- a/tests/unit/Expressions/Operators/UnaryMinusTest.php +++ b/tests/unit/Expressions/Operators/UnaryMinusTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Operators; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/ParameterTest.php b/tests/unit/Expressions/ParameterTest.php index dbbb341..79e2958 100644 --- a/tests/unit/Expressions/ParameterTest.php +++ b/tests/unit/Expressions/ParameterTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions; use InvalidArgumentException; diff --git a/tests/unit/Expressions/Procedures/AllTest.php b/tests/unit/Expressions/Procedures/AllTest.php index f16826e..a2b2800 100644 --- a/tests/unit/Expressions/Procedures/AllTest.php +++ b/tests/unit/Expressions/Procedures/AllTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/AnyTest.php b/tests/unit/Expressions/Procedures/AnyTest.php index 814f8ac..12c7c71 100644 --- a/tests/unit/Expressions/Procedures/AnyTest.php +++ b/tests/unit/Expressions/Procedures/AnyTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/DateTest.php b/tests/unit/Expressions/Procedures/DateTest.php index e999b4c..1217024 100644 --- a/tests/unit/Expressions/Procedures/DateTest.php +++ b/tests/unit/Expressions/Procedures/DateTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/DateTimeTest.php b/tests/unit/Expressions/Procedures/DateTimeTest.php index ff55e6b..c9ecf4a 100644 --- a/tests/unit/Expressions/Procedures/DateTimeTest.php +++ b/tests/unit/Expressions/Procedures/DateTimeTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/ExistsTest.php b/tests/unit/Expressions/Procedures/ExistsTest.php index 819e916..e51e874 100644 --- a/tests/unit/Expressions/Procedures/ExistsTest.php +++ b/tests/unit/Expressions/Procedures/ExistsTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/IsEmptyTest.php b/tests/unit/Expressions/Procedures/IsEmptyTest.php index 5a68e26..204e523 100644 --- a/tests/unit/Expressions/Procedures/IsEmptyTest.php +++ b/tests/unit/Expressions/Procedures/IsEmptyTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/LocalDateTimeTest.php b/tests/unit/Expressions/Procedures/LocalDateTimeTest.php index 2919960..1955063 100644 --- a/tests/unit/Expressions/Procedures/LocalDateTimeTest.php +++ b/tests/unit/Expressions/Procedures/LocalDateTimeTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/LocalTimeTest.php b/tests/unit/Expressions/Procedures/LocalTimeTest.php index 1894920..0f07cbb 100644 --- a/tests/unit/Expressions/Procedures/LocalTimeTest.php +++ b/tests/unit/Expressions/Procedures/LocalTimeTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/NoneTest.php b/tests/unit/Expressions/Procedures/NoneTest.php index 2d32013..8bafa28 100644 --- a/tests/unit/Expressions/Procedures/NoneTest.php +++ b/tests/unit/Expressions/Procedures/NoneTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/PointTest.php b/tests/unit/Expressions/Procedures/PointTest.php index 52cbb59..e1f118d 100644 --- a/tests/unit/Expressions/Procedures/PointTest.php +++ b/tests/unit/Expressions/Procedures/PointTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/ProcedureTest.php b/tests/unit/Expressions/Procedures/ProcedureTest.php index efb4455..252fa63 100644 --- a/tests/unit/Expressions/Procedures/ProcedureTest.php +++ b/tests/unit/Expressions/Procedures/ProcedureTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/RawTest.php b/tests/unit/Expressions/Procedures/RawTest.php index 34aa094..fcc5b78 100644 --- a/tests/unit/Expressions/Procedures/RawTest.php +++ b/tests/unit/Expressions/Procedures/RawTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/SingleTest.php b/tests/unit/Expressions/Procedures/SingleTest.php index cdda805..0365954 100644 --- a/tests/unit/Expressions/Procedures/SingleTest.php +++ b/tests/unit/Expressions/Procedures/SingleTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/Procedures/TimeTest.php b/tests/unit/Expressions/Procedures/TimeTest.php index 786b746..bf64b3b 100644 --- a/tests/unit/Expressions/Procedures/TimeTest.php +++ b/tests/unit/Expressions/Procedures/TimeTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions\Procedures; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/PropertyTest.php b/tests/unit/Expressions/PropertyTest.php index bc418a8..5ab0c48 100644 --- a/tests/unit/Expressions/PropertyTest.php +++ b/tests/unit/Expressions/PropertyTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/RawExpressionTest.php b/tests/unit/Expressions/RawExpressionTest.php index 813df55..93449b4 100644 --- a/tests/unit/Expressions/RawExpressionTest.php +++ b/tests/unit/Expressions/RawExpressionTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Expressions/VariableTest.php b/tests/unit/Expressions/VariableTest.php index dea0636..6834020 100644 --- a/tests/unit/Expressions/VariableTest.php +++ b/tests/unit/Expressions/VariableTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Expressions; use InvalidArgumentException; diff --git a/tests/unit/FunctionsTest.php b/tests/unit/FunctionsTest.php index 849b466..d0ea56f 100644 --- a/tests/unit/FunctionsTest.php +++ b/tests/unit/FunctionsTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Patterns/NodeTest.php b/tests/unit/Patterns/NodeTest.php index 8f64e3f..f9b6548 100644 --- a/tests/unit/Patterns/NodeTest.php +++ b/tests/unit/Patterns/NodeTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Patterns; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Patterns/PathTest.php b/tests/unit/Patterns/PathTest.php index a607fb6..dfea440 100644 --- a/tests/unit/Patterns/PathTest.php +++ b/tests/unit/Patterns/PathTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Patterns; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Patterns/RelationshipTest.php b/tests/unit/Patterns/RelationshipTest.php index 75349e6..e015a5c 100644 --- a/tests/unit/Patterns/RelationshipTest.php +++ b/tests/unit/Patterns/RelationshipTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Patterns; use DomainException; diff --git a/tests/unit/QueryCallProcedureTest.php b/tests/unit/QueryCallProcedureTest.php index df8c2f9..7a3fdc4 100644 --- a/tests/unit/QueryCallProcedureTest.php +++ b/tests/unit/QueryCallProcedureTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryCallTest.php b/tests/unit/QueryCallTest.php index c73f8ba..18a76d4 100644 --- a/tests/unit/QueryCallTest.php +++ b/tests/unit/QueryCallTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; @@ -22,8 +23,7 @@ final class QueryCallTest extends TestCase { public function testWithCallable(): void { - $query = Query::new()->call(static function (Query $query): void - { + $query = Query::new()->call(static function (Query $query): void { $query->match(Query::node('x')); }); @@ -35,8 +35,7 @@ public function testWithCallableOnlyAcceptsQuery(): void $this->expectException(TypeError::class); // @phpstan-ignore-next-line - Query::new()->call(static function (int $query): void - { + Query::new()->call(static function (int $query): void { }); } @@ -63,43 +62,37 @@ public function testWithEmptyQueryAndVariables(): void public function testWithVariables(): void { - $query = Query::new()->call(static function (Query $query): void - { + $query = Query::new()->call(static function (Query $query): void { $query->match(Query::node('x')); }, Query::variable('x')); $this->assertSame('CALL { WITH x MATCH (:x) }', $query->toQuery()); - $query = Query::new()->call(static function (Query $query): void - { + $query = Query::new()->call(static function (Query $query): void { $query->match(Query::node('x')); }, [Query::variable('x')]); $this->assertSame('CALL { WITH x MATCH (:x) }', $query->toQuery()); - $query = Query::new()->call(static function (Query $query): void - { + $query = Query::new()->call(static function (Query $query): void { $query->match(Query::node('x')); }, [Query::variable('x'), Query::variable('y')]); $this->assertSame('CALL { WITH x, y MATCH (:x) }', $query->toQuery()); - $query = Query::new()->call(static function (Query $query): void - { + $query = Query::new()->call(static function (Query $query): void { $query->match(Query::node('x')); }, 'x'); $this->assertSame('CALL { WITH x MATCH (:x) }', $query->toQuery()); - $query = Query::new()->call(static function (Query $query): void - { + $query = Query::new()->call(static function (Query $query): void { $query->match(Query::node('x')); }, ['x', 'y']); $this->assertSame('CALL { WITH x, y MATCH (:x) }', $query->toQuery()); - $query = Query::new()->call(static function (Query $query): void - { + $query = Query::new()->call(static function (Query $query): void { $query->match(Query::node('x')); }, Query::node()); diff --git a/tests/unit/QueryCreateTest.php b/tests/unit/QueryCreateTest.php index b1cf08a..2eccd27 100644 --- a/tests/unit/QueryCreateTest.php +++ b/tests/unit/QueryCreateTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryDeleteTest.php b/tests/unit/QueryDeleteTest.php index 003f067..06932a3 100644 --- a/tests/unit/QueryDeleteTest.php +++ b/tests/unit/QueryDeleteTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryLimitTest.php b/tests/unit/QueryLimitTest.php index ad94bdf..65dd2c2 100644 --- a/tests/unit/QueryLimitTest.php +++ b/tests/unit/QueryLimitTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryMatchTest.php b/tests/unit/QueryMatchTest.php index b2957c2..b6ecd90 100644 --- a/tests/unit/QueryMatchTest.php +++ b/tests/unit/QueryMatchTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryMergeTest.php b/tests/unit/QueryMergeTest.php index 3da7eae..39731a9 100644 --- a/tests/unit/QueryMergeTest.php +++ b/tests/unit/QueryMergeTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryOptionalMatchTest.php b/tests/unit/QueryOptionalMatchTest.php index 3b0e817..feb4031 100644 --- a/tests/unit/QueryOptionalMatchTest.php +++ b/tests/unit/QueryOptionalMatchTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryOrderByTest.php b/tests/unit/QueryOrderByTest.php index 9c1312d..0e0781d 100644 --- a/tests/unit/QueryOrderByTest.php +++ b/tests/unit/QueryOrderByTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryRawTest.php b/tests/unit/QueryRawTest.php index 7023e66..b9a50a1 100644 --- a/tests/unit/QueryRawTest.php +++ b/tests/unit/QueryRawTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryRemoveTest.php b/tests/unit/QueryRemoveTest.php index 71e56fd..42b32b8 100644 --- a/tests/unit/QueryRemoveTest.php +++ b/tests/unit/QueryRemoveTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryReturningTest.php b/tests/unit/QueryReturningTest.php index e7ff15f..e219627 100644 --- a/tests/unit/QueryReturningTest.php +++ b/tests/unit/QueryReturningTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QuerySetTest.php b/tests/unit/QuerySetTest.php index fd704c9..db0517b 100644 --- a/tests/unit/QuerySetTest.php +++ b/tests/unit/QuerySetTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QuerySkipTest.php b/tests/unit/QuerySkipTest.php index c0d8676..3a8041f 100644 --- a/tests/unit/QuerySkipTest.php +++ b/tests/unit/QuerySkipTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/QueryTest.php b/tests/unit/QueryTest.php index a365663..785b9fb 100644 --- a/tests/unit/QueryTest.php +++ b/tests/unit/QueryTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use Iterator; diff --git a/tests/unit/QueryUnionTest.php b/tests/unit/QueryUnionTest.php index 5af04a3..b808a27 100644 --- a/tests/unit/QueryUnionTest.php +++ b/tests/unit/QueryUnionTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; @@ -51,8 +52,7 @@ public function testUnionDecorator(): void $query = Query::new()->match($nodeX)->returning($nodeX->getVariable()); - $query = $query->union(static function (Query $query): void - { + $query = $query->union(static function (Query $query): void { $nodeY = Query::node('Y')->withVariable('y'); $query->match($nodeY)->returning($nodeY->getVariable()); }); @@ -66,8 +66,7 @@ public function testUnionDecoratorAll(): void $query = Query::new()->match($nodeX)->returning($nodeX->getVariable()); - $query = $query->union(static function (Query $query): void - { + $query = $query->union(static function (Query $query): void { $nodeY = Query::node('Y')->withVariable('y'); $query->match($nodeY)->returning($nodeY->getVariable()); }, true); diff --git a/tests/unit/QueryWhereTest.php b/tests/unit/QueryWhereTest.php index 3affb37..5ec5969 100644 --- a/tests/unit/QueryWhereTest.php +++ b/tests/unit/QueryWhereTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use InvalidArgumentException; diff --git a/tests/unit/QueryWithTest.php b/tests/unit/QueryWithTest.php index 158d9e2..496fb72 100644 --- a/tests/unit/QueryWithTest.php +++ b/tests/unit/QueryWithTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Syntax/AliasTest.php b/tests/unit/Syntax/AliasTest.php index 388934f..6178383 100644 --- a/tests/unit/Syntax/AliasTest.php +++ b/tests/unit/Syntax/AliasTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Syntax; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Syntax/PropertyReplacementTest.php b/tests/unit/Syntax/PropertyReplacementTest.php index 4e18826..8316f71 100644 --- a/tests/unit/Syntax/PropertyReplacementTest.php +++ b/tests/unit/Syntax/PropertyReplacementTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Syntax; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Traits/PatternTraits/PatternTraitTest.php b/tests/unit/Traits/PatternTraits/PatternTraitTest.php index 3e767f8..5bc6ae4 100644 --- a/tests/unit/Traits/PatternTraits/PatternTraitTest.php +++ b/tests/unit/Traits/PatternTraits/PatternTraitTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Traits\PatternTraits; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Traits/PatternTraits/PropertyPatternTraitTest.php b/tests/unit/Traits/PatternTraits/PropertyPatternTraitTest.php index efc7eba..e7777a5 100644 --- a/tests/unit/Traits/PatternTraits/PropertyPatternTraitTest.php +++ b/tests/unit/Traits/PatternTraits/PropertyPatternTraitTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Traits\PatternTraits; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Traits/TypeTraits/AnyTypeTraitTest.php b/tests/unit/Traits/TypeTraits/AnyTypeTraitTest.php index 95acf59..56f9f67 100644 --- a/tests/unit/Traits/TypeTraits/AnyTypeTraitTest.php +++ b/tests/unit/Traits/TypeTraits/AnyTypeTraitTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Traits\TypeTraits; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Traits/TypeTraits/CompositeTypeTraits/ListTypeTraitTest.php b/tests/unit/Traits/TypeTraits/CompositeTypeTraits/ListTypeTraitTest.php index 00ac4bc..331d988 100644 --- a/tests/unit/Traits/TypeTraits/CompositeTypeTraits/ListTypeTraitTest.php +++ b/tests/unit/Traits/TypeTraits/CompositeTypeTraits/ListTypeTraitTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Traits\TypeTraits\CompositeTypeTraits; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Traits/TypeTraits/MethodTraits/PropertyMethodTraitTest.php b/tests/unit/Traits/TypeTraits/MethodTraits/PropertyMethodTraitTest.php index 2f83ebf..533eee9 100644 --- a/tests/unit/Traits/TypeTraits/MethodTraits/PropertyMethodTraitTest.php +++ b/tests/unit/Traits/TypeTraits/MethodTraits/PropertyMethodTraitTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Traits\TypeTraits\MethodTraits; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Traits/TypeTraits/PropertyTypeTraits/BooleanTypeTraitTest.php b/tests/unit/Traits/TypeTraits/PropertyTypeTraits/BooleanTypeTraitTest.php index 18a75fd..9398cb5 100644 --- a/tests/unit/Traits/TypeTraits/PropertyTypeTraits/BooleanTypeTraitTest.php +++ b/tests/unit/Traits/TypeTraits/PropertyTypeTraits/BooleanTypeTraitTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Traits\TypeTraits\PropertyTypeTraits; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Traits/TypeTraits/PropertyTypeTraits/NumeralTypeTraitTest.php b/tests/unit/Traits/TypeTraits/PropertyTypeTraits/NumeralTypeTraitTest.php index acc4c0e..de0f217 100644 --- a/tests/unit/Traits/TypeTraits/PropertyTypeTraits/NumeralTypeTraitTest.php +++ b/tests/unit/Traits/TypeTraits/PropertyTypeTraits/NumeralTypeTraitTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Traits\TypeTraits\PropertyTypeTraits; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Traits/TypeTraits/PropertyTypeTraits/PropertyTypeTraitTest.php b/tests/unit/Traits/TypeTraits/PropertyTypeTraits/PropertyTypeTraitTest.php index 6ed3d14..5256521 100644 --- a/tests/unit/Traits/TypeTraits/PropertyTypeTraits/PropertyTypeTraitTest.php +++ b/tests/unit/Traits/TypeTraits/PropertyTypeTraits/PropertyTypeTraitTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Traits\TypeTraits\PropertyTypeTraits; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Traits/TypeTraits/PropertyTypeTraits/StringTypeTraitTest.php b/tests/unit/Traits/TypeTraits/PropertyTypeTraits/StringTypeTraitTest.php index 1438bfb..d5877f8 100644 --- a/tests/unit/Traits/TypeTraits/PropertyTypeTraits/StringTypeTraitTest.php +++ b/tests/unit/Traits/TypeTraits/PropertyTypeTraits/StringTypeTraitTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Traits\TypeTraits\PropertyTypeTraits; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Utils/CastUtilsTest.php b/tests/unit/Utils/CastUtilsTest.php index 5b687c2..41a5ce4 100644 --- a/tests/unit/Utils/CastUtilsTest.php +++ b/tests/unit/Utils/CastUtilsTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Utils; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Utils/NameUtilsTest.php b/tests/unit/Utils/NameUtilsTest.php index 7433cdc..c5e8cc5 100644 --- a/tests/unit/Utils/NameUtilsTest.php +++ b/tests/unit/Utils/NameUtilsTest.php @@ -7,6 +7,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ + namespace WikibaseSolutions\CypherDSL\Tests\Unit\Utils; use InvalidArgumentException; From 43384068ce68627ed4b096efc46771433edb2cbd Mon Sep 17 00:00:00 2001 From: Marijn van Wezel <96489967+marijnvanwezel@users.noreply.github.com> Date: Fri, 6 Feb 2026 18:57:26 +0100 Subject: [PATCH 5/5] Fix formatting of CHANGELOG Signed-off-by: Marijn van Wezel <96489967+marijnvanwezel@users.noreply.github.com> --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a7a73e..c6c7add 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,8 @@ The format is based on [Keep a Changelog], and this project adheres to - Changed the minimum required PHP version to 8.1. - Changed the signature of many functions to use PHP 8 union types. - Changed the `Relationship::DIR_*` to the `Direction` enum. -- Remove `$insertParentheses` from all methods, and automatically insert them based on precedence. - No longer insert parentheses when chaining comparison operators. +- Remove `$insertParentheses` from all methods, and automatically insert them based on precedence. +- No longer insert parentheses when chaining comparison operators. ### Removed