[Console] moved closures to private function
[Console]Fixed CS of Application.php (thanks to php-cs-fixer)