Skip to content
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

Update module for Pimcore 10.x #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

MMierzynski
Copy link

No description provided.

@MMierzynski MMierzynski marked this pull request as ready for review April 24, 2023 06:09
Comment on lines 77 to +78
if ($handler) {
foreach ($languages as $language) {
$progress = $progress->add($handler->getEnrichmentProgress(
$child,
$this->getLocalizedKeyValue($data, $relation, $language)
));
if ($field->isLocalized()) {
Copy link

Choose a reason for hiding this comment

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

if ($handler && $field->isLocalized()) {

class EnrichmentController extends AdminController
{
/**
* @var EnrichmentService
* @var EnrichmentProgressService
*/
private $service;

Choose a reason for hiding this comment

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

Missing property type.
After adding property type comment above will be redundant.
You changed required PHP version to 8.1 so please add missing return types, parameters and properties types.
Please review also other files in repository and add missing elements.
Please remove also redundant comments.

$child,
$this->getLocalizedKeyValue($data, $relation, $language)
));
if ($field->isLocalized()) {

Choose a reason for hiding this comment

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

If field is not localized progress won't be calculated for the field at all, is it intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants