src/Drivers/Database.php
/**
     * Transforms settings data into an array ready to be insterted into the
     * database. Call array_dot on a multidimensional array before passing it
     * into this method!
     *
     * @param array $data Call array_dot on a multidimensional array before passing it into this method!
     *
     * @return array
     */
Transforms settings data into an array ready to be insterted into the
database. Call array_dot on a multidimensional array before passing it
into this method!

@param array $data Call array_dot on a multidimensional array before passing it into this method!

@return array
Transforms settings data into an array ready to be insterted into the database . Call array_dot on a multidimensional array before passing it into this method! @param array $data Call array_dot on a multidimensional array before passing it into this method! @return array
protected function prepareInsertData(array $data)
    {
        $db_data = [];
        if ($this->getExtraColumns()) {
            foreach ($data as $key => $value) {
                $value = $this->prepareValue($key, $value);
                $db_data[] = array_merge(
                    $this->getExtraColumns(),
                    [$this->key => $key, $this->value => $value]
                );
            }
        } else {
            foreach ($data as $key => $value) {
                $value = $this->prepareValue($key, $value);
                $db_data[] = [$this->key => $key, $this->value => $value];
            }
        }
        return $db_data;
    }
protected function prepareInsertData ( array $ data ) { $ db_data = [ ] ; if ( $ this -> getExtraColumns ( ) ) { foreach ( $ data as $ key => $ value ) { $ value = $ this -> prepareValue ( $ key , $ value ) ; $ db_data [ ] = array_merge ( $ this -> getExtraColumns ( ) , [ $ this -> key => $ key , $ this -> value => $ value ] ) ; } } else { foreach ( $ data as $ key => $ value ) { $ value = $ this -> prepareValue ( $ key , $ value ) ; $ db_data [ ] = [ $ this -> key => $ key , $ this -> value => $ value ] ; } } return $ db_data ; }
Transforms settings data into an array ready to be insterted into the
 database.
Transforms settings data into an array ready to be insterted into the database .