Code Duplication    Length = 4-4 lines in 2 locations

includes/classes/Buddy.php 1 location

@@ 170-173 (lines=4) @@
167
      return;
168
    }
169
170
    if ($new_friend_row['id'] == $user['id']) {
171
      unset($new_friend_row);
172
      throw new Exception('buddy_err_adding_self', ERR_ERROR);
173
    }
174
175
    // Checking for user name & request text - in case if it was request to adding new request
176
    if ($new_request_text_safe) {

includes/classes/BuddyModel.php 1 location

@@ 172-175 (lines=4) @@
169
      return;
170
    }
171
172
    if ($new_friend_row['id'] == $user['id']) {
173
      unset($new_friend_row);
174
      throw new Exception('buddy_err_adding_self', ERR_ERROR);
175
    }
176
177
    // Checking for user name & request text - in case if it was request to adding new request
178
    if ($new_request_text_safe) {