Code Duplication    Length = 7-7 lines in 2 locations

lib/private/Comments/Comment.php 2 locations

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