for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CodeblogPro\GeoLocation\Application\GeoIpRemoteServices;
use CodeblogPro\GeoLocation\Application\Interfaces\RemoteServicesOptions;
use Illuminate\Support\Facades\Config;
class MaxMindOptions implements RemoteServicesOptions
{
public function isEnabled(): bool
return (bool)(Config('geolocation.maxmind.enabled') ?? false);
Config
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return (bool)(/** @scrutinizer ignore-call */ Config('geolocation.maxmind.enabled') ?? false);
}
public function getSort(): int
return (int)(Config('geolocation.maxmind.sort') ?? 0);
return (int)(/** @scrutinizer ignore-call */ Config('geolocation.maxmind.sort') ?? 0);
public function getKey(): string
return 'Token ' . Config('geolocation.maxmind.key');
return 'Token ' . /** @scrutinizer ignore-call */ Config('geolocation.maxmind.key');
public function getUrl(): string
return Config('geolocation.maxmind.url');
return /** @scrutinizer ignore-call */ Config('geolocation.maxmind.url');