Misc cleanup (#12758)

* Fix Docblock

* Misc

* Parameter #2 $callback of function array_filter expects (callable(mixed, mixed): bool)|null, 'strlen' given

* Parameter #2 $data of function hash_hmac expects string, int given

* Unreachable statement - code above always terminates.

* Update Device.php
This commit is contained in:
Jellyfrog
2021-04-20 12:47:22 +02:00
committed by GitHub
parent cea6f13bf5
commit a8c8a9a4a2
12 changed files with 24 additions and 17 deletions
@@ -110,7 +110,7 @@ class SyslogController extends TableController
/**
* @param int $syslog_priority
* @return string|void
* @return string
*/
private function priorityLabel($syslog_priority)
{
@@ -131,6 +131,8 @@ class SyslogController extends TableController
return 'label-danger'; //Alert
case 'emerg':
return 'label-danger'; //Emergency
default:
return '';
}
}