protected function formatSyncList(array $records)
    {
        $results = array();

        foreach ($records as $id => $attributes)
        {
            if ( ! is_array($attributes))
            {
                list($id, $attributes) = array($attributes, array());
            }

            $results[$id] = $attributes;
        }

        return $results;
    }
protected function formatSyncList(array $records)
    {
        $results = array();

        foreach ($records as $id => $attributes)
        {
            if ( ! is_array($attributes))
            {
                list($id, $attributes) = array($attributes, array());
            }

            $results[$id] = $attributes;
        }

        return $results;
    }
protected function formatSyncList ( array $ records ) { $ results = array ( ) ; foreach ( $ records as $ id => $ attributes ) { if ( ! is_array ( $ attributes ) ) { list ( $ id , $ attributes ) = array ( $ attributes , array ( ) ) ; } $ results [ $ id ] = $ attributes ; } return $ results ; }
Format the sync list so that it is keyed by ID.

@param  array  $records
@return array
Format the sync list so that it is keyed by ID .