mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 05:34:01 +02:00
[ticket/15253] Fix code style
PHPBB3-15253
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
|
||||
namespace phpbb\filesystem\exception;
|
||||
|
||||
class filesystem_exception extends \phpbb\exception\runtime_exception
|
||||
use phpbb\exception\runtime_exception;
|
||||
|
||||
class filesystem_exception extends runtime_exception
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
@@ -24,7 +26,7 @@ class filesystem_exception extends \phpbb\exception\runtime_exception
|
||||
* @param \Exception $previous The previous runtime_exception used for the runtime_exception chaining.
|
||||
* @param integer $code The Exception code.
|
||||
*/
|
||||
public function __construct($message = "", $filename = '', $parameters = array(), \Exception $previous = null, $code = 0)
|
||||
public function __construct($message = '', $filename = '', $parameters = array(), \Exception $previous = null, $code = 0)
|
||||
{
|
||||
parent::__construct($message, array_merge(array('filename' => $filename), $parameters), $previous, $code);
|
||||
}
|
||||
@@ -36,7 +38,7 @@ class filesystem_exception extends \phpbb\exception\runtime_exception
|
||||
*/
|
||||
public function get_filename()
|
||||
{
|
||||
$parameters = parent::get_parameters();
|
||||
$parameters = $this->get_parameters();
|
||||
return $parameters['filename'];
|
||||
}
|
||||
}
|
||||
|
@@ -13,6 +13,8 @@
|
||||
|
||||
namespace phpbb\filesystem;
|
||||
|
||||
use Symfony\Component\Filesystem\Filesystem as symfony_filesystem;
|
||||
|
||||
class helper
|
||||
{
|
||||
/**
|
||||
@@ -66,7 +68,6 @@ class helper
|
||||
*/
|
||||
protected static function phpbb_own_realpath($path)
|
||||
{
|
||||
|
||||
// Replace all directory separators with '/'
|
||||
$path = str_replace(DIRECTORY_SEPARATOR, '/', $path);
|
||||
|
||||
@@ -206,7 +207,7 @@ class helper
|
||||
*/
|
||||
public static function make_path_relative($end_path, $start_path)
|
||||
{
|
||||
$symfony_filesystem = new \Symfony\Component\Filesystem\Filesystem();
|
||||
$symfony_filesystem = new symfony_filesystem();
|
||||
return $symfony_filesystem->makePathRelative($end_path, $start_path);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user