protected static function prefixData($data)
    {
        $prefixedData = array();
        foreach ($data as $stat => $value) {
            $prefixedKey = self::prefix($stat);
            $prefixedData[$prefixedKey] = $value;
        }
        return $prefixedData;
    }
protected static function prefixData($data)
    {
        $prefixedData = array();
        foreach ($data as $stat => $value) {
            $prefixedKey = self::prefix($stat);
            $prefixedData[$prefixedKey] = $value;
        }
        return $prefixedData;
    }
protected static function prefixData ( $ data ) { $ prefixedData = array ( ) ; foreach ( $ data as $ stat => $ value ) { $ prefixedKey = self :: prefix ( $ stat ) ; $ prefixedData [ $ prefixedKey ] = $ value ; } return $ prefixedData ; }
Takes normal data array from Datadogstatsd library and adds the Laravel prefix functionality

@param $data
@return array
Takes normal data array from Datadogstatsd library and adds the Laravel prefix functionality