src/Model/Items.php
private function parseItems($items) {
        $actual = [];
        foreach ($items as $key => $item) {
            if (strpos($item->templateId, "Quest:") !== false) continue;
            $newItem = $item;
            $newItem->itemId = $key; // Add the itemId as a kvp since it only exists as the object identifier initially
            $actual[] = $newItem;
        }
        return $actual;
    }
private function parseItems($items) {
        $actual = [];
        foreach ($items as $key => $item) {
            if (strpos($item->templateId, "Quest:") !== false) continue;
            $newItem = $item;
            $newItem->itemId = $key; // Add the itemId as a kvp since it only exists as the object identifier initially
            $actual[] = $newItem;
        }
        return $actual;
    }
private function parseItems ( $ items ) { $ actual = [ ] ; foreach ( $ items as $ key => $ item ) { if ( strpos ( $ item -> templateId , "Quest:" ) !== false ) continue ; $ newItem = $ item ; $ newItem -> itemId = $ key ; // Add the itemId as a kvp since it only exists as the object identifier initially $ actual [ ] = $ newItem ; } return $ actual ; }
Parses a list of items and removes any non items (for some reason, quests show up in here)
@param  array $items Items
@return array        Actual items
Parses a list of items and removes any non items ( for some reason quests show up in here )