(a)that he is ordinarily resident in the United Kingdom and has been so resident throughout the period of twelve months, or such shorter period as the Secretary of State may in the special circumstances of any particular case accept, immediately preceding his application; or