From 0c342094b650e4e508c0549cd84ed297e8158e79 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 21 Feb 2024 19:09:00 +0100 Subject: [PATCH] apply php linter --- src/Factory/TwigFactory.php | 4 ++-- src/Loader/functions.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Factory/TwigFactory.php b/src/Factory/TwigFactory.php index a5b16ca..7d176b2 100644 --- a/src/Factory/TwigFactory.php +++ b/src/Factory/TwigFactory.php @@ -3,9 +3,9 @@ namespace Plugin\Factory; use Twig\Environment; -use Twig\Loader\FilesystemLoader; -use Twig\Extension\StringLoaderExtension; use Twig\Extension\DebugExtension; +use Twig\Extension\StringLoaderExtension; +use Twig\Loader\FilesystemLoader; class TwigFactory { diff --git a/src/Loader/functions.php b/src/Loader/functions.php index ac2f2db..7e74f28 100644 --- a/src/Loader/functions.php +++ b/src/Loader/functions.php @@ -12,7 +12,7 @@ function loadEnVars(array $map, array $defaults = []) } else { $data = getenv($value); - if ($data === false) { + if (false === $data) { $data = $defaults[$value] ?? null; }