file_get_contents()使う度にfoo(string content)を作れと?
あるいはfile_get_contents()の戻り値を必ず通すfoo()を作れと?
どっちにしても手間増やしただけで本質変わってないじゃん