original_string: protected function write($data, $log_type)
      {
          return file_put_contents($this->getLogPath($log_type)
              .date('Y_m_d').'.log', "\n\n".\date('Y/m/d H:i:s')
              ."\t".$this->agent_str
              ."\n".$data, \FILE_APPEND);
      }
code: protected function write($data, $log_type)
      {
          return file_put_contents($this->getLogPath($log_type)
              .date('Y_m_d').'.log', "\n\n".\date('Y/m/d H:i:s')
              ."\t".$this->agent_str
              ."\n".$data, \FILE_APPEND);
      }
code_tokens: protected function write ( $ data , $ log_type ) { return file_put_contents ( $ this -> getLogPath ( $ log_type ) . date ( 'Y_m_d' ) . '.log' , "\n\n" . \ date ( 'Y/m/d H:i:s' ) . "\t" . $ this -> agent_str . "\n" . $ data , \ FILE_APPEND ) ; }
docstring: Writes the data to file
  @param string $data The data to be written
  @param string $log_type The log_type being written to
  @return boolean If the data was written or not
docstring_tokens: Writes the data to file