Issues (2963)

includes/polling/os/teradici-pcoip.inc.php (1 issue)

1
<?php
2
3
//SNMPv2-SMI::enterprises.25071.1.2.6.1.1.5.1 = STRING: "TERA2240 revision 1.0 (512 MB)"
4
//SNMPv2-SMI::enterprises.25071.1.2.6.1.1.6.1 = STRING: "AHK TERA2240 4x DP Host Card Copper"
5
//SNMPv2-SMI::enterprises.25071.1.2.6.1.1.7.1 = STRING: "DS12144FA"
6
//SNMPv2-SMI::enterprises.25071.1.2.6.1.1.8.1 = STRING: "DXM13-9 PV2.0.D"
7
//SNMPv2-SMI::enterprises.25071.1.2.6.1.1.9.1 = STRING: "4.7.5"
8
9
$hardware = trim(snmp_get($device, '1.3.6.1.4.1.25071.1.2.6.1.1.5.1', '-OQv'), '" ');
0 ignored issues
show
It seems like snmp_get($device, '1.3.6...1.2.6.1.1.5.1', '-OQv') can also be of type false; however, parameter $string of trim() does only seem to accept string, maybe add an additional type check? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

9
$hardware = trim(/** @scrutinizer ignore-type */ snmp_get($device, '1.3.6.1.4.1.25071.1.2.6.1.1.5.1', '-OQv'), '" ');
Loading history...
10
$version = trim(snmp_get($device, '1.3.6.1.4.1.25071.1.2.6.1.1.9.1', '-OQv'), '" ');
11
$serial = trim(snmp_get($device, '1.3.6.1.4.1.25071.1.2.6.1.1.7.1', '-OQv'), '" ');
12