aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-03-03 03:07:23 +0100
committerJoshyPHP <s9e.dev@gmail.com>2015-04-02 19:16:02 +0200
commitdc9a28d346370b38c10def92358170a5cef23b36 (patch)
tree53badd41a09ba84c0cbd0a7964a33018ce677503 /phpBB
parent40340004aac7ac1752c90a1dbca1faa486e668b9 (diff)
downloadforums-dc9a28d346370b38c10def92358170a5cef23b36.tar
forums-dc9a28d346370b38c10def92358170a5cef23b36.tar.gz
forums-dc9a28d346370b38c10def92358170a5cef23b36.tar.bz2
forums-dc9a28d346370b38c10def92358170a5cef23b36.tar.xz
forums-dc9a28d346370b38c10def92358170a5cef23b36.zip
[ticket/11768] Replaced extract() calls
PHPBB3-11768
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/textformatter/s9e/factory.php5
-rw-r--r--phpBB/phpbb/textformatter/s9e/parser.php3
-rw-r--r--phpBB/phpbb/textformatter/s9e/renderer.php3
3 files changed, 7 insertions, 4 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php
index 66dba14ac0..a5b3527822 100644
--- a/phpBB/phpbb/textformatter/s9e/factory.php
+++ b/phpBB/phpbb/textformatter/s9e/factory.php
@@ -308,8 +308,9 @@ class factory implements \phpbb\textformatter\cache
unset($configurator->tags['censor:tag']);
}
- // Create $parser and $renderer
- extract($configurator->finalize());
+ $objects = $configurator->finalize();
+ $parser = $objects['parser'];
+ $renderer = $objects['renderer'];
// Cache the parser as-is
$this->cache->put($this->cache_key_parser, $parser);
diff --git a/phpBB/phpbb/textformatter/s9e/parser.php b/phpBB/phpbb/textformatter/s9e/parser.php
index bf0e715ada..be717bb1c9 100644
--- a/phpBB/phpbb/textformatter/s9e/parser.php
+++ b/phpBB/phpbb/textformatter/s9e/parser.php
@@ -47,7 +47,8 @@ class parser implements \phpbb\textformatter\parser
$parser = $cache->get($key);
if (!$parser)
{
- extract($factory->regenerate());
+ $objects = $factory->regenerate();
+ $parser = $objects['parser'];
}
$this->parser = $parser;
diff --git a/phpBB/phpbb/textformatter/s9e/renderer.php b/phpBB/phpbb/textformatter/s9e/renderer.php
index 71c207e6fc..5468af450f 100644
--- a/phpBB/phpbb/textformatter/s9e/renderer.php
+++ b/phpBB/phpbb/textformatter/s9e/renderer.php
@@ -88,7 +88,8 @@ class renderer extends \phpbb\textformatter\renderer
if (!isset($renderer))
{
- extract($factory->regenerate());
+ $objects = $factory->regenerate();
+ $renderer = $objects['renderer'];
}
if (isset($censor))