Remove product literal strings in "pht()", part 18
[phabricator.git] / src / applications / oauthserver / PhabricatorOAuthServerScope.php
blob68aec848f621f57e395d54b897aa2a0088b80b2f
1 <?php
3 final class PhabricatorOAuthServerScope extends Phobject {
5 public static function getScopeMap() {
6 return array();
9 public static function filterScope(array $scope) {
10 $valid_scopes = self::getScopeMap();
12 foreach ($scope as $key => $scope_item) {
13 if (!isset($valid_scopes[$scope_item])) {
14 unset($scope[$key]);
18 return $scope;