From 330efdd363758849a296d4edd3cbe29e986d98a7 Mon Sep 17 00:00:00 2001 From: Fabrizio Balliano Date: Wed, 18 Sep 2024 08:46:10 +0100 Subject: [PATCH] PHPCS --- lib/Unserialize/Reader/Arr.php | 2 +- lib/Varien/Object.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Unserialize/Reader/Arr.php b/lib/Unserialize/Reader/Arr.php index d857744dd..abb2d366d 100644 --- a/lib/Unserialize/Reader/Arr.php +++ b/lib/Unserialize/Reader/Arr.php @@ -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; diff --git a/lib/Varien/Object.php b/lib/Varien/Object.php index 494d0e80e..c15cdd206 100644 --- a/lib/Varien/Object.php +++ b/lib/Varien/Object.php @@ -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) . ')' ); }