Nawqaan 156

If you encounter code that declares variables throughout the course of a function instead of declaring all variables at the top of the function, do you know of any tools that can move the variable declarations to one block at the top of the function?