Skip to content

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

Merged
merged 6 commits into from
May 15, 2023
Merged

Start fixing PHPMD issues #250

merged 6 commits into from
May 15, 2023

Conversation

brunoocasali
Copy link
Member

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.

@brunoocasali brunoocasali requested a review from bidoubiwa May 12, 2023 20:22
Copy link
Contributor

@bidoubiwa bidoubiwa left a 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'));
Copy link
Contributor

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?

@brunoocasali brunoocasali force-pushed the start-fixing-phpmd-issues branch from 1e8ecbd to 4061979 Compare May 15, 2023 14:19
@brunoocasali brunoocasali requested a review from bidoubiwa May 15, 2023 14:19
@brunoocasali brunoocasali added the enhancement New feature or request label May 15, 2023
Copy link
Contributor

@bidoubiwa bidoubiwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🔥

@brunoocasali
Copy link
Member Author

bors merge

@meili-bors
Copy link
Contributor

meili-bors bot commented May 15, 2023

@meili-bors meili-bors bot merged commit e176918 into main May 15, 2023
@meili-bors meili-bors bot deleted the start-fixing-phpmd-issues branch May 15, 2023 19:04
meili-bors bot added a commit that referenced this pull request May 17, 2023
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants