original_string: public function prepareTheme()
      {
          $this->viewBuilder()->layout('default');
          if (!empty($this->request->params['prefix']) &&
              strtolower($this->request->params['prefix']) === 'admin'
          ) {
              $this->viewBuilder()->theme(option('back_theme'));
          } else {
              $this->viewBuilder()->theme(option('front_theme'));
          }
  
          if ($this->request->isAjax()) {
              $this->viewBuilder()->layout('ajax');
          }
  
          if ($this->request->isHome()) {
              $this->viewBuilder()->layout('home');
          }
  
          if ($this->request->isDashboard()) {
              $this->viewBuilder()->layout('dashboard');
          }
      }
code: public function prepareTheme()
      {
          $this->viewBuilder()->layout('default');
          if (!empty($this->request->params['prefix']) &&
              strtolower($this->request->params['prefix']) === 'admin'
          ) {
              $this->viewBuilder()->theme(option('back_theme'));
          } else {
              $this->viewBuilder()->theme(option('front_theme'));
          }
  
          if ($this->request->isAjax()) {
              $this->viewBuilder()->layout('ajax');
          }
  
          if ($this->request->isHome()) {
              $this->viewBuilder()->layout('home');
          }
  
          if ($this->request->isDashboard()) {
              $this->viewBuilder()->layout('dashboard');
          }
      }
code_tokens: public function prepareTheme ( ) { $ this -> viewBuilder ( ) -> layout ( 'default' ) ; if ( ! empty ( $ this -> request -> params [ 'prefix' ] ) && strtolower ( $ this -> request -> params [ 'prefix' ] ) === 'admin' ) { $ this -> viewBuilder ( ) -> theme ( option ( 'back_theme' ) ) ; } else { $ this -> viewBuilder ( ) -> theme ( option ( 'front_theme' ) ) ; } if ( $ this -> request -> isAjax ( ) ) { $ this -> viewBuilder ( ) -> layout ( 'ajax' ) ; } if ( $ this -> request -> isHome ( ) ) { $ this -> viewBuilder ( ) -> layout ( 'home' ) ; } if ( $ this -> request -> isDashboard ( ) ) { $ this -> viewBuilder ( ) -> layout ( 'dashboard' ) ; } }
docstring: Sets the theme to use.
  
  @return void
docstring_tokens: Sets the theme to use .