src/Traits/Stash/StorageTrait.php
private function mapStashStorageItems($item, $key)
    {
        if ( is_array($item) ) {
            foreach ( $item as $currentKey => $currentValue ) {
                $item[$currentKey] = $this->{__FUNCTION__}($currentValue, $currentKey);
            }

            return $item;
        }

        return $this->sanitizeStashStorageItem($item, $key);
    }
private function mapStashStorageItems($item, $key)
    {
        if ( is_array($item) ) {
            foreach ( $item as $currentKey => $currentValue ) {
                $item[$currentKey] = $this->{__FUNCTION__}($currentValue, $currentKey);
            }

            return $item;
        }

        return $this->sanitizeStashStorageItem($item, $key);
    }
private function mapStashStorageItems ( $ item , $ key ) { if ( is_array ( $ item ) ) { foreach ( $ item as $ currentKey => $ currentValue ) { $ item [ $ currentKey ] = $ this -> { __FUNCTION__ } ( $ currentValue , $ currentKey ) ; } return $ item ; } return $ this -> sanitizeStashStorageItem ( $ item , $ key ) ; }
stash storage item mapper.

@param $item
@param $key
@return mixed
@throws StashException
stash storage item mapper .