Skip to content

Commit

Permalink
Ignore some phpcs-ecg errors [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Jul 28, 2024
1 parent dde71e2 commit b95a4f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/code/core/Mage/Core/Block/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ abstract class Mage_Core_Block_Abstract extends Varien_Object
/**
* @var Varien_Object
*/
// phpcs:ignore Ecg.PHP.PrivateClassMember.PrivateClassMemberError
private static $_transportObject;

/**
Expand Down Expand Up @@ -524,6 +525,7 @@ public function unsetCallChild($alias, $callback, $result, $params)
}

Mage::helper('core/security')->validateAgainstBlockMethodBlacklist($child, $callback, $params);
// phpcs:ignore Ecg.Security.ForbiddenFunction.Found
if ($result == call_user_func_array([&$child, $callback], $params)) {
$this->unsetChild($alias);
}
Expand Down Expand Up @@ -863,7 +865,7 @@ public function getChildGroup($groupName, $callback = null, $skipEmptyResults =
*
* @param string $alias
* @param string $key
* @return mixed
* @return mixed|void
*/
public function getChildData($alias, $key = '')
{
Expand Down Expand Up @@ -1165,6 +1167,7 @@ public function getModuleName()
public function __()
{
$args = func_get_args();
// phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
$expr = new Mage_Core_Model_Translate_Expr(array_shift($args), $this->getModuleName());
array_unshift($args, $expr);
return $this->_getApp()->getTranslator()->translate($args);
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/Model/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ protected function _translateLayoutNode($node, &$args)
* Save block in blocks registry
*
* @param string $name
* @param Mage_Core_Model_Layout $block
* @param Mage_Core_Block_Abstract $block
* @return $this
*/
public function setBlock($name, $block)
Expand Down

0 comments on commit b95a4f5

Please sign in to comment.