original_string: public static function getSubject()
      {
          $logger  = $GLOBALS['logger'];
          $app     = $GLOBALS['app'];
          $subject = $app->getSubject();
          $logger->debug('Subject authentication status = '.$subject->isAuthenticated());
          if ($subject === null) {
              $subject = Subject::createBuilder()->build();
              $app->setSubject($subject);
          }
  
          return $subject;
  
      }
code: public static function getSubject()
      {
          $logger  = $GLOBALS['logger'];
          $app     = $GLOBALS['app'];
          $subject = $app->getSubject();
          $logger->debug('Subject authentication status = '.$subject->isAuthenticated());
          if ($subject === null) {
              $subject = Subject::createBuilder()->build();
              $app->setSubject($subject);
          }
  
          return $subject;
  
      }
code_tokens: public static function getSubject ( ) { $ logger = $ GLOBALS [ 'logger' ] ; $ app = $ GLOBALS [ 'app' ] ; $ subject = $ app -> getSubject ( ) ; $ logger -> debug ( 'Subject authentication status = ' . $ subject -> isAuthenticated ( ) ) ; if ( $ subject === null ) { $ subject = Subject :: createBuilder ( ) -> build ( ) ; $ app -> setSubject ( $ subject ) ; } return $ subject ; }
docstring: getSubject Convienience method to retrieve the subject.
  Subject is always retrieved from applicationContext.
  If no subject is found, then a new subject is created with default properties.
  
  @static
  @access public
  @return void
docstring_tokens: getSubject Convienience method to retrieve the subject . Subject is always retrieved from applicationContext . If no subject is found then a new subject is created with default properties .