@@ -24,7 +24,7 @@ public static string ExtractConsonantsAndVowels(List<char> consonants, List<char
2424 }
2525
2626 // Method to get a date from string or datetime
27- public static DateTime ? ExtractDate ( object date , string separator = "-" )
27+ public static DateTime ? ExtractDate ( object ? date , string separator = "-" )
2828 {
2929 if ( date == null )
3030 {
@@ -36,8 +36,8 @@ public static string ExtractConsonantsAndVowels(List<char> consonants, List<char
3636 return ( ( DateTime ) date ) . ToUniversalTime ( ) ;
3737 }
3838
39- var dateString = date . ToString ( ) ;
40- var dateSlug = StringsHelper . Slugify ( dateString ) ;
39+ string dateString = date . ToString ( ) ;
40+ string dateSlug = StringsHelper . Slugify ( dateString ) ;
4141
4242 // Split the date
4343 var dateParts = dateSlug . Split ( separator . ToCharArray ( ) , StringSplitOptions . RemoveEmptyEntries ) ;
@@ -68,14 +68,14 @@ public static string ExtractConsonantsAndVowels(List<char> consonants, List<char
6868 }
6969
7070 // Method to find the birthplace
71- public static List < Dictionary < string , object > > ExtractBirthplace ( string birthplace , object birthdate = null )
71+ public static List < Dictionary < string , object > > ? ExtractBirthplace ( string birthplace , object ? birthdate = null )
7272 {
7373 // slugify the birthplace
7474 var tmpBirthplaceSlug = StringsHelper . Slugify ( birthplace ) ;
7575
7676 // if it's a alphanumeric code it must be uppercase, if it's a place name it must be lowercase
7777 var birthplaceSlug = ( StringsHelper . IsAlphaNumeric ( tmpBirthplaceSlug ) ) ? tmpBirthplaceSlug . ToUpper ( ) : tmpBirthplaceSlug . ToLower ( ) ;
78- List < Dictionary < string , object > > birthplacesOptions = null ;
78+ List < Dictionary < string , object > > ? birthplacesOptions = null ;
7979
8080 // Check if the slug of the birthplace is in the data
8181 if ( DataHelper . INDEXED_DATA [ "municipalities" ] . ContainsKey ( birthplaceSlug ) )
0 commit comments