Code Duplication    Length = 3-3 lines in 2 locations

lib/Controller/EndpointController.php 2 locations

@@ 125-127 (lines=3) @@
122
			return new DataResponse(null, Http::STATUS_NOT_FOUND);
123
		}
124
125
		if (!is_int($id) || $id === 0) {
126
			return new DataResponse(null, Http::STATUS_NOT_FOUND);
127
		}
128
129
		$notification = $this->handler->getById($id, $this->getCurrentUser());
130
@@ 154-156 (lines=3) @@
151
	 * @return DataResponse
152
	 */
153
	public function deleteNotification($id = 0) {
154
		if (!is_int($id) || $id === 0) {
155
			return new DataResponse(null, Http::STATUS_NOT_FOUND);
156
		}
157
		$id = (int) $id;
158
159
		$this->handler->deleteById($id, $this->getCurrentUser());