-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
Update module for Pimcore 10.x #3
Conversation
if ($handler) { | ||
foreach ($languages as $language) { | ||
$progress = $progress->add($handler->getEnrichmentProgress( | ||
$child, | ||
$this->getLocalizedKeyValue($data, $relation, $language) | ||
)); | ||
if ($field->isLocalized()) { |
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.
if ($handler && $field->isLocalized()) {
class EnrichmentController extends AdminController | ||
{ | ||
/** | ||
* @var EnrichmentService | ||
* @var EnrichmentProgressService | ||
*/ | ||
private $service; |
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.
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()) { |
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.
If field is not localized progress won't be calculated for the field at all, is it intentional?
No description provided.