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

Commit

Permalink
Merge branch '1.x-dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmejias committed Jun 26, 2022
2 parents 942acf4 + 229a369 commit b28e719
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .ide-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
class Olark extends \AdrianMejias\Olark\Facades\OlarkFacade { }
class OlarkFacade extends \AdrianMejias\Olark\Olark { }
class OlarkException extends \Exception { }
class OlarkSiteIdException extends \AdrianMejias\Olark\Exceptions\OlarkSiteIdException { }
class OlarkDisabledException extends \AdrianMejias\Olark\Exceptions\OlarkDisabledException {}
class OlarkServiceProvider extends \Illuminate\Support\ServiceProvider { }
18 changes: 18 additions & 0 deletions config/olark.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,26 @@

return [

/*
|--------------------------------------------------------------------------
| Olark Status
|--------------------------------------------------------------------------
|
| Here you can configure Olark status.
|
*/

'enable' => env('OLARK_ENABLE', true),

/*
|--------------------------------------------------------------------------
| Site Id
|--------------------------------------------------------------------------
|
| Here you can configure Olark site id.
|
*/

'site_id' => env('OLARK_SITE_ID', ''),

];
4 changes: 2 additions & 2 deletions src/Olark.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function disable()
*/
public function isEnabled(): bool
{
return config('olark.enable', false) === true;
return config('olark.enable', true) === true;
}

/**
Expand All @@ -110,7 +110,7 @@ public function isEnabled(): bool
*/
public function isDisabled(): bool
{
return config('olark.enable', false) === false;
return config('olark.enable', true) === false;
}

/**
Expand Down
2 changes: 0 additions & 2 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace AdrianMejias\Olark;

if (! function_exists('olark')) {
/**
* Get the Olark instance.
Expand Down

0 comments on commit b28e719

Please sign in to comment.