Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit bf46c9b

Browse files
committed
Shortcut for inline if
1 parent 5b3ed7c commit bf46c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwoFactorAuthManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function driver($name = null)
6666
*/
6767
protected function get($name)
6868
{
69-
return isset($this->drivers[$name]) ? $this->drivers[$name] : $this->resolve($name);
69+
return $this->drivers[$name] ?? $this->resolve($name);
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)