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