src/RequestLogger/RequestLoggerMiddleware.php
Method getValue
has 66 lines of code (exceeds 60 allowed). Consider refactoring. Open
Open
private function getValue(string $key)
{
switch($key) {
// User
case 'session_id':
Avoid too many return
statements within this method. Open
Open
return $this->request->header('user-agent');
Avoid too many return
statements within this method. Open
Open
return Meta::toJson();