librenms/app/Models
Fehler12 cbe2ba55ce
Added empty string check (#15235)
* Added empty string check

* replaced tabs with spaces

replaced tabs with spaces

* Removed '(', ')' and enlarged if clause

* Added one space and removed an empty row

* removed is_null

Removed is_null check as static code analysis says that this variable cannot be null at this time

* compact form

* handle spaces

In case the sysName is " " (one space). Good to trim anyway.

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2023-08-21 00:17:25 +02:00
..
AccessPoint.php Polling cleanup, fix PHP warnings (#13460) 2021-11-14 14:58:13 -06:00
Alert.php Push Notifications (Mobile and PC) (#13277) 2021-10-06 07:29:47 -05:00
AlertLog.php AlertLog model cast details (#15143) 2023-07-24 17:01:07 +02:00
AlertRule.php Fix AlertRule relationships (#14500) 2022-10-24 09:54:59 -05:00
AlertSchedule.php Miscellaneous fixes (#15162) 2023-07-26 01:08:10 +02:00
AlertTemplate.php Laravel 9.x Shift (#14504) 2023-04-17 06:51:35 -05:00
AlertTemplateMap.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
AlertTransport.php Alert transport cleanup, no_proxy support and other proxy cleanups (#14763) 2023-05-23 09:25:17 -05:00
ApiToken.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
Application.php add the ability for storing app data to prevent spamming of the event log via via component usage (#14087) 2022-07-22 16:01:55 -05:00
AuthLog.php Laravel 9.x Shift (#14504) 2023-04-17 06:51:35 -05:00
Availability.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
BaseModel.php Improve the efficiency of some queries (#13974) 2022-05-16 09:57:58 +02:00
BgpPeer.php Fix VRP duplicate BGP Peers (#14431) 2022-10-11 20:26:56 +02:00
Bill.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
Callback.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
CefSwitching.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
Component.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
ComponentPref.php Apply fixes from StyleCI (#12117) 2020-09-21 14:54:51 +02:00
ComponentStatusLog.php Apply fixes from StyleCI (#12117) 2020-09-21 14:54:51 +02:00
Config.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
Dashboard.php Dashboard code cleanup (#13996) 2022-05-31 08:08:40 -05:00
Device.php Added empty string check (#15235) 2023-08-21 00:17:25 +02:00
DeviceAttrib.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
DeviceGraph.php Fix poller enabling graphs for display (#11743) 2020-05-30 17:42:50 -05:00
DeviceGroup.php Fixes #14975 (Widget part) (#15076) 2023-06-18 22:22:41 -05:00
DeviceOutage.php Connectivity Helper to check and record device reachability (#13315) 2021-10-03 22:45:10 -05:00
DevicePerf.php Connectivity Helper to check and record device reachability (#13315) 2021-10-03 22:45:10 -05:00
DeviceRelatedModel.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
DiskIo.php Apply fixes from StyleCI (#12117) 2020-09-21 14:54:51 +02:00
EntityState.php Oxidized update and Device remove (#13730) 2022-01-29 21:09:05 -06:00
EntPhysical.php Apply fixes from StyleCI (#12117) 2020-09-21 14:54:51 +02:00
Eventlog.php Severity Enum (#14620) 2023-08-05 12:12:36 -05:00
GraphType.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
HrDevice.php Apply fixes from StyleCI (#12117) 2020-09-21 14:54:51 +02:00
HrSystem.php hrsystem write fix (#13314) 2021-10-02 18:03:24 -05:00
IpsecTunnel.php Device page dropdown hero button, Performance -> Latency (#11328) 2020-04-29 07:25:13 -05:00
Ipv4Address.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
Ipv4Mac.php Type hint all device model relations (#12686) 2021-03-31 17:28:47 +02:00
Ipv4Network.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
Ipv6Address.php ipv6 discovery switch to new DB syntax (#13591) 2021-12-01 22:52:37 -06:00
Ipv6Network.php ipv6 discovery switch to new DB syntax (#13591) 2021-12-01 22:52:37 -06:00
IsisAdjacency.php Add ISIS discovery and polling for iosxe devices (#13880) 2022-04-08 16:33:41 -05:00
LoadbalancerRserver.php Device page dropdown hero button, Performance -> Latency (#11328) 2020-04-29 07:25:13 -05:00
LoadbalancerVserver.php Device page dropdown hero button, Performance -> Latency (#11328) 2020-04-29 07:25:13 -05:00
Location.php Allows GEO lookup with detailed internal Location information wrapped inside parentheses. (#14799) 2023-03-18 22:07:52 -05:00
MacAccounting.php Delete ports via eloquent event (#11354) 2020-04-16 09:19:58 -05:00
MefInfo.php Device page dropdown hero button, Performance -> Latency (#11328) 2020-04-29 07:25:13 -05:00
Mempool.php Fix more divide by zero issues (#14954) 2023-04-11 13:44:45 -05:00
Mpls.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
MplsLsp.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
MplsLspPath.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
MplsSap.php Apply fixes from StyleCI (#15101) 2023-06-13 13:35:00 +02:00
MplsSdp.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
MplsSdpBind.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
MplsService.php Apply fixes from StyleCI (#15101) 2023-06-13 13:35:00 +02:00
MplsTunnelArHop.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
MplsTunnelCHop.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
MuninPlugin.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
NetscalerVserver.php Device page dropdown hero button, Performance -> Latency (#11328) 2020-04-29 07:25:13 -05:00
Notification.php Disable plugins that have errors (#14383) 2022-09-25 22:47:58 -05:00
NotificationAttrib.php Type hint all device model relations (#12686) 2021-03-31 17:28:47 +02:00
OspfArea.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
OspfInstance.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
OspfNbr.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
OspfPort.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
Package.php Rewrite agent packages parsing code (#13840) 2022-03-12 14:39:58 -06:00
Plugin.php New plugin system based on Laravel Package Development (#12998) 2021-10-19 06:53:28 -05:00
Poller.php New Poller validations (#14148) 2022-08-02 16:02:37 -05:00
PollerCluster.php New Poller validations (#14148) 2022-08-02 16:02:37 -05:00
PollerClusterStat.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
PollerGroup.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
Port.php Laravel 10.x Shift (#14995) 2023-05-24 22:21:54 +02:00
PortAdsl.php Migrate xDSL code to module, and add support for VDSL2 MIB (#14207) 2022-09-07 19:29:17 -05:00
PortGroup.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
PortRelatedModel.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
PortsFdb.php Type hint model relations (#12673) 2021-03-30 11:14:34 +02:00
PortsNac.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
PortStatistic.php Delete ports via eloquent event (#11354) 2020-04-16 09:19:58 -05:00
PortStp.php Stp module rewrite (#13570) 2022-01-30 16:28:18 -06:00
PortVdsl.php Migrate xDSL code to module, and add support for VDSL2 MIB (#14207) 2022-09-07 19:29:17 -05:00
PortVlan.php Check if vlan->port exists (#13305) 2021-10-01 07:42:27 -05:00
PrinterSupply.php New module add juniper rpm support + reimplementation of cisco-sla module (#12799) 2021-06-11 13:48:33 -05:00
Process.php Oxidized update and Device remove (#13730) 2022-01-29 21:09:05 -06:00
Processor.php Apply fixes from StyleCI (#12117) 2020-09-21 14:54:51 +02:00
Pseudowire.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
Route.php Type hint all device model relations (#12686) 2021-03-31 17:28:47 +02:00
Sensor.php Teleste Luminato ports & qam/asi output sensors & yaml (#13616) 2022-01-08 18:17:08 +01:00
Service.php Apply fixes from StyleCI (#13208) 2021-09-08 23:35:56 +02:00
ServiceTemplate.php Laravel 9.x Shift (#14504) 2023-04-17 06:51:35 -05:00
Sla.php New module add juniper rpm support + reimplementation of cisco-sla module (#12799) 2021-06-11 13:48:33 -05:00
StateTranslation.php StateTranslation model (#12751) 2021-04-14 07:33:41 -05:00
Storage.php Refactor eloquent base (#9716) 2019-01-22 17:04:28 -06:00
Stp.php Stp module rewrite (#13570) 2022-01-30 16:28:18 -06:00
Syslog.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
TnmsneInfo.php Convert OS discovery to new style (#12099) 2020-09-18 15:12:07 +02:00
User.php Error reporting (#14190) 2022-08-24 00:33:28 +02:00
UserPref.php PHPStan: Enable more checks (#14318) 2022-09-09 07:08:06 -05:00
UserWidget.php Dashboard code cleanup (#13996) 2022-05-31 08:08:40 -05:00
Vlan.php Mikrotik vlans discovery, v2 (#13427) 2021-10-26 18:31:44 -05:00
Vminfo.php Convert string references to ::class (#14508) 2022-10-25 08:31:46 -05:00
Vrf.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
VrfLite.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00
WirelessSensor.php Apply fixes from StyleCI (#13224) 2021-09-10 20:09:53 +02:00