Converts 'strpos()' calls to improve code readability.

Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
This commit is contained in:
Faraz Samapoor
2023-05-07 09:30:01 +03:30
parent ff234f68e1
commit b8566a3a0d
8 changed files with 15 additions and 15 deletions

View File

@@ -98,7 +98,7 @@ class ActivityManagerTest extends TestCase {
->willReturn($this->l10n);
foreach ($managerClass->getConstants() as $constant => $value) {
if (strpos($constant, 'SUBJECT') === 0) {
if (str_starts_with($constant, 'SUBJECT')) {
$format = $this->activityManager->getActivityFormat('cz', $value, [], false);
if ($format !== '') {
$this->assertStringContainsString('{user}', $format);