Unlike most other European countries, there is no time limit on immigration detention in the UK. In addition, the law does not provide for an automatic judicial review of the lawfulness of detention. 

https://www.freemovement.org.uk/indefinite-detention-not-breach-echr-says-european-court-human-rights/