| 
						
						
							
								
							
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -513,10 +513,10 @@
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
						 */
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
						public static function select_rooms(array $rooms, array|string $filter, array &$matchees = null): array {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							$_matchees = [];
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							$rooms = array_values(array_filter($rooms, function(CommunityRoom $room) use ($filter, $_matchees) {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							$rooms = array_values(array_filter($rooms, function(CommunityRoom $room) use ($filter, &$_matchees) {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								$matchee = null;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								$success = $room->matched_by_list($filter, $matchee);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								if ($matchee != null) $_matchees[] = $matchee;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								if ($success) $_matchees[] = $matchee;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								return $success;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							}));
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							$matchees = $_matchees;
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
			
			 | 
			 | 
			
				
 
 |