From 12f0121fcfd5fe2fd8bb4c30887f9198cf9873ca Mon Sep 17 00:00:00 2001 From: Caleb Mazalevskis Date: Thu, 11 Jun 2020 01:12:35 +0800 Subject: [PATCH] v1.3.1 Slightly improved some PHPDoc annotations. --- Changelog.txt | 10 ++++++ src/Aggregator.php | 86 +++++++++++++++++++++++++++++++++++----------- 2 files changed, 75 insertions(+), 21 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 0f5206b..2d291c9 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -7,6 +7,11 @@ Versioning guidelines for SemVer can be found at: https://semver.org/ === Changes made since last versioned release === +(none) + +=== Version/Release 1.3.1 === +PATCH RELEASE. + - [2020.01.11; Bug-fix; Maikuolan]: Syntactically invalid IPv6 addresses could be potentially accepted or produced by the aggregator in some obscure circumstances due an insufficiently bound regular expression; Fixed. @@ -21,6 +26,11 @@ Versioning guidelines for SemVer can be found at: https://semver.org/ the aggregate method (whether the passed parameter is a string or an array is now checked by stripInvalidCharactersAndSort, instead of it being assumed). +- [2020.06.11; Maikuolan]: Slightly improved some PHPDoc annotations. + +Caleb M (Maikuolan), +June 11, 2020. + === Version/Release 1.3.0 === MINOR RELEASE. diff --git a/src/Aggregator.php b/src/Aggregator.php index ab809e8..094a999 100644 --- a/src/Aggregator.php +++ b/src/Aggregator.php @@ -1,6 +1,6 @@ Output; } - /** Strips invalid characters from lines and sorts entries. */ + /** + * Strips invalid characters from lines and sorts entries. + * + * @param string|array + */ private function stripInvalidCharactersAndSort(&$In) { if (!is_array($In)) { @@ -338,7 +370,11 @@ private function stripInvalidCharactersAndSort(&$In) $In = implode("\n", $In); } - /** Strips invalid ranges and subordinates. */ + /** + * Strips invalid ranges and subordinates. + * + * @param string + */ private function stripInvalidRangesAndSubs(&$In) { if (isset($this->callbacks['newParse']) && is_callable($this->callbacks['newParse'])) { @@ -428,7 +464,11 @@ private function stripInvalidRangesAndSubs(&$In) } } - /** Merges ranges. */ + /** + * Merges ranges. + * + * @param string + */ private function mergeRanges(&$In) { while (true) { @@ -478,7 +518,11 @@ private function mergeRanges(&$In) } } - /** Optionally converts output to netmask notation. */ + /** + * Optionally converts output to netmask notation. + * + * @param string + */ private function convertToNetmasks(&$In) { if (isset($this->callbacks['newParse']) && is_callable($this->callbacks['newParse'])) {