Code Duplication    Length = 14-14 lines in 2 locations

src/Subjects/AbstractProductSubject.php 2 locations

@@ 923-936 (lines=14) @@
920
     *
921
     * @return array The exploded keys
922
     */
923
    public function explodeKey($value, $delimiter = ',', $valueDelimiter = '=')
924
    {
925
926
        // initialize the array for the keys
927
        $keys = array();
928
929
        // extract the keys from the value
930
        foreach ($this->explode($value, $delimiter) as $keyValue) {
931
            list($keys[], ) = $this->explode($keyValue, $valueDelimiter);
932
        }
933
934
        // return the array with the keys
935
        return $keys;
936
    }
937
938
    /**
939
     * Extracts the values of the passed value by exploding them
@@ 948-961 (lines=14) @@
945
     *
946
     * @return array The exploded values
947
     */
948
    public function explodeValue($value, $delimiter = ',', $valueDelimiter = '=')
949
    {
950
951
        // initialize the array for the values
952
        $values = array();
953
954
        // extract the values from the value
955
        foreach ($this->explode($value, $delimiter) as $keyValue) {
956
            list(, $values[]) = $this->explode($keyValue, $valueDelimiter);
957
        }
958
959
        // return the array with the values
960
        return $values;
961
    }
962
}
963