Skip to content

Commit 5db849f

Browse files
committed
Updated array usage from array() to [] for improved code readability and modern syntax.
Signed-off-by: Danial Rahimi <48244647+danialRahimy@users.noreply.github.com>
1 parent b01dd7c commit 5db849f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

apps/admin_audit/lib/AuditLogger.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,35 +52,35 @@ public function emergency($message, array $context = []): void {
5252
$this->parentLogger->emergency($message, $context);
5353
}
5454

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)