Code Duplication    Length = 3-3 lines in 2 locations

apps/comments/lib/Dav/CommentsPlugin.php 1 location

@@ 180-182 (lines=3) @@
177
			$args[str_replace($ns, '', $parameter['name'])] = $parameter['value'];
178
		}
179
180
		if(!is_null($args['datetime'])) {
181
			$args['datetime'] = new \DateTime($args['datetime']);
182
		}
183
184
		$results = $node->findChildren($args['limit'], $args['offset'], $args['datetime']);
185

lib/private/Comments/Manager.php 1 location

@@ 88-90 (lines=3) @@
85
		$data['parent_id'] = strval($data['parent_id']);
86
		$data['topmost_parent_id'] = strval($data['topmost_parent_id']);
87
		$data['creation_timestamp'] = new \DateTime($data['creation_timestamp']);
88
		if (!is_null($data['latest_child_timestamp'])) {
89
			$data['latest_child_timestamp'] = new \DateTime($data['latest_child_timestamp']);
90
		}
91
		$data['children_count'] = intval($data['children_count']);
92
		return $data;
93
	}