From ce6204e7064b18e4361ac9bc1b96e117104b44da Mon Sep 17 00:00:00 2001 From: KyleKatarn Date: Wed, 30 Aug 2017 10:04:29 +0200 Subject: [PATCH] Simplify app environment call --- src/ServiceProvider.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index a3ac872..1daffdc 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -47,10 +47,8 @@ public function register() $config = $this->getConfig(); $pug = new Pug($config); $assets = new Assets($pug); - $assets->setEnvironment(is_callable(array('App', 'environment')) - ? call_user_func(array('App', 'environment')) // @codeCoverageIgnore - : 'production' - ); + $getEnv = array('App', 'environment'); + $assets->setEnvironment(is_callable($getEnv) ? call_user_func($getEnv) : 'production'); $this->app->singleton('laravel-pug.pug-assets', function () use ($assets) { return $assets;