original_string: public static function getActiveTheme()
      {
          if (self::$activeThemeCache !== false) {
              return self::$activeThemeCache;
          }
  
          $theme = static::load(static::getActiveThemeCode());
  
          if (!File::isDirectory($theme->getPath())) {
              return self::$activeThemeCache = null;
          }
  
          return self::$activeThemeCache = $theme;
      }
code: public static function getActiveTheme()
      {
          if (self::$activeThemeCache !== false) {
              return self::$activeThemeCache;
          }
  
          $theme = static::load(static::getActiveThemeCode());
  
          if (!File::isDirectory($theme->getPath())) {
              return self::$activeThemeCache = null;
          }
  
          return self::$activeThemeCache = $theme;
      }
code_tokens: public static function getActiveTheme ( ) { if ( self :: $ activeThemeCache !== false ) { return self :: $ activeThemeCache ; } $ theme = static :: load ( static :: getActiveThemeCode ( ) ) ; if ( ! File :: isDirectory ( $ theme -> getPath ( ) ) ) { return self :: $ activeThemeCache = null ; } return self :: $ activeThemeCache = $ theme ; }
docstring: Returns the active theme object.
  @return \Cms\Classes\Theme Returns the loaded theme object.
  If the theme doesn't exist, returns null.
docstring_tokens: Returns the active theme object .