original_string: public function layout($name = null, $variable = 'content')
      {
          $this->layout = array(
              'name' => $name ?: $this->defaultLayout,
              'variable' => $variable
          );
          return $this;
      }
code: public function layout($name = null, $variable = 'content')
      {
          $this->layout = array(
              'name' => $name ?: $this->defaultLayout,
              'variable' => $variable
          );
          return $this;
      }
code_tokens: public function layout ( $ name = null , $ variable = 'content' ) { $ this -> layout = array ( 'name' => $ name ? : $ this -> defaultLayout , 'variable' => $ variable ) ; return $ this ; }
docstring: Set layout file for current view
  
  @param string $name The name of layout template
  @param string $variable The variable name of layout content
  @return $this
docstring_tokens: Set layout file for current view