1 | <?php |
||
2 | |||
3 | if (stristr($device['sysDescr'], 'Linux')) { |
||
4 | [,,$version,$hardware] = explode(' ', $device['sysDescr']); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
Loading history...
|
|||
5 | } else { |
||
6 | [$hardware,,$version] = explode(',', $device['sysDescr']); |
||
7 | $hardware = preg_replace('/Mellanox /', '', $hardware); |
||
8 | } |
||
9 |