aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-08-26 16:18:10 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-09-09 08:28:11 +0200
commit36545d5cbe7188efbedf2e1f44b1a7b9617b50c1 (patch)
tree60d7452d7cf146c9f3af3fbfa7d1d07f15778571 /phpBB/phpbb/files
parent[ticket/13904] Use \phpbb\php\ini class for ini_get() (diff)
downloadphpbb-36545d5cbe7188efbedf2e1f44b1a7b9617b50c1.tar.gz
phpbb-36545d5cbe7188efbedf2e1f44b1a7b9617b50c1.tar.bz2
phpbb-36545d5cbe7188efbedf2e1f44b1a7b9617b50c1.zip
[ticket/13904] Switch around constructor arguments
PHPBB3-13904
Diffstat (limited to 'phpBB/phpbb/files')
-rw-r--r--phpBB/phpbb/files/filespec.php20
-rw-r--r--phpBB/phpbb/files/upload.php6
2 files changed, 9 insertions, 17 deletions
diff --git a/phpBB/phpbb/files/filespec.php b/phpBB/phpbb/files/filespec.php
index 34d86116c2..48e12f23ef 100644
--- a/phpBB/phpbb/files/filespec.php
+++ b/phpBB/phpbb/files/filespec.php
@@ -69,9 +69,7 @@ class filespec
/** @var upload Instance of upload class */
public $upload;
- /**
- * @var \phpbb\filesystem\filesystem_interface
- */
+ /** @var \phpbb\filesystem\filesystem_interface */
protected $filesystem;
/** @var \phpbb\php\ini ini_get() wrapper class */
@@ -83,33 +81,27 @@ class filespec
/** @var string phpBB root path */
protected $phpbb_root_path;
- /**
- * The plupload object
- * @var \phpbb\plupload\plupload
- */
+ /** @var \phpbb\plupload\plupload The plupload object */
protected $plupload;
- /**
- * phpBB Mimetype guesser
- * @var \phpbb\mimetype\guesser
- */
+ /** @var \phpbb\mimetype\guesser phpBB Mimetype guesser */
protected $mimetype_guesser;
/**
* File upload class
*
* @param \phpbb\filesystem\filesystem_interface $phpbb_filesystem Filesystem
- * @param \phpbb\php\ini $php_ini ini_get() wrapper
* @param language $language Language
+ * @param \phpbb\php\ini $php_ini ini_get() wrapper
* @param string $phpbb_root_path phpBB root path
* @param \phpbb\mimetype\guesser $mimetype_guesser Mime type guesser
* @param \phpbb\plupload\plupload $plupload Plupload
*/
- public function __construct(\phpbb\filesystem\filesystem_interface $phpbb_filesystem, \phpbb\php\ini $php_ini, language $language, $phpbb_root_path, \phpbb\mimetype\guesser $mimetype_guesser = null, \phpbb\plupload\plupload $plupload = null)
+ public function __construct(\phpbb\filesystem\filesystem_interface $phpbb_filesystem, language $language, \phpbb\php\ini $php_ini, $phpbb_root_path, \phpbb\mimetype\guesser $mimetype_guesser = null, \phpbb\plupload\plupload $plupload = null)
{
$this->filesystem = $phpbb_filesystem;
- $this->php_ini = $php_ini;
$this->language = $language;
+ $this->php_ini = $php_ini;
$this->phpbb_root_path = $phpbb_root_path;
$this->plupload = $plupload;
$this->mimetype_guesser = $mimetype_guesser;
diff --git a/phpBB/phpbb/files/upload.php b/phpBB/phpbb/files/upload.php
index 35107ccb45..036f216d22 100644
--- a/phpBB/phpbb/files/upload.php
+++ b/phpBB/phpbb/files/upload.php
@@ -73,17 +73,17 @@ class upload
*
* @param filesystem_interface $filesystem
* @param factory $factory Files factory
- * @param \phpbb\php\ini $php_ini ini_get() wrapper
* @param language $language Language class
+ * @param \phpbb\php\ini $php_ini ini_get() wrapper
* @param request_interface $request Request class
* @param string $phpbb_root_path phpBB root path
*/
- public function __construct(filesystem_interface $filesystem, factory $factory, \phpbb\php\ini $php_ini, language $language, request_interface $request, $phpbb_root_path)
+ public function __construct(filesystem_interface $filesystem, factory $factory, language $language, \phpbb\php\ini $php_ini, request_interface $request, $phpbb_root_path)
{
$this->filesystem = $filesystem;
$this->factory = $factory;
- $this->php_ini = $php_ini;
$this->language = $language;
+ $this->php_ini = $php_ini;
$this->request = $request;
$this->phpbb_root_path = $phpbb_root_path;
}