To isolate the variable scope used inside the $file it is required in it's own method - refs #8138
fix code formatting
Merge pull request #8150 from owncloud/backport-8138-stable6

 To isolate the variable scope used inside the $file it is required in i...