original_string: public static function getGlobalVars()
      {
          if (static::$globalVarCache !== null) {
              return static::$globalVarCache;
          }
  
          $vars = array_filter(ViewFacade::getShared(), function ($var) {
              return is_scalar($var) || is_array($var);
          });
  
          return static::$globalVarCache = $vars;
      }
code: public static function getGlobalVars()
      {
          if (static::$globalVarCache !== null) {
              return static::$globalVarCache;
          }
  
          $vars = array_filter(ViewFacade::getShared(), function ($var) {
              return is_scalar($var) || is_array($var);
          });
  
          return static::$globalVarCache = $vars;
      }
code_tokens: public static function getGlobalVars ( ) { if ( static :: $ globalVarCache !== null ) { return static :: $ globalVarCache ; } $ vars = array_filter ( ViewFacade :: getShared ( ) , function ( $ var ) { return is_scalar ( $ var ) || is_array ( $ var ) ; } ) ; return static :: $ globalVarCache = $ vars ; }
docstring: Returns shared view variables, this should be used for simple rendering cycles.
  Such as content blocks and mail templates.
  
  @return array
docstring_tokens: Returns shared view variables this should be used for simple rendering cycles . Such as content blocks and mail templates .