src/Wrapper.php
public function checkScope($name, $strict = false)
  {
      if (!$this->hasScope($name, $strict)) {
          throw new Exceptions\OutOfScopeException("Scope $name is not registered!");
      }
  }
public function checkScope($name, $strict = false)
  {
      if (!$this->hasScope($name, $strict)) {
          throw new Exceptions\OutOfScopeException("Scope $name is not registered!");
      }
  }
public function checkScope ( $ name , $ strict = false ) { if ( ! $ this -> hasScope ( $ name , $ strict ) ) { throw new Exceptions \ OutOfScopeException ( "Scope $name is not registered!" ) ; } }
Checks if scope is registered
Throws an exception if scope doesn't exist.

@param  string $name   Scope name
@param  bool $strict

@return void
Checks if scope is registered Throws an exception if scope doesn t exist .