mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-03 05:55:16 +01:00
Use str_contains and similar instead of strpos
This commit is contained in:
@@ -222,7 +222,7 @@ abstract class AbstractLogEntry extends AbstractDBElement
|
||||
*/
|
||||
public function isCLIEntry(): bool
|
||||
{
|
||||
return strpos($this->username, '!!!CLI ') === 0;
|
||||
return str_starts_with($this->username, '!!!CLI ');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user