Skip to content

Commit

Permalink
PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Sep 18, 2024
1 parent e56e1ae commit 330efdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Unserialize/Reader/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Unserialize_Reader_Arr
*/
public function read($char, $prevChar)
{
$this->_result = !is_null($this->_result) ? $this->_result : array();
$this->_result = !is_null($this->_result) ? $this->_result : [];

if (is_null($this->_status) && $prevChar == Unserialize_Parser::SYMBOL_COLON) {
$this->_length .= $char;
Expand Down
2 changes: 1 addition & 1 deletion lib/Varien/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ public function __call($method, $args)
return isset($this->_data[$key]);
}
throw new Varien_Exception(
// phpcs:ignore Ecg.Security.ForbiddenFunction.Found
// phpcs:ignore Ecg.Security.ForbiddenFunction.Found
'Invalid method ' . get_class($this) . '::' . $method . '(' . print_r($args, 1) . ')'
);
}
Expand Down

0 comments on commit 330efdd

Please sign in to comment.