Skip to content

Commit

Permalink
Use another name than instance
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Oct 6, 2016
1 parent 77f0742 commit 6be3832
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engines/class-twig-engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Twig_Engine extends Engine {
*
* @var \Twig_Environment
*/
private static $instance = null;
private static $environment = null;

/**
* Twig extension.
Expand Down Expand Up @@ -70,11 +70,11 @@ private function boot() {
* @return \Twig_Environment
*/
private function instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = $this->boot();
if ( ! isset( self::$environment ) ) {
self::$environment = $this->boot();
}

return self::$instance;
return self::$environment;
}

/**
Expand Down

0 comments on commit 6be3832

Please sign in to comment.