includes/html/pages/addhost.inc.php
File addhost.inc.php
has 344 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
use App\Actions\Device\ValidateDeviceAndCreate;
use LibreNMS\Config;
use LibreNMS\Enum\PortAssociationMode;
Line indented incorrectly; expected at least 24 spaces, found 22 Open
Open
echo "<option value=\"$algo\"" . ($enabled ?: ' disabled') . ">$algo</option>";
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 18 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 18 Open
Open
<?php
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 18 Open
Open
}//endif
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 18 Open
Open
?>
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 14 Open
Open
<?php } ?>
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 18 Open
Open
foreach (\LibreNMS\SNMPCapabilities::cryptoAlgoritms() as $algo => $enabled) {
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 18 Open
Open
?>
- Exclude checks
Line indented incorrectly; expected at least 24 spaces, found 22 Open
Open
echo "<option value=\"$algo\"" . ($enabled ?: ' disabled') . ">$algo</option>";
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 22 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 18 Open
Open
foreach (\LibreNMS\SNMPCapabilities::authAlgorithms() as $algo => $enabled) {
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 18 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 14 Open
Open
<?php if (! \LibreNMS\SNMPCapabilities::supportsSHA2()) {?>
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 14 Open
Open
<?php } ?>
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 22 Open
Open
foreach (dbFetchRows('SELECT `id`,`group_name` FROM `poller_groups` ORDER BY `group_name`') as $group) {
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 18 Open
Open
<?php
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 14 Open
Open
<?php if (! \LibreNMS\SNMPCapabilities::supportsAES256()) {?>
- Exclude checks
Closing brace indented incorrectly; expected 0 spaces, found 18 Open
Open
}//endif
- Exclude checks