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

[TASK] PM features and changes #244

Merged
merged 10 commits into from
Dec 16, 2020
Merged

[TASK] PM features and changes #244

merged 10 commits into from
Dec 16, 2020

Conversation

pixelmatseriks
Copy link
Member

closes #240, #239, #238

public function getListingAttributes(): array
{
return $this->collection($this->getAttributes())
->filter(fn (Attribute $attribute) => $attribute->isShowInAttributeListing())
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be better to just have showInAttributeListing()?

Suggested change
->filter(fn (Attribute $attribute) => $attribute->isShowInAttributeListing())
->filter(fn (Attribute $attribute) => $attribute->showInAttributeListing())

* Returns Usp as array split by lines.
* @return array
*/
public function getUspList(): array
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public function getUspList(): array
public function getUspArray(): array

Copy link
Contributor

@mabolek mabolek left a comment

Choose a reason for hiding this comment

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

A couple of small suggestions

@pixelmatseriks pixelmatseriks merged commit 5d69695 into v10_alpha Dec 16, 2020
@pixelmatseriks pixelmatseriks deleted the pm-fixes branch December 29, 2020 12:11
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.

2 participants