Code Duplication    Length = 3-3 lines in 2 locations

lib/Controller/EndpointController.php 2 locations

@@ 115-117 (lines=3) @@
112
			return new DataResponse(null, Http::STATUS_NOT_FOUND);
113
		}
114
115
		if (!is_int($id) || $id === 0) {
116
			return new DataResponse(null, Http::STATUS_NOT_FOUND);
117
		}
118
119
		$notification = $this->handler->getById($id, $this->getCurrentUser());
120
@@ 144-146 (lines=3) @@
141
	 * @return DataResponse
142
	 */
143
	public function deleteNotification($id = 0) {
144
		if (!is_int($id) || $id === 0) {
145
			return new DataResponse(null, Http::STATUS_NOT_FOUND);
146
		}
147
		$id = (int) $id;
148
149
		$this->handler->deleteById($id, $this->getCurrentUser());