aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-08-26 13:33:38 +0200
committerTristan Darricau <github@nicofuma.fr>2016-12-03 16:37:35 +0100
commit0256c69191db7b2102d5fb338401ab3f58b118c6 (patch)
tree5d5ca0ef8aa97c77119c69747a3248dcc87c0ddf
parent45dda53310bb618dce0813d61a85948cb334e4a9 (diff)
downloadforums-0256c69191db7b2102d5fb338401ab3f58b118c6.tar
forums-0256c69191db7b2102d5fb338401ab3f58b118c6.tar.gz
forums-0256c69191db7b2102d5fb338401ab3f58b118c6.tar.bz2
forums-0256c69191db7b2102d5fb338401ab3f58b118c6.tar.xz
forums-0256c69191db7b2102d5fb338401ab3f58b118c6.zip
[ticket/12610] CS
PHPBB3-12610
-rwxr-xr-xphpBB/bin/phpbbcli.php1
-rw-r--r--phpBB/phpbb/extension/manager.php2
-rw-r--r--phpBB/phpbb/version_helper.php1
3 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/bin/phpbbcli.php b/phpBB/bin/phpbbcli.php
index 2c3675bbf1..6bd217ec07 100755
--- a/phpBB/bin/phpbbcli.php
+++ b/phpBB/bin/phpbbcli.php
@@ -81,7 +81,6 @@ $user->data['user_id'] = ANONYMOUS;
$user->ip = '127.0.0.1';
$application = new \phpbb\console\application('phpBB Console', PHPBB_VERSION, $language);
-$application = new \phpbb\console\application('phpBB Console', PHPBB_VERSION, $lang);
$application->setDispatcher($phpbb_container->get('dispatcher'));
$application->register_container_commands($phpbb_container->get('console.command_collection'));
$application->run($input);
diff --git a/phpBB/phpbb/extension/manager.php b/phpBB/phpbb/extension/manager.php
index da1f06c885..b2b60aaa9b 100644
--- a/phpBB/phpbb/extension/manager.php
+++ b/phpBB/phpbb/extension/manager.php
@@ -589,7 +589,7 @@ class manager
$version_helper = new \phpbb\version_helper($this->cache, $this->config, new file_downloader());
$version_helper->set_current_version($meta['version']);
- $version_helper->set_file_location($version_check ['host'], $version_check ['directory'], $version_check ['filename']);
+ $version_helper->set_file_location($version_check['host'], $version_check['directory'], $version_check['filename']);
$version_helper->force_stability($stability);
return $updates = $version_helper->get_suggested_updates($force_update, $force_cache);
diff --git a/phpBB/phpbb/version_helper.php b/phpBB/phpbb/version_helper.php
index 227bb72403..b1dcdf10d9 100644
--- a/phpBB/phpbb/version_helper.php
+++ b/phpBB/phpbb/version_helper.php
@@ -12,6 +12,7 @@
*/
namespace phpbb;
+
use phpbb\exception\runtime_exception;
/**