Please, let's create a rule "Put no newline between variable assignment and foreach() only if this variable is used as an argument of foreach()".