Global variable or function should never be used

More information: https://insight.symfony.com/what-we-analyse/php.use_global_variable_or_function

in helpers.php, line 4
  1. <?php
  2. if (! function_exists('setting')) {
  3. function setting($name, $locale = null, $default = null)

    setting() adds to the global scope. Prefer class properties or methods to let other developers know what this relates to.

    Time to fix: about 1 day
    Open Issue Permalink
    Last edited by Nicolas Widart
  4. {
  5. return app('setting.settings')->get($name, $locale, $default);
  6. }
  7. }
  • nwidart

    asd