Code Duplication    Length = 7-7 lines in 2 locations

lib/private/Comments/Comment.php 2 locations

@@ 144-150 (lines=7) @@
141
	 * @return IComment
142
	 * @since 9.0.0
143
	 */
144
	public function setTopmostParentId($id) {
145
		if(!is_string($id)) {
146
			throw new \InvalidArgumentException('String expected.');
147
		}
148
		$this->data['topmostParentId'] = trim($id);
149
		return $this;
150
	}
151
152
	/**
153
	 * returns the number of children
@@ 257-263 (lines=7) @@
254
	 * @return IComment
255
	 * @since 9.0.0
256
	 */
257
	public function setVerb($verb) {
258
		if(!is_string($verb) || !trim($verb)) {
259
			throw new \InvalidArgumentException('Non-empty String expected.');
260
		}
261
		$this->data['verb'] = trim($verb);
262
		return $this;
263
	}
264
265
	/**
266
	 * returns the actor type