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 SypexGeoOptions implements RemoteServicesOptions
{
public function isEnabled(): bool
return (bool)(Config('geolocation.sypex.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.sypex.enabled') ?? false);
}
public function getSort(): int
return (int)(Config('geolocation.sypex.sort') ?? 0);
return (int)(/** @scrutinizer ignore-call */ Config('geolocation.sypex.sort') ?? 0);
public function getKey(): string
return 'Token ' . Config('geolocation.sypex.key');
return 'Token ' . /** @scrutinizer ignore-call */ Config('geolocation.sypex.key');
public function getUrl(): string
return Config('geolocation.sypex.url');
return /** @scrutinizer ignore-call */ Config('geolocation.sypex.url');