Code Duplication    Length = 5-5 lines in 2 locations

include/classes/token.class.php 1 location

@@ 139-143 (lines=5) @@
136
        $this->deleted += $stmt->affected_rows;
137
      }
138
    }
139
    if ($failed > 0) {
140
      $this->setCronMessage('Failed to delete ' . $failed . ' token types from ' . $this->table . ' table');
141
      return false;
142
    }
143
    return true;
144
  }
145
}
146

include/classes/notification.class.php 1 location

@@ 199-203 (lines=5) @@
196
    } else {
197
      $this->deleted += $stmt->affected_rows;
198
    }
199
    if ($failed > 0) {
200
      $this->setCronMessage('Failed to delete ' . $failed . ' notifications from ' . $this->table . ' table');
201
      return false;
202
    }
203
    return true;
204
  }
205
}
206