fix phpcs

This commit is contained in:
Nicolas Demangeat 2023-10-12 15:13:58 +02:00
parent 897cb081d7
commit 6df8c0373c
2 changed files with 3 additions and 3 deletions

View file

@ -19,8 +19,8 @@ class NetworksController extends Controller
$networks = Network::all();
foreach ($networks as $network) {
$infos = explode('.', $network->first_ip);
$min = $infos[3];
$max = explode('.', $network->last_ip)[3];
$min = $infos[3];
$max = explode('.', $network->last_ip)[3];
for ($i = $min; $i <= $max; $i++) {
$ips[] = "$infos[0].$infos[1].$infos[2].$i";
}

View file

@ -14,7 +14,7 @@ class CidrRule implements Rule
* @return boolean
* @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceBeforeLastUsed
*/
public function passes($attribute, $value)
public function passes(mixed $attribute, mixed $value)
{
// phpcs:enable
$m = true;