Correct accidental double use of the word function

Change the word "function" to "public" so the method declaration reads "public static function" instead of "function static function"