Code Duplication    Length = 9-9 lines in 2 locations

src/SubMuncher.php 2 locations

@@ 136-144 (lines=9) @@
133
     * @param string[] $subnetsArray
134
     * @param int $max
135
     */
136
    public static function consolidate_subnets($subnetsArray, $max = null)
137
    {
138
        $ips = [];
139
        foreach ($subnetsArray as $subnet) {
140
            $ips = array_merge($ips, Util::cidr_to_ips_array($subnet));
141
        }
142
143
        return self::consolidate($ips, $max);
144
    }
145
146
    /**
147
     * Function to figure out the least problematic subnets to combine based on
@@ 255-263 (lines=9) @@
252
     * @param int|null $max
253
     * @return array
254
     */
255
    public static function consolidate_subnets_verbose($subnetsArray, $max = null)
256
    {
257
        $ips = [];
258
        foreach ($subnetsArray as $subnet) {
259
            $ips = array_merge($ips, Util::cidr_to_ips_array($subnet));
260
        }
261
262
        return self::consolidate_verbose($ips, $max);
263
    }
264
}
265