aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-06-05 00:21:53 +0200
committerTristan Darricau <github@nicofuma.fr>2014-06-05 00:21:53 +0200
commit012702307b1503005f1b5b6c20e654dc8d23e8a0 (patch)
tree783bef4ab36d1656996bb1a0694f885ddf9ac4fa /phpBB/phpbb/console
parentce104e2c72a00c58d19691f6af6ee5a3935a5fbd (diff)
downloadforums-012702307b1503005f1b5b6c20e654dc8d23e8a0.tar
forums-012702307b1503005f1b5b6c20e654dc8d23e8a0.tar.gz
forums-012702307b1503005f1b5b6c20e654dc8d23e8a0.tar.bz2
forums-012702307b1503005f1b5b6c20e654dc8d23e8a0.tar.xz
forums-012702307b1503005f1b5b6c20e654dc8d23e8a0.zip
[ticket/12655] Fix coding style
PHPBB3-12655
Diffstat (limited to 'phpBB/phpbb/console')
-rw-r--r--phpBB/phpbb/console/application.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/phpBB/phpbb/console/application.php b/phpBB/phpbb/console/application.php
index 9750367df0..ff90a76a92 100644
--- a/phpBB/phpbb/console/application.php
+++ b/phpBB/phpbb/console/application.php
@@ -13,11 +13,7 @@
namespace phpbb\console;
-use Symfony\Component\Console\Input\ArgvInput;
-use Symfony\Component\Console\Output\ConsoleOutput;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
use Symfony\Component\Console\Shell;
-use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
@@ -31,6 +27,11 @@ class application extends \Symfony\Component\Console\Application
protected $in_shell = false;
/**
+ * @var \phpbb\user User object
+ */
+ protected $user;
+
+ /**
* @param string $name The name of the application
* @param string $version The version of the application
* @param \phpbb\user $user The user which runs the application (used for translation)
@@ -54,7 +55,7 @@ class application extends \Symfony\Component\Console\Application
{
// If we are already in a shell
// we do not want to have the --shell option available
- if($this->in_shell)
+ if ($this->in_shell)
{
return parent::getHelp();
}
@@ -96,9 +97,9 @@ class application extends \Symfony\Component\Console\Application
*/
public function doRun(InputInterface $input, OutputInterface $output)
{
- // Run a shell if the --shell (or -s) option is set and if any command name is specified
+ // Run a shell if the --shell (or -s) option is set and if no command name is specified
// Also, we do not want to have the --shell option available if we are already in a shell
- if (!$this->in_shell && $this->getCommandName($input) === null && $input->hasParameterOption(array('--shell', '-s')) === true)
+ if (!$this->in_shell && $this->getCommandName($input) === null && $input->hasParameterOption(array('--shell', '-s')))
{
$shell = new Shell($this);
$this->in_shell = true;