for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
if (! function_exists('variable')) {
/**
* @param $name
* @param null $default
$default
null
* @param null $locale
$locale
* @return mixed
*/
function variable($name, $default = null, $langcode = null)
{
return app(\Fomvasss\Variable\VariableManagerContract::class)
app
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return /** @scrutinizer ignore-call */ app(\Fomvasss\Variable\VariableManagerContract::class)
->setLang($langcode)
->get($name, $default);
}