mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 11:13:59 +02:00
[ticket/15253] Fix code style
PHPBB3-15253
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
|
||||
namespace phpbb\storage\exception;
|
||||
|
||||
class exception extends \phpbb\exception\runtime_exception
|
||||
use phpbb\exception\runtime_exception;
|
||||
|
||||
class exception extends runtime_exception
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
@@ -24,7 +26,7 @@ class 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 = [], \Exception $previous = null, $code = 0)
|
||||
{
|
||||
parent::__construct($message, array_merge(array('filename' => $filename), $parameters), $previous, $code);
|
||||
}
|
||||
@@ -36,7 +38,7 @@ class exception extends \phpbb\exception\runtime_exception
|
||||
*/
|
||||
public function get_filename()
|
||||
{
|
||||
$parameters = parent::get_parameters();
|
||||
$parameters = $this->get_parameters();
|
||||
return $parameters['filename'];
|
||||
}
|
||||
}
|
||||
|
@@ -13,30 +13,7 @@
|
||||
|
||||
namespace phpbb\storage\exception;
|
||||
|
||||
class not_implemented extends \phpbb\exception\runtime_exception
|
||||
class not_implemented extends exception
|
||||
{
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $message The Exception message to throw (must be a language variable).
|
||||
* @param string $filename The file that caused the error.
|
||||
* @param array $parameters The parameters to use with the language var.
|
||||
* @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)
|
||||
{
|
||||
parent::__construct($message, array_merge(array('filename' => $filename), $parameters), $previous, $code);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the filename that triggered the error
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_filename()
|
||||
{
|
||||
$parameters = parent::get_parameters();
|
||||
return $parameters['filename'];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user