src/Wrapper.php
public function hasScope($name, $strict = true)
  {
      if (!$strict) {
          if (empty($this->registeredScopes)) {
              return true;
          }
      }

      return in_array($name, $this->registeredScopes);
  }
public function hasScope($name, $strict = true)
  {
      if (!$strict) {
          if (empty($this->registeredScopes)) {
              return true;
          }
      }

      return in_array($name, $this->registeredScopes);
  }
public function hasScope ( $ name , $ strict = true ) { if ( ! $ strict ) { if ( empty ( $ this -> registeredScopes ) ) { return true ; } } return in_array ( $ name , $ this -> registeredScopes ) ; }
Checks if scope is registered.

@param  string  $name   Scope name
@param  bool  $strict If false and registeredScopes array is empty, function will return true.
Used by Resources. If an array of registered scopes is passed in
Wrapper->authorize() function, authorized requests will check if scope is
registered without making a request to the twitch api.

@return bool
Checks if scope is registered .