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

Commit

Permalink
Merge pull request #153 from kundancool/master
Browse files Browse the repository at this point in the history
Implement change of helper functions
  • Loading branch information
brozot authored Nov 25, 2019
2 parents 1e8ea17 + 9302824 commit 6198c06
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 6198c06

Please sign in to comment.