Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/kylekatarnls/laravel-pug
Browse files Browse the repository at this point in the history
…into minify-assets
  • Loading branch information
kylekatarnls committed Aug 30, 2017
2 parents 502268e + ce6204e commit 1d87202
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1d87202

Please sign in to comment.