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

Commit

Permalink
Use Str helper class
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Sep 3, 2019
1 parent efce2ff commit c2809bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/AdldapServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Adldap\Adldap;
use Adldap\AdldapException;
use Adldap\AdldapInterface;
use Illuminate\Support\Str;
use Adldap\Connections\Provider;
use Illuminate\Container\Container;
use Illuminate\Support\Facades\Config;
Expand Down Expand Up @@ -176,6 +177,6 @@ protected function isLogging()
*/
protected function isLumen()
{
return str_contains($this->app->version(), 'Lumen');
return Str::contains($this->app->version(), 'Lumen');
}
}
3 changes: 2 additions & 1 deletion tests/DatabaseImporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Adldap\Laravel\Tests;

use Illuminate\Support\Str;
use Adldap\Laravel\Commands\Import;
use Adldap\Laravel\Tests\Models\TestUser;

Expand Down Expand Up @@ -30,7 +31,7 @@ public function ldap_users_are_not_duplicated_with_alternate_casing()

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

$m1->password = bcrypt(str_random(16));
$m1->password = bcrypt(Str::random(16));

$m1->save();

Expand Down

0 comments on commit c2809bc

Please sign in to comment.