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

Mage_Eav - DOC block update #771

Merged
merged 3 commits into from
Jun 10, 2020
Merged

Mage_Eav - DOC block update #771

merged 3 commits into from
Jun 10, 2020

Conversation

sreichel
Copy link
Contributor

  • doc blocks added/fixed
  • PSR2 fixes (whitespaces, linebreaks, ...)

Note: todo replace object annotation with correct classes (round 2)

- doc blocks added/fixed
- PSR2 fixes (whitespaces, linebreaks, ...)
@sreichel sreichel added the Cleanup: DOC blocks Related to DOC block updates and fixes. label Jun 23, 2019
app/code/core/Mage/Eav/Model/Entity/Abstract.php Outdated Show resolved Hide resolved
app/code/core/Mage/Eav/Model/Entity/Abstract.php Outdated Show resolved Hide resolved
@@ -1587,7 +1586,9 @@ public function saveAttribute(Varien_Object $object, $attributeCode)
/**
* Delete entity using current object's data
*
* @param object $object
Copy link
Contributor

Choose a reason for hiding this comment

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

int|Varien_Object ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

int|string|Varien_Object? (numeric string?)

        if (is_numeric($object)) {
            $id = (int)$object;

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, but for clarity I would mark it as int|varien_object to encourage passing proper it, and in the longer run making core usge ints.
But lets get anything you also agrees with to keep it going. I think we will need few more rounds of doc fixes after this initial one.

app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php Outdated Show resolved Hide resolved
tmotyl
tmotyl previously approved these changes May 16, 2020
@sreichel sreichel mentioned this pull request May 23, 2020
@sreichel sreichel added the Component: Eav Relates to Mage_Eav label Jun 4, 2020
@colinmollenhour colinmollenhour dismissed stale reviews from tmotyl and themself via 830a3a7 June 10, 2020 14:22
@colinmollenhour colinmollenhour merged commit dc067a9 into OpenMage:1.9.4.x Jun 10, 2020
@sreichel sreichel deleted the cleanup/eav branch June 10, 2020 14:29
@sreichel sreichel added this to the Release 19.4.4 milestone Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup: DOC blocks Related to DOC block updates and fixes. Component: Eav Relates to Mage_Eav
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants