-
Notifications
You must be signed in to change notification settings - Fork 33
Start fixing PHPMD issues #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still a linting issue in your CI tests apparently
@@ -110,7 +110,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int | |||
$repository = $manager->getRepository($entityClassName); | |||
$classMetadata = $manager->getClassMetadata($entityClassName); | |||
$entityIdentifiers = $classMetadata->getIdentifierFieldNames(); | |||
$sortByIdentifiersParam = array_combine($entityIdentifiers, array_fill(0, count($entityIdentifiers), 'ASC')); | |||
$sortByAttrsParam = array_combine($entityIdentifiers, array_fill(0, count($entityIdentifiers), 'ASC')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does an object look like? is sortByAttrs
not enough?
Co-authored-by: cvermand <[email protected]>
1e8ecbd
to
4061979
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🔥
bors merge |
Build succeeded:
|
252: Update version for the next release (v0.12.0) r=brunoocasali a=meili-bot _This PR is auto-generated._ The automated script updates the version of meilisearch-symfony to a new version: "v0.12.0" **RELEASE CHANGELOG:** ## 💥 Breaking Changes * Accept a `normalizationGroups` as an array instead of the boolean `useSerializerGroup` when using `SearchableEntity` directly (#239) `@norkunas` * Allow configuring in `config/meilisearch.yml` a custom serializer groups instead of the default one (#239) `@norkunas` Example: ```yml enable_serializer_groups: true serializer_groups: ['public', 'private'] ``` ## 🚀 Enhancements * Start fixing PHPMD issues (#250) `@brunoocasali` ## 💅 Misc * Add phpmd to project (#165) `@jonatanrdsantos` Thanks again to `@brunoocasali,` `@curquiza,` `@jonatanrdsantos,` `@norkunas!` 🎉 Co-authored-by: meili-bot <[email protected]>
Fix part of the phpmd issues (most of the simpler ones) like long variable names, too many lines in the same method, and useless else conditions.