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

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