private function automate($viewVars)
    {
        $rawDataObj = new \stdClass();
        foreach ($viewVars as $key => $var) {
            $rawDataObj->$key = $var;
            $viewVars[$key]   = $this->escape($var);
        }
        $viewVars['raws'] = $rawDataObj;

        return $viewVars;
    }
private function automate($viewVars)
    {
        $rawDataObj = new \stdClass();
        foreach ($viewVars as $key => $var) {
            $rawDataObj->$key = $var;
            $viewVars[$key]   = $this->escape($var);
        }
        $viewVars['raws'] = $rawDataObj;

        return $viewVars;
    }
private function automate ( $ viewVars ) { $ rawDataObj = new \ stdClass ( ) ; foreach ( $ viewVars as $ key => $ var ) { $ rawDataObj -> $ key = $ var ; $ viewVars [ $ key ] = $ this -> escape ( $ var ) ; } $ viewVars [ 'raws' ] = $ rawDataObj ; return $ viewVars ; }
It divides the processing by the type of variable

@param array $viewVars variables before escape
@return array $viewVars variables after escape
It divides the processing by the type of variable