Remove superfluous final keywords (e.g. final private)
This commit is contained in:
parent
49669ccf97
commit
bd2f425afe
|
@ -25,7 +25,7 @@ final class MDErrorReporter {
|
|||
*
|
||||
* @return integer
|
||||
*/
|
||||
final public static function categorizeError(Throwable $exception):int {
|
||||
public static function categorizeError(Throwable $exception):int {
|
||||
|
||||
if ($exception instanceof MDpageParameterMissingException
|
||||
|| $exception instanceof MDpageParameterNotNumericException
|
||||
|
@ -59,7 +59,7 @@ final class MDErrorReporter {
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
final public function human_filesize(string $bytes, int $decimals = 2):string {
|
||||
public function human_filesize(string $bytes, int $decimals = 2):string {
|
||||
|
||||
$size = ['B','kB','MB','GB','TB','PB','EB','ZB','YB'];
|
||||
$factor = \floor((strlen($bytes) - 1) / 3);
|
||||
|
@ -77,7 +77,7 @@ final class MDErrorReporter {
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
final private function _formulateDebugMailSection(string $headline, array $toFormat, int $level = 0):string {
|
||||
private function _formulateDebugMailSection(string $headline, array $toFormat, int $level = 0):string {
|
||||
|
||||
$msg = "";
|
||||
if ($headline !== "") {
|
||||
|
@ -118,7 +118,7 @@ final class MDErrorReporter {
|
|||
*
|
||||
* @return array<string|array<string>>
|
||||
*/
|
||||
final public function getAdditionalDebuggingInfo():array {
|
||||
public function getAdditionalDebuggingInfo():array {
|
||||
|
||||
$output = [
|
||||
"Current memory usage" => $this->human_filesize((string)\memory_get_usage()),
|
||||
|
@ -143,7 +143,7 @@ final class MDErrorReporter {
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
final public function sendDebugMail(string $to, string $subject = "", string $description = "", array $contextInfo = []):void {
|
||||
public function sendDebugMail(string $to, string $subject = "", string $description = "", array $contextInfo = []):void {
|
||||
|
||||
$subject = "[{$this->_context}]{$subject}[Controlled error notification]";
|
||||
|
||||
|
@ -220,7 +220,7 @@ final class MDErrorReporter {
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
final public function sendErrorReport(Throwable $exception, string $recipient, string $addDesc = ""):void {
|
||||
public function sendErrorReport(Throwable $exception, string $recipient, string $addDesc = ""):void {
|
||||
|
||||
$subject = \get_class($exception) . ": " . $exception->getCode();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user