original_string: public function formatTime($time)
      {
          if ($this->timeFormat === null || $this->timeFormat === false) {
              return $time;
          }
  
          $dateTime = new \DateTime($time);
  
          if ($this->timeFormat === true) {
              return $dateTime;
          }
  
          return $dateTime->format($this->timeFormat);
      }
code: public function formatTime($time)
      {
          if ($this->timeFormat === null || $this->timeFormat === false) {
              return $time;
          }
  
          $dateTime = new \DateTime($time);
  
          if ($this->timeFormat === true) {
              return $dateTime;
          }
  
          return $dateTime->format($this->timeFormat);
      }
code_tokens: public function formatTime ( $ time ) { if ( $ this -> timeFormat === null || $ this -> timeFormat === false ) { return $ time ; } $ dateTime = new \ DateTime ( $ time ) ; if ( $ this -> timeFormat === true ) { return $ dateTime ; } return $ dateTime -> format ( $ this -> timeFormat ) ; }
docstring: Converts time to previously set format.
  
  @param string $time
  
  @return \DateTime|string
docstring_tokens: Converts time to previously set format .