apply php linter
This commit is contained in:
parent
f53ebebeb2
commit
0c342094b6
|
@ -3,9 +3,9 @@
|
||||||
namespace Plugin\Factory;
|
namespace Plugin\Factory;
|
||||||
|
|
||||||
use Twig\Environment;
|
use Twig\Environment;
|
||||||
use Twig\Loader\FilesystemLoader;
|
|
||||||
use Twig\Extension\StringLoaderExtension;
|
|
||||||
use Twig\Extension\DebugExtension;
|
use Twig\Extension\DebugExtension;
|
||||||
|
use Twig\Extension\StringLoaderExtension;
|
||||||
|
use Twig\Loader\FilesystemLoader;
|
||||||
|
|
||||||
class TwigFactory
|
class TwigFactory
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ function loadEnVars(array $map, array $defaults = [])
|
||||||
} else {
|
} else {
|
||||||
$data = getenv($value);
|
$data = getenv($value);
|
||||||
|
|
||||||
if ($data === false) {
|
if (false === $data) {
|
||||||
$data = $defaults[$value] ?? null;
|
$data = $defaults[$value] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue