Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Update Code - DocBlock Standard #6255

Merged

Conversation

edenduong
Copy link
Contributor

@edenduong edenduong commented Dec 19, 2019

Purpose of this pull request

This pull request (PR) will remove the Old Magento 1 code in the DocBlock Standard Page.
Update to Magento 2 code.

Affected DevDocs pages

Links to Magento source code

@devops-devdocs
Copy link
Collaborator

An admin must run tests on this PR before it can be merged.

@edenduong edenduong changed the title Update Code Standard Demarcation - Fix Incorrect Code Update Code Standard Demarcation - DocBlock Standard Dec 19, 2019
@edenduong
Copy link
Contributor Author

@jeff-matthews : I have just merge into 1 PR. You can check it. Thanks!

@jeff-matthews
Copy link
Contributor

Thanks @edenduong! Coding Standards require review from Magento architects, so I'm adding @buskamuza.

@jeff-matthews jeff-matthews added 2.2.x 2.3.x Magento 2.3 related changes Technical Updates to the code or processes that alter the technical content of the doc labels Dec 19, 2019
@jeff-matthews jeff-matthews self-assigned this Dec 19, 2019
@dshevtsov dshevtsov requested a review from lenaorobei December 19, 2019 19:21
@dobooth
Copy link
Contributor

dobooth commented Jan 2, 2020

Hi @edenduong Thanks for the contribution. We recently stopped taking contributions for v2.2, as it is entering EOL. Please update the changes to the v2.3 file. Also, since it is dealing with coding standards, we are asking for architects to review. Thanks.

if (Mage::helper('Mage_Core_Helper_File_Storage_Database')->checkDbUsage()) {
Mage::getModel('Mage_Core_Model_File_Storage_Directory_Database')->deleteDirectory($path);
if (!$this->isPathAllowed($path, $this->getConditionsForExcludeDirs())) {
throw new \Magento\Framework\Exception\LocalizedException(
Copy link
Contributor

Choose a reason for hiding this comment

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

This is explicit throwing of an exception. The section is about implicit throwing. An example could be if there would be a method like $this->throwException() or something like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have change the example. Please check it. Thanks!

Copy link
Contributor

@buskamuza buskamuza left a comment

Choose a reason for hiding this comment

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

See comments

@dobooth
Copy link
Contributor

dobooth commented Jan 17, 2020

Hi @edenduong Any update on this PR?

@dobooth
Copy link
Contributor

dobooth commented Feb 5, 2020

@edenduong Still out there? Any updates?

@edenduong edenduong force-pushed the code_standard_demarcation_update_magento2 branch from 547c4cd to 426a3a1 Compare February 6, 2020 02:01
@edenduong edenduong changed the title Update Code Standard Demarcation - DocBlock Standard Update Code - DocBlock Standard Feb 6, 2020
@edenduong
Copy link
Contributor Author

@dobooth: Sorry for late response. I have just change the docs.
Thanks!

@dobooth
Copy link
Contributor

dobooth commented Feb 13, 2020

running tests

@dobooth dobooth merged commit fd99639 into magento:master Feb 13, 2020
@ghost
Copy link

ghost commented Feb 13, 2020

Hi @edenduong, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.2.x 2.3.x Magento 2.3 related changes Progress: review tech-partners-contribution Technical Updates to the code or processes that alter the technical content of the doc Technology Partner: Magestore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants