original_string: public function isEnabled()
      {
          if ($this->enabled === null) {
              $config = $this->app['config'];
              $configEnabled = value($config->get('debugbar.enabled'));
  
              if ($configEnabled === null) {
                  $configEnabled = $config->get('app.debug');
              }
  
              $this->enabled = $configEnabled && !$this->app->runningInConsole() && !$this->app->environment('testing');
          }
  
          return $this->enabled;
      }
code: public function isEnabled()
      {
          if ($this->enabled === null) {
              $config = $this->app['config'];
              $configEnabled = value($config->get('debugbar.enabled'));
  
              if ($configEnabled === null) {
                  $configEnabled = $config->get('app.debug');
              }
  
              $this->enabled = $configEnabled && !$this->app->runningInConsole() && !$this->app->environment('testing');
          }
  
          return $this->enabled;
      }
code_tokens: public function isEnabled ( ) { if ( $ this -> enabled === null ) { $ config = $ this -> app [ 'config' ] ; $ configEnabled = value ( $ config -> get ( 'debugbar.enabled' ) ) ; if ( $ configEnabled === null ) { $ configEnabled = $ config -> get ( 'app.debug' ) ; } $ this -> enabled = $ configEnabled && ! $ this -> app -> runningInConsole ( ) && ! $ this -> app -> environment ( 'testing' ) ; } return $ this -> enabled ; }
docstring: Check if the Debugbar is enabled
  @return boolean
docstring_tokens: Check if the Debugbar is enabled