Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 123-131 (lines=9) @@
120
		return parent::getPassword();
121
	}
122
123
	public function jsonSerialize() {
124
		return [
125
			'id' => $this->id,
126
			'name' => $this->name,
127
			'lastActivity' => $this->lastActivity,
128
			'type' => $this->type,
129
			'scope' => $this->getScopeAsArray()
130
		];
131
	}
132
133
	/**
134
	 * Get the timestamp of the last password check

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

@@ 136-144 (lines=9) @@
133
		return parent::getPassword();
134
	}
135
136
	public function jsonSerialize() {
137
		return [
138
			'id' => $this->id,
139
			'name' => $this->name,
140
			'lastActivity' => $this->lastActivity,
141
			'type' => $this->type,
142
			'scope' => $this->getScopeAsArray()
143
		];
144
	}
145
146
	/**
147
	 * Get the timestamp of the last password check