Code Duplication    Length = 6-6 lines in 3 locations

mod/missions/lib/missions-searching.php 3 locations

@@ 940-945 (lines=6) @@
937
            }
938
939
            // Adds the results of the query to a pool of results.
940
            if(empty($users_returned_by_attribute)) {
941
                $users_returned_by_attribute = array_unique($entity_owners);
942
            }
943
            else {
944
                $users_returned_by_attribute = array_unique(array_intersect($users_returned_by_attribute, $entity_owners));
945
            }
946
            // Notes that attributes have been searched during this function call.
947
            $is_attribute_searched = true;
948
        }
@@ 965-970 (lines=6) @@
962
            }
963
964
            // Adds the results of the query to a pool of results.
965
            if(empty($users_returned_by_metadata)) {
966
                $users_returned_by_metadata = array_unique($entity_owners);
967
            }
968
            else {
969
                $users_returned_by_metadata = array_unique(array_intersect($users_returned_by_metadata, $entity_owners));
970
            }
971
            // Notes that metadata have been searched during this function call.
972
            $is_metadata_searched = true;
973
        }
@@ 994-999 (lines=6) @@
991
            }
992
993
            // Adds the results of the query to a pool of results.
994
            if(empty($users_returned_by_metadata)) {
995
                $users_returned_by_metadata = array_unique($entity_owners);
996
            }
997
            else {
998
                $users_returned_by_metadata = array_unique(array_intersect($users_returned_by_metadata, $entity_owners));
999
            }
1000
            // Notes that metadata have been searched during this function call.
1001
            $is_metadata_searched = true;
1002
        }