Apply fixes from StyleCI (#14899)

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Jellyfrog
2023-03-13 22:32:22 +01:00
committed by GitHub
parent 0e322ae5d5
commit 68e0b3df28
220 changed files with 2050 additions and 2035 deletions

View File

@@ -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));