diff --git a/README.md b/README.md index 24a5ea3..221597d 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ $torrent->getInfoHash(?$binary); // return v2-infohash if there is one, otherw $torrent->getInfoHashs(?$binary); // return [TorrentFile::PROTOCOL_V1 => v1-infohash, TorrentFile::PROTOCOL_V2 => v2-infohash] $torrent->getInfoHashV1ForAnnounce(); // return the v1 info-hash in announce ( 20-bytes string ) $torrent->getInfoHashV2ForAnnounce(); // return the v2 (truncated) info-hash in announce -$torrent->getInfoHashsForAnnnounce(); // same as getInfoHashs() but in announce +$torrent->getInfoHashsForAnnounce(); // same as getInfoHashs() but in announce $torrent->getPieceLength(); // int diff --git a/src/TorrentFile.php b/src/TorrentFile.php index e576978..4051de6 100644 --- a/src/TorrentFile.php +++ b/src/TorrentFile.php @@ -422,7 +422,7 @@ public function getInfoHashV2ForAnnounce() /** * The 20-bytes truncated infohash */ - public function getInfoHashsForAnnnounce() + public function getInfoHashsForAnnounce() { return [ self::PROTOCOL_V1 => $this->getInfoHashV1ForAnnounce(), @@ -473,14 +473,6 @@ public function setSource($source) return $this->setInfoField('source', $source); } - /** - * @deprecated typo of function `setSource` - */ - public function setSouce($source) - { - return $this->setSource($source); - } - public function isPrivate() { return $this->getInfoField('private') === 1;