mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#14899)
Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
@@ -155,7 +155,7 @@ class Rewrite
|
||||
*/
|
||||
public static function readableOUI($mac)
|
||||
{
|
||||
$cached = Cache::get('OUIDB-' . (substr($mac, 0, 6)), '');
|
||||
$cached = Cache::get('OUIDB-' . substr($mac, 0, 6), '');
|
||||
if ($cached == 'IEEE Registration Authority') {
|
||||
// Then we may have a shorter prefix, so let's try them one ater the other, ordered by probability
|
||||
return Cache::get('OUIDB-' . substr($mac, 0, 9)) ?: Cache::get('OUIDB-' . substr($mac, 0, 7));
|
||||
|
Reference in New Issue
Block a user