Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 12, 2018
1 parent 5b412bc commit 453db3c
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/Passport.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ class Passport
*/
public static $personalAccessClientId;

/**
* The default scope.
*
* @var string
*/
public static $defaultScope;

/**
* All of the scopes defined for the application.
*
Expand All @@ -47,13 +54,6 @@ class Passport
//
];

/**
* The default scope given to a token when no scope was requested
*
* @var string
*/
public static $defaultScope;

/**
* The date when access tokens expire.
*
Expand Down Expand Up @@ -205,6 +205,17 @@ public static function personalAccessClientId($clientId)
return new static;
}

/**
* Set the default scope(s). Multiple scopes may be an array or specified delimited by spaces.
*
* @param array|string $scope
* @return void
*/
public static function setDefaultScope($scope)
{
static::$defaultScope = is_array($scope) ? implode(' ', $scope) : $scope;
}

/**
* Get all of the defined scope IDs.
*
Expand Down Expand Up @@ -266,17 +277,6 @@ public static function tokensCan(array $scopes)
static::$scopes = $scopes;
}

/**
* set the default scope as a space delimited list
*
* @param array|string $scope
* @return void
*/
public static function setDefaultScope($scope)
{
static::$defaultScope = is_array($scope) ? implode(' ', $scope) : $scope;
}

/**
* Get or set when access tokens expire.
*
Expand Down

0 comments on commit 453db3c

Please sign in to comment.