original_string: protected function _createViewblock($data)
      {
          $output = '';
          foreach ($data as $key => $type) {
              if ($type === 'element') {
                  $output = $this->element($key);
              } elseif ($type === 'Html::css') {
                  $output .= $this->Html->css($key);
              } elseif ($type === 'Html::script') {
                  $output .= $this->Html->script($key);
              } else {
                  $output .= $key;
              }
          }
  
          return $output;
      }
code: protected function _createViewblock($data)
      {
          $output = '';
          foreach ($data as $key => $type) {
              if ($type === 'element') {
                  $output = $this->element($key);
              } elseif ($type === 'Html::css') {
                  $output .= $this->Html->css($key);
              } elseif ($type === 'Html::script') {
                  $output .= $this->Html->script($key);
              } else {
                  $output .= $key;
              }
          }
  
          return $output;
      }
code_tokens: protected function _createViewblock ( $ data ) { $ output = '' ; foreach ( $ data as $ key => $ type ) { if ( $ type === 'element' ) { $ output = $ this -> element ( $ key ) ; } elseif ( $ type === 'Html::css' ) { $ output .= $ this -> Html -> css ( $ key ) ; } elseif ( $ type === 'Html::script' ) { $ output .= $ this -> Html -> script ( $ key ) ; } else { $ output .= $ key ; } } return $ output ; }
docstring: Constructs a ViewBlock from an array of configured data
  
  @param array $data ViewBlock data
  
  @return string
docstring_tokens: Constructs a ViewBlock from an array of configured data