for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BiffBangPow\SSMonitor\Client\Core;
trait ClientCommon
{
/**
* Get the client name/identifier for this client module
* @return string
* @throws \Exception
*/
public function getClientName(): string
if ($this->clientName === '') {
throw new \Exception("No client name defined for monitoring client");
}
return $this->clientName;
* Get the friendly name for this client module
public function getClientTitle(): string
if ($this->config()->get('client_title')) {
config()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
if ($this->/** @scrutinizer ignore-call */ config()->get('client_title')) {
return $this->config()->get('client_title');
return $this->getClientName();