original_string: public static function getSimpleAnnouncement(
          $announcementPathFile=Null
      ) {
  
          // If you modify this default path, make sure you use the right kind of slash
          if ( ! $announcementPathFile) {
              $announcementPathFile = '/data/ssp-announcement.php';
          }
  
          if ( ! file_exists($announcementPathFile)) {
              return Null;
          }
  
          //  Note: This will not actually catch errors in the included file
          try {
              $announcement = include $announcementPathFile;
          } catch (Exception $e) {
              return Null;
          }
  
          if ( ! is_string($announcement)) {
              return Null;
          }
  
          return $announcement;
  
      }
code: public static function getSimpleAnnouncement(
          $announcementPathFile=Null
      ) {
  
          // If you modify this default path, make sure you use the right kind of slash
          if ( ! $announcementPathFile) {
              $announcementPathFile = '/data/ssp-announcement.php';
          }
  
          if ( ! file_exists($announcementPathFile)) {
              return Null;
          }
  
          //  Note: This will not actually catch errors in the included file
          try {
              $announcement = include $announcementPathFile;
          } catch (Exception $e) {
              return Null;
          }
  
          if ( ! is_string($announcement)) {
              return Null;
          }
  
          return $announcement;
  
      }
code_tokens: public static function getSimpleAnnouncement ( $ announcementPathFile = Null ) { // If you modify this default path, make sure you use the right kind of slash if ( ! $ announcementPathFile ) { $ announcementPathFile = '/data/ssp-announcement.php' ; } if ( ! file_exists ( $ announcementPathFile ) ) { return Null ; } //  Note: This will not actually catch errors in the included file try { $ announcement = include $ announcementPathFile ; } catch ( Exception $ e ) { return Null ; } if ( ! is_string ( $ announcement ) ) { return Null ; } return $ announcement ; }
docstring: Includes a php file and if it is only a string, returns that string. Otherwise, returns Null.
  
  @param string $announcementPathFile - optional for unit tests
  If missing, then the announcement file will be expected to be /data/ssp-announcement.php
  @return string|null
docstring_tokens: Includes a php file and if it is only a string returns that string . Otherwise returns Null .