Skip to content

Commit 6661bc9

Browse files
committed
Various minor performance improvements.
1 parent 08826cf commit 6661bc9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Aggregator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Aggregator v1.3.5 (last modified: 2026.03.17).
3+
* Aggregator v1.3.6 (last modified: 2026.03.17).
44
* @link https://github.com/CIDRAM/Aggregator
55
*
66
* Description: A stand-alone class implementation of the IPv4+IPv6 IP+CIDR
@@ -187,7 +187,7 @@ private function stripInvalidCharactersAndSort()
187187
if (!\is_array($this->Output)) {
188188
$this->Output = \explode("\n", \strtolower(\trim(\str_replace("\r", '', $this->Output))));
189189
}
190-
$Count = count($this->Output);
190+
$Count = \count($this->Output);
191191
if (isset($this->callbacks['newParse']) && \is_callable($this->callbacks['newParse'])) {
192192
$this->callbacks['newParse']($Count);
193193
}

src/Expand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Aggregator v1.3.5 (last modified: 2026.03.17).
3+
* Aggregator v1.3.6 (last modified: 2026.03.17).
44
* @link https://github.com/CIDRAM/Aggregator
55
*
66
* Description: A stand-alone class implementation of the IPv4+IPv6 IP+CIDR
@@ -110,7 +110,7 @@ public function expandIpv6($Addr, $ValidateOnly = false, $FactorLimit = 128)
110110
unset($Arr, $Key);
111111
}
112112
$NAddr = \explode(':', $NAddr);
113-
if (count($NAddr) !== 8) {
113+
if (\count($NAddr) !== 8) {
114114
return false;
115115
}
116116
for ($i = 0; $i < 8; $i++) {

0 commit comments

Comments
 (0)