]> _ Git - cubist_util.git/commitdiff
wip #5408
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 22 Aug 2022 14:36:04 +0000 (16:36 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 22 Aug 2022 14:36:04 +0000 (16:36 +0200)
src/Data.php

index 51aef231e45d24683cb07bdcaf34dd9ea2d598c1..91275b3afcfd91cd76a305dd219f8cd924fe866d 100644 (file)
@@ -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;
     }
-
-
 }