Skip to content

Commit

Permalink
Updated array usage from array() to [] for improved code readability …
Browse files Browse the repository at this point in the history
…and modern syntax.

Signed-off-by: Danial Rahimi <[email protected]>
  • Loading branch information
danialRahimy committed Aug 17, 2023
1 parent 1b5890f commit f250821
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions apps/admin_audit/lib/AuditLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,35 +52,35 @@ public function emergency($message, array $context = []): void {
$this->parentLogger->emergency($message, $context);
}

public function alert($message, array $context = array()): void {
public function alert($message, array $context = []): void {
$this->parentLogger->alert($message, $context);
}

public function critical($message, array $context = array()): void {
public function critical($message, array $context = []): void {
$this->parentLogger->critical($message, $context);
}

public function error($message, array $context = array()): void {
public function error($message, array $context = []): void {
$this->parentLogger->error($message, $context);
}

public function warning($message, array $context = array()): void {
public function warning($message, array $context = []): void {
$this->parentLogger->warning($message, $context);
}

public function notice($message, array $context = array()): void {
public function notice($message, array $context = []): void {
$this->parentLogger->notice($message, $context);
}

public function info($message, array $context = array()): void {
public function info($message, array $context = []): void {
$this->parentLogger->info($message, $context);
}

public function debug($message, array $context = array()): void {
public function debug($message, array $context = []): void {
$this->parentLogger->debug($message, $context);
}

public function log($level, $message, array $context = array()): void {
public function log($level, $message, array $context = []): void {
$this->parentLogger->log($level, $message, $context);
}
}

0 comments on commit f250821

Please sign in to comment.