From: Vincent Vanwaelscappel Date: Mon, 22 Aug 2022 14:36:04 +0000 (+0200) Subject: wip #5408 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3c21f6b1d58a61898217789f7614a6671240706e;p=cubist_util.git wip #5408 --- diff --git a/src/Data.php b/src/Data.php index 51aef23..91275b3 100644 --- a/src/Data.php +++ b/src/Data.php @@ -34,9 +34,7 @@ class Data implements \ArrayAccess protected static function square_brackets_to_dots($string) { - $string = str_replace(['[', ']'], ['.', ''], $string); - - return $string; + return str_replace(['[', ']'], ['.', ''], $string); } protected function _fixValue($value) @@ -223,6 +221,4 @@ class Data implements \ArrayAccess { return null === $this->_offsetPrefix ? $offset : $this->_offsetPrefix . $offset; } - - }