Skip to content

Commit 7bac2f6

Browse files
committed
fix: Typo
1 parent 2d7f1ae commit 7bac2f6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Aspect/DbAspect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(private Tracer $tracer, private SwitchManager $switc
3737
*/
3838
public function process(ProceedingJoinPoint $proceedingJoinPoint)
3939
{
40-
if ($this->switchManager->isEnable('db') === false) {
40+
if ($this->switchManager->isEnabled('db') === false) {
4141
return $proceedingJoinPoint->process();
4242
}
4343

src/Aspect/MethodAspect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(private Tracer $tracer, private SwitchManager $switc
3535
*/
3636
public function process(ProceedingJoinPoint $proceedingJoinPoint)
3737
{
38-
if ($this->switchManager->isEnable('method') === false) {
38+
if ($this->switchManager->isEnabled('method') === false) {
3939
return $proceedingJoinPoint->process();
4040
}
4141

src/Aspect/RedisAspect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(private Tracer $tracer, private SwitchManager $switc
3737
*/
3838
public function process(ProceedingJoinPoint $proceedingJoinPoint)
3939
{
40-
if ($this->switchManager->isEnable('redis') === false) {
40+
if ($this->switchManager->isEnabled('redis') === false) {
4141
return $proceedingJoinPoint->process();
4242
}
4343

src/Listener/DbQueryExecutedListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function listen(): array
4040
*/
4141
public function process(object $event): void
4242
{
43-
if ($this->switchManager->isEnable('db') === false) {
43+
if ($this->switchManager->isEnabled('db') === false) {
4444
return;
4545
}
4646
$sql = $event->sql;

src/SwitchManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function apply(array $config): void
3737
/**
3838
* Determine if the tracer is enabled ?
3939
*/
40-
public function isEnable(string $identifier): bool
40+
public function isEnabled(string $identifier): bool
4141
{
4242
if (! isset($this->config[$identifier])) {
4343
return false;

0 commit comments

Comments
 (0)