Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Replace str_ helpers with underlying classes ( Illuminate\Support 6 f…
Browse files Browse the repository at this point in the history
…riendly )
  • Loading branch information
Daniël de Wit committed Sep 17, 2019
1 parent 6fd8679 commit 394075c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/FCMServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace LaravelFCM;

use Illuminate\Support\Str;
use LaravelFCM\Sender\FCMGroup;
use LaravelFCM\Sender\FCMSender;
use Illuminate\Support\ServiceProvider;
Expand All @@ -12,7 +13,7 @@ class FCMServiceProvider extends ServiceProvider

public function boot()
{
if (str_contains($this->app->version(), 'Lumen')) {
if (Str::contains($this->app->version(), 'Lumen')) {
$this->app->configure('fcm');
} else {
$this->publishes([
Expand All @@ -23,7 +24,7 @@ public function boot()

public function register()
{
if (!str_contains($this->app->version(), 'Lumen')) {
if (!Str::contains($this->app->version(), 'Lumen')) {
$this->mergeConfigFrom(__DIR__.'/../config/fcm.php', 'fcm');
}

Expand Down

0 comments on commit 394075c

Please sign in to comment.