original_string: public static function inTheme($theme)
      {
          if (is_string($theme)) {
              $theme = Theme::load($theme);
          }
  
          return static::on($theme->getDirName());
      }
code: public static function inTheme($theme)
      {
          if (is_string($theme)) {
              $theme = Theme::load($theme);
          }
  
          return static::on($theme->getDirName());
      }
code_tokens: public static function inTheme ( $ theme ) { if ( is_string ( $ theme ) ) { $ theme = Theme :: load ( $ theme ) ; } return static :: on ( $ theme -> getDirName ( ) ) ; }
docstring: Prepares the theme datasource for the model.
  @param \Cms\Classes\Theme $theme Specifies a parent theme.
  @return $this
docstring_tokens: Prepares the theme datasource for the model .