Often it is much easier to first evaluate the indefinite integral in terms of $x$ and then evaluate the definite integral by using the Fundamental Theorem and then substituting the limit.
$$\int \left(\sqrt{\tan x} + \sqrt{\cot x}\right)\, \mathrm dx= \sqrt2 \arctan\left\{\frac{\tan x - 1}{\sqrt{2\,\tan x}}\right\}$$
Then use $$\int_a^b f(x)\,\mathrm dx= F(b)- F(a)\,,$$
\begin{align}\int_{0}^{\pi/2}\, \left(\sqrt{\tan x} + \sqrt{\cot x}\right)\, \mathrm dx&= \sqrt2 \arctan\left\{\frac{\tan\left(\frac{\pi}{2}\right) - 1}{\sqrt{2\,\tan \left(\frac{\pi}{2}\right)}}\right\}- \sqrt2 \arctan\left\{\frac{\tan 0 - 1}{\sqrt{2\,\tan 0}}\right\}\\ & = \sqrt2 \arctan\left\{\frac{\sqrt{\tan\left(\frac{\pi}{2}\right)} - \frac{1}{\sqrt{\tan\left(\frac{\pi}{2}\right)}}}{\sqrt{2}}\right\}- \sqrt 2\arctan\left\{\frac{\sqrt{\tan0} - \frac{1}{\sqrt{\tan 0}}}{\sqrt{2}}\right\}\\ &= \sqrt 2\arctan(\infty)- \sqrt 2\arctan(-\infty)\\ &= \sqrt {2}\left(\frac{\pi}{2} + \frac{\pi}{2}\right)\\ & = \sqrt 2 \pi\;.\end{align}