original_string: public static function add_line(string $log) : string {
          if (empty(self::$taskloginfo)) {
              return $log;
          }
  
          if (empty(self::$fh)) {
              return $log;
          }
  
          if (self::is_current_output_buffer()) {
              fwrite(self::$fh, $log);
          }
  
          return $log;
      }
code: public static function add_line(string $log) : string {
          if (empty(self::$taskloginfo)) {
              return $log;
          }
  
          if (empty(self::$fh)) {
              return $log;
          }
  
          if (self::is_current_output_buffer()) {
              fwrite(self::$fh, $log);
          }
  
          return $log;
      }
code_tokens: public static function add_line ( string $ log ) : string { if ( empty ( self :: $ taskloginfo ) ) { return $ log ; } if ( empty ( self :: $ fh ) ) { return $ log ; } if ( self :: is_current_output_buffer ( ) ) { fwrite ( self :: $ fh , $ log ) ; } return $ log ; }
docstring: Add a log record to the task log.
  
  @param   string  $log
  @return  string
docstring_tokens: Add a log record to the task log .