delgus

Untitled

Sep 28th, 2020
943
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $unique_ids = [];
  2.         return array_map(function (Characteristic $item) use ($unique_ids) {
  3.             if (!in_array($item->id, $unique_ids)) {
  4.                 $unique_ids[] = $item->id;
  5.                 return $item;
  6.             }
  7.         }, $this->usedCharacteristics(), $this->characteristicsByCategory());
RAW Paste Data