Fix 'function declaration in loop' scrutinizer errors.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Update PHPDoc and remove useless variables and methods to fix scrutinizer errors.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Fix error when clicking 'Go' and having an empty textarea in SQL tab.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Merge pull request #1240 from Tithugues/scrutinizer

Fix some Scrutinizer issues
Translated using Weblate (Korean)

Currently translated at 81.6% (2291 of 2807)
Merge remote-tracking branch 'origin/master'
Merge pull request #1244 from Tithugues/QA_4_2_fixEmptySQL

Fix error when clicking 'Go' and having an empty textarea in SQL tab. (bug #4470)
Update ChangeLog.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>