Issues (27)

src/helpers.php (3 issues)

1
<?php
2
3
if (! function_exists('variable')) {
4
    /**
5
     * @param $name
6
     * @param null $default
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $default is correct as it would always require null to be passed?
Loading history...
7
     * @param null $locale
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $locale is correct as it would always require null to be passed?
Loading history...
8
     * @return mixed
9
     */
10
    function variable($name, $default = null, $langcode = null)
11
    {
12
        return app(\Fomvasss\Variable\VariableManagerContract::class)
0 ignored issues
show
The function app was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

12
        return /** @scrutinizer ignore-call */ app(\Fomvasss\Variable\VariableManagerContract::class)
Loading history...
13
            ->setLang($langcode)
14
            ->get($name, $default);
15
    }
16
}