Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit c2809bc

Browse files
committed
Use Str helper class
1 parent efce2ff commit c2809bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/AdldapServiceProvider.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Adldap\Adldap;
66
use Adldap\AdldapException;
77
use Adldap\AdldapInterface;
8+
use Illuminate\Support\Str;
89
use Adldap\Connections\Provider;
910
use Illuminate\Container\Container;
1011
use Illuminate\Support\Facades\Config;
@@ -176,6 +177,6 @@ protected function isLogging()
176177
*/
177178
protected function isLumen()
178179
{
179-
return str_contains($this->app->version(), 'Lumen');
180+
return Str::contains($this->app->version(), 'Lumen');
180181
}
181182
}

tests/DatabaseImporterTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Adldap\Laravel\Tests;
44

5+
use Illuminate\Support\Str;
56
use Adldap\Laravel\Commands\Import;
67
use Adldap\Laravel\Tests\Models\TestUser;
78

@@ -30,7 +31,7 @@ public function ldap_users_are_not_duplicated_with_alternate_casing()
3031

3132
$m1 = (new Import($firstUser, new TestUser()))->handle();
3233

33-
$m1->password = bcrypt(str_random(16));
34+
$m1->password = bcrypt(Str::random(16));
3435

3536
$m1->save();
3637

0 commit comments

Comments
 (0)