Fix code style on method definitions