protected function mapData(array $data) {
        $config = $this->loadConfig();

        foreach ($data as $k => $d) {
            if (!empty($config['diagnostic']['customInput'][$k])) {
                $data[$config['diagnostic']['customInput'][$k]] = $d;
                unset($data[$k]);
            }
        }

        return $data;
    }
protected function mapData(array $data) {
        $config = $this->loadConfig();

        foreach ($data as $k => $d) {
            if (!empty($config['diagnostic']['customInput'][$k])) {
                $data[$config['diagnostic']['customInput'][$k]] = $d;
                unset($data[$k]);
            }
        }

        return $data;
    }
protected function mapData ( array $ data ) { $ config = $ this -> loadConfig ( ) ; foreach ( $ data as $ k => $ d ) { if ( ! empty ( $ config [ 'diagnostic' ] [ 'customInput' ] [ $ k ] ) ) { $ data [ $ config [ 'diagnostic' ] [ 'customInput' ] [ $ k ] ] = $ d ; unset ( $ data [ $ k ] ) ; } } return $ data ; }
Map custom input data from the 'customInput' configuration.

@param array $data
@return array
Map custom input data from the customInput configuration .