Skip to content

Commit

Permalink
Apply fixes from StyleCI (#3)
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
nicko170 authored Aug 12, 2021
1 parent c4c7eba commit 53e6952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SNMP.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function parse(string $result): string | int | bool | null
$value = trim(substr($result, strpos($result, ':') + 1));

return match ($type) {
'STRING', 'OID', 'IpAddress' => trim($value, "\""),
'STRING', 'OID', 'IpAddress' => trim($value, '"'),
'INTEGER' => is_numeric($value) ? (int) $value : null,
'Timeticks' => (int) substr($value, 1, strrpos($value, ')') - 1),
'Counter32', 'Counter64', 'Gauge32' => (int) $value,
Expand Down

0 comments on commit 53e6952

Please sign in to comment.