Skip to content

Commit 075b181

Browse files
DevKit updates for 4.x branch (#760)
* DevKit updates * Fix cs Co-authored-by: Vincent Langlet <[email protected]>
1 parent 7da2182 commit 075b181

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.php-cs-fixer.dist.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
'no_useless_return' => true,
5353
'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true],
5454
'ordered_class_elements' => true,
55-
'ordered_imports' => true,
55+
'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['class', 'function', 'const']],
5656
'php_unit_method_casing' => false,
5757
'php_unit_set_up_tear_down_visibility' => true,
5858
'php_unit_strict' => true,

src/FieldDescription/FilterTypeGuesser.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function guess(FieldDescriptionInterface $fieldDescription): TypeGuess
6363

6464
switch ($fieldDescription->getMappingType()) {
6565
case Type::BOOL:
66-
// TODO: Remove it when dropping support of doctrine/mongodb-odm < 3.0
66+
// TODO: Remove it when dropping support of doctrine/mongodb-odm < 3.0
6767
case Type::BOOLEAN:
6868
return new TypeGuess(BooleanFilter::class, $options, Guess::HIGH_CONFIDENCE);
6969
case Type::TIMESTAMP:
@@ -73,7 +73,7 @@ public function guess(FieldDescriptionInterface $fieldDescription): TypeGuess
7373
return new TypeGuess(DateFilter::class, $options, Guess::HIGH_CONFIDENCE);
7474
case Type::FLOAT:
7575
case Type::INT:
76-
// TODO: Remove it when dropping support of doctrine/mongodb-odm < 3.0
76+
// TODO: Remove it when dropping support of doctrine/mongodb-odm < 3.0
7777
case Type::INTEGER:
7878
return new TypeGuess(NumberFilter::class, $options, Guess::MEDIUM_CONFIDENCE);
7979
case Type::ID:

src/FieldDescription/TypeGuesser.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function guess(FieldDescriptionInterface $fieldDescription): TypeGuess
4848
case Type::HASH:
4949
return new TypeGuess(FieldDescriptionInterface::TYPE_ARRAY, [], Guess::HIGH_CONFIDENCE);
5050
case Type::BOOL:
51-
// TODO: Remove it when dropping support of doctrine/mongodb-odm < 3.0
51+
// TODO: Remove it when dropping support of doctrine/mongodb-odm < 3.0
5252
case Type::BOOLEAN:
5353
return new TypeGuess(FieldDescriptionInterface::TYPE_BOOLEAN, [], Guess::HIGH_CONFIDENCE);
5454
case Type::TIMESTAMP:
@@ -58,7 +58,7 @@ public function guess(FieldDescriptionInterface $fieldDescription): TypeGuess
5858
return new TypeGuess(FieldDescriptionInterface::TYPE_DATE, [], Guess::HIGH_CONFIDENCE);
5959
case Type::FLOAT:
6060
return new TypeGuess(FieldDescriptionInterface::TYPE_FLOAT, [], Guess::MEDIUM_CONFIDENCE);
61-
// TODO: Remove it when dropping support of doctrine/mongodb-odm < 3.0
61+
// TODO: Remove it when dropping support of doctrine/mongodb-odm < 3.0
6262
case Type::INTEGER:
6363
case Type::INT:
6464
return new TypeGuess(FieldDescriptionInterface::TYPE_INTEGER, [], Guess::MEDIUM_CONFIDENCE);

tests/Filter/ModelFilterTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct()
3535

3636
public function getId(): string
3737
{
38-
return (string) ($this->id);
38+
return (string) $this->id;
3939
}
4040
}
4141

0 commit comments

Comments
 (0)