original_string: protected function getPrefixedTableNames($tableNames)
      {
      	if ($this->db->options && $this->db->options->tableNamePrefix)
      	{
      		switch (true)
      		{
      			case is_string($tableNames):
      				$tableNames = $this->db->options->tableNamePrefix . $tableNames;
      			break;
  
      			case is_array($tableNames):
  		    		foreach ($tableNames as $key => $table)
  		    			$tableNames[$key] = $this->db->options->tableNamePrefix . $table;
  		    	break;
      		}
      	}
  
      	return $tableNames;
      }
code: protected function getPrefixedTableNames($tableNames)
      {
      	if ($this->db->options && $this->db->options->tableNamePrefix)
      	{
      		switch (true)
      		{
      			case is_string($tableNames):
      				$tableNames = $this->db->options->tableNamePrefix . $tableNames;
      			break;
  
      			case is_array($tableNames):
  		    		foreach ($tableNames as $key => $table)
  		    			$tableNames[$key] = $this->db->options->tableNamePrefix . $table;
  		    	break;
      		}
      	}
  
      	return $tableNames;
      }
code_tokens: protected function getPrefixedTableNames ( $ tableNames ) { if ( $ this -> db -> options && $ this -> db -> options -> tableNamePrefix ) { switch ( true ) { case is_string ( $ tableNames ) : $ tableNames = $ this -> db -> options -> tableNamePrefix . $ tableNames ; break ; case is_array ( $ tableNames ) : foreach ( $ tableNames as $ key => $ table ) $ tableNames [ $ key ] = $ this -> db -> options -> tableNamePrefix . $ table ; break ; } } return $ tableNames ; }
docstring: Returns prefixed table names if "tableNamePrefix" option not empty
  otherwise return untouched names
  
  @param array|string $tableNames
  @return array|string
docstring_tokens: Returns prefixed table names if tableNamePrefix option not empty otherwise return untouched names