Code Duplication    Length = 9-9 lines in 2 locations

lib/private/Authentication/Token/DefaultToken.php 1 location

@@ 160-168 (lines=9) @@
157
		return $scope;
158
	}
159
160
	public function getScopeAsArray(): array {
161
		$scope = json_decode($this->getScope(), true);
162
		if (!$scope) {
163
			return [
164
				'filesystem'=> true
165
			];
166
		}
167
		return $scope;
168
	}
169
170
	public function setScope($scope) {
171
		if (\is_array($scope)) {

lib/private/Authentication/Token/PublicKeyToken.php 1 location

@@ 178-186 (lines=9) @@
175
		return $scope;
176
	}
177
178
	public function getScopeAsArray(): array {
179
		$scope = json_decode($this->getScope(), true);
180
		if (!$scope) {
181
			return [
182
				'filesystem'=> true
183
			];
184
		}
185
		return $scope;
186
	}
187
188
	public function setScope($scope) {
189
		if (is_array($scope)) {