protected function indexMiraklData($miraklData)
    {
        $indexedMiraklData = array();
        foreach ($miraklData as $data) {
            $indexedMiraklData[$data['shop_id']] = $data;
        }
        return $indexedMiraklData;
    }
protected function indexMiraklData($miraklData)
    {
        $indexedMiraklData = array();
        foreach ($miraklData as $data) {
            $indexedMiraklData[$data['shop_id']] = $data;
        }
        return $indexedMiraklData;
    }
protected function indexMiraklData ( $ miraklData ) { $ indexedMiraklData = array ( ) ; foreach ( $ miraklData as $ data ) { $ indexedMiraklData [ $ data [ 'shop_id' ] ] = $ data ; } return $ indexedMiraklData ; }
Index mirakl data fetched with a call to S20 resource from their API

@param $miraklData
@return array
Index mirakl data fetched with a call to S20 resource from their API