Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Dec 21, 2023
1 parent ba742b0 commit acffbae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Validator/RulesValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getTypeIdentifier(): string
*/
public function validate(TranslationSet $set, StorageInterface $storage): ValidationResult
{
if (count($set->getAllTranslationIDs()) === 0) {
if ($set->getAllTranslationIDs() === []) {
return new ValidationResult([], []);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Components/Validator/RulesValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testValidationWithoutTranslationsIsOkay(): void
/**
* @return array[]
*/
public function ruleValidationDataProvider()
public function ruleValidationDataProvider(): array
{
return [
[Rules::NESTING_DEPTH, 2],
Expand Down

0 comments on commit acffbae

Please sign in to comment.