Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbeaty committed Sep 28, 2024
1 parent 46cb59b commit ba0b154
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions app/code/core/Mage/Eav/Block/Adminhtml/Attribute/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ protected function _prepareCollection()
$hiddenAttributes = Mage::helper('eav')->getHiddenAttributes($entityType->getEntityTypeCode());

/** @var Mage_Eav_Model_Resource_Entity_Attribute_Collection $collection */
$collection = Mage::getResourceModel($entityType->getEntityAttributeCollection())
->setEntityTypeFilter($entityType->getEntityTypeId())
->setNotCodeFilter($hiddenAttributes);
$collection = Mage::getResourceModel($entityType->getEntityAttributeCollection());

$collection->setEntityTypeFilter($entityType->getEntityTypeId())
->setNotCodeFilter($hiddenAttributes);

$this->setCollection($collection);
}
Expand Down
5 changes: 3 additions & 2 deletions app/code/core/Mage/Eav/Block/Adminhtml/Attribute/Set/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ public function __construct()
protected function _prepareCollection()
{
/** @var Mage_Eav_Model_Resource_Entity_Attribute_Set_Collection $collection */
$collection = Mage::getResourceModel('eav/entity_attribute_set_collection')
->setEntityTypeFilter(Mage::registry('entity_type')->getEntityTypeId());
$collection = Mage::getResourceModel('eav/entity_attribute_set_collection');

$collection->setEntityTypeFilter(Mage::registry('entity_type')->getEntityTypeId());

$this->setCollection($collection);
return parent::_prepareCollection();
Expand Down

0 comments on commit ba0b154

Please sign in to comment.