fix phpcs
This commit is contained in:
parent
897cb081d7
commit
6df8c0373c
2 changed files with 3 additions and 3 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue