src/Import/ImportAnalytics.php
protected function isMetricValid($metric) {
        if (!isset($metric) || !is_array($metric) 
                || !isset($metric["influx"]) || !isset($metric["influx"]["tags"]) 
                || !isset($metric["mysql"]) || !isset($metric["mysql"]["query"])) {
                    return false;
        }
        return true;
    }
protected function isMetricValid($metric) {
        if (!isset($metric) || !is_array($metric) 
                || !isset($metric["influx"]) || !isset($metric["influx"]["tags"]) 
                || !isset($metric["mysql"]) || !isset($metric["mysql"]["query"])) {
                    return false;
        }
        return true;
    }
protected function isMetricValid ( $ metric ) { if ( ! isset ( $ metric ) || ! is_array ( $ metric ) || ! isset ( $ metric [ "influx" ] ) || ! isset ( $ metric [ "influx" ] [ "tags" ] ) || ! isset ( $ metric [ "mysql" ] ) || ! isset ( $ metric [ "mysql" ] [ "query" ] ) ) { return false ; } return true ; }
Check if metric is valid

@param array $metric
@return boolean
Check if metric is valid