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

Commit ff8ba54

Browse files
committed
use class
1 parent b2abda1 commit ff8ba54

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/XeroServiceProvider.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
namespace PulkitJalan\Xero;
44

5+
use Illuminate\Support\Arr;
56
use Illuminate\Support\ServiceProvider;
7+
use XeroPHP\Application\PublicApplication;
68
use XeroPHP\Application\PartnerApplication;
79
use XeroPHP\Application\PrivateApplication;
8-
use XeroPHP\Application\PublicApplication;
910

1011
class XeroServiceProvider extends ServiceProvider
1112
{
@@ -52,15 +53,15 @@ public function register()
5253
$this->mergeConfigFrom(__DIR__.'/config/config.php', 'xero');
5354

5455
$this->app->singleton(PrivateApplication::class, function ($app) {
55-
return new PrivateApplication(array_get($app['config'], 'xero'));
56+
return new PrivateApplication(Arr::get($app['config'], 'xero'));
5657
});
5758

5859
$this->app->singleton(PublicApplication::class, function ($app) {
59-
return new PublicApplication(array_get($app['config'], 'xero'));
60+
return new PublicApplication(Arr::get($app['config'], 'xero'));
6061
});
6162

6263
$this->app->singleton(PartnerApplication::class, function ($app) {
63-
return new PartnerApplication(array_get($app['config'], 'xero'));
64+
return new PartnerApplication(Arr::get($app['config'], 'xero'));
6465
});
6566
}
6667

0 commit comments

Comments
 (0)