-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed spelling and adjusted white spaces #26048
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
Hi @pawankparmar. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
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.
Please fix Static tests, then PR will be automatically approved.
Hi @lbajsarowicz, thank you for the review.
|
@pawankparmar thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
Hello @lbajsarowicz , do I need to phpcs OR phpcbf file ? |
Fix your code to pass static tests |
*/ | ||
public function setExtensionAttributes( | ||
\Magento\Catalog\Api\Data\ProductRender\FormattedPriceInfoExtensionInterface $extensionAttributes | ||
); | ||
} | ||
} |
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.
There has to be an empty line at the end of file.
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.
Fixed.
* @return $this | ||
* @since 101.1.0 | ||
* @since 101.1.0 | ||
*/ | ||
public function setExtensionAttributes( | ||
\Magento\Catalog\Api\Data\ProductRender\FormattedPriceInfoExtensionInterface $extensionAttributes |
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.
Import the class, make it single line.
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.
Fixed.
* @return $this | ||
* @since 101.1.0 | ||
* @since 101.1.0 |
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.
There should be only one space.
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.
Fixed.
*/ | ||
public function getExtensionAttributes(); | ||
|
||
/** | ||
* Set an extension attributes object. | ||
* | ||
* @param \Magento\Catalog\Api\Data\ProductRender\FormattedPriceInfoExtensionInterface $extensionAttributes | ||
* @param \Magento\Catalog\Api\Data\ProductRender\FormattedPriceInfoExtensionInterface $extensionAttributes |
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.
There should be only one space.
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.
Fixed.
*/ | ||
public function setRegularPrice($regularPrice); | ||
|
||
/** | ||
* Retrieve existing extension attributes object or create a new one. | ||
* | ||
* @return \Magento\Catalog\Api\Data\ProductRender\FormattedPriceInfoExtensionInterface|null | ||
* @since 101.1.0 | ||
* @since 101.1.0 |
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.
There should be only one space.
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.
Fixed.
*/ | ||
public function getMaxPrice(); | ||
|
||
/** | ||
* Set the max price of the product | ||
* | ||
* @param string $maxPrice | ||
* @param string $maxPrice |
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.
There should be only one space.
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.
Fixed.
@@ -42,16 +42,16 @@ public function setFinalPrice($finalPrice); | |||
* E.g. for product with custom options is price with the most expensive custom option | |||
* | |||
* @return string | |||
* @since 101.1.0 | |||
* @since 101.1.0 |
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.
There should be only one space.
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.
Fixed.
* @return void | ||
* @since 101.1.0 | ||
* @since 101.1.0 |
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.
There should be only one space.
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.
Fixed.
*/ | ||
public function getFinalPrice(); | ||
|
||
/** | ||
* Set the final price: usually it calculated as minimal price of the product | ||
* Can be different depends on type of product | ||
* | ||
* @param string $finalPrice | ||
* @param string $finalPrice |
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.
There should be only one space.
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.
Fixed.
app/code/Magento/Catalog/Api/Data/ProductRender/FormattedPriceInfoInterface.php
Outdated
Show resolved
Hide resolved
Hello @lbajsarowicz , thank you pointing this. I have fixed other space issue and new line at the end of file. In this pull, I just correct spelling and put space between two words! I have tried following test for my file: None of the above reported "There must be exactly one blank line between lines" issue Thank you. |
I have fixed Static tests... |
@akaplya @lbajsarowicz any updates on PR ? do i need to anything else ? |
@magento-engcom-team, any updates on PR ? anything remaining from my side ? |
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.
OK
Hi @lbajsarowicz, thank you for the review.
|
QA not applicable |
Hi @pawankparmar, thank you for your contribution! |
Description (*)
Corrected spelling and adjust white space to increase readability
Contribution checklist (*)