original_string: public function read($bytes = false, $mode = 'rb', $force = false)
      {
          if ($bytes === false && $this->lock === null) {
              return file_get_contents($this->path);
          }
          if ($this->open($mode, $force) === false) {
              return false;
          }
          if ($this->lock !== null && flock($this->handle, LOCK_SH) === false) {
              return false;
          }
          if (is_int($bytes)) {
              return fread($this->handle, $bytes);
          }
  
          $data = '';
          while (!feof($this->handle)) {
              $data .= fgets($this->handle, 4096);
          }
  
          if ($this->lock !== null) {
              flock($this->handle, LOCK_UN);
          }
          if ($bytes === false) {
              $this->close();
          }
  
          return trim($data);
      }
code: public function read($bytes = false, $mode = 'rb', $force = false)
      {
          if ($bytes === false && $this->lock === null) {
              return file_get_contents($this->path);
          }
          if ($this->open($mode, $force) === false) {
              return false;
          }
          if ($this->lock !== null && flock($this->handle, LOCK_SH) === false) {
              return false;
          }
          if (is_int($bytes)) {
              return fread($this->handle, $bytes);
          }
  
          $data = '';
          while (!feof($this->handle)) {
              $data .= fgets($this->handle, 4096);
          }
  
          if ($this->lock !== null) {
              flock($this->handle, LOCK_UN);
          }
          if ($bytes === false) {
              $this->close();
          }
  
          return trim($data);
      }
code_tokens: public function read ( $ bytes = false , $ mode = 'rb' , $ force = false ) { if ( $ bytes === false && $ this -> lock === null ) { return file_get_contents ( $ this -> path ) ; } if ( $ this -> open ( $ mode , $ force ) === false ) { return false ; } if ( $ this -> lock !== null && flock ( $ this -> handle , LOCK_SH ) === false ) { return false ; } if ( is_int ( $ bytes ) ) { return fread ( $ this -> handle , $ bytes ) ; } $ data = '' ; while ( ! feof ( $ this -> handle ) ) { $ data .= fgets ( $ this -> handle , 4096 ) ; } if ( $ this -> lock !== null ) { flock ( $ this -> handle , LOCK_UN ) ; } if ( $ bytes === false ) { $ this -> close ( ) ; } return trim ( $ data ) ; }
docstring: Return the contents of this file as a string.
  
  @param string|bool $bytes where to start
  @param string $mode A `fread` compatible mode.
  @param bool $force If true then the file will be re-opened even if its already opened, otherwise it won't
  @return string|false string on success, false on failure
docstring_tokens: Return the contents of this file as a string .