This repository was archived by the owner on Apr 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 22
33namespace PulkitJalan \Xero ;
44
5+ use Illuminate \Support \Arr ;
56use Illuminate \Support \ServiceProvider ;
7+ use XeroPHP \Application \PublicApplication ;
68use XeroPHP \Application \PartnerApplication ;
79use XeroPHP \Application \PrivateApplication ;
8- use XeroPHP \Application \PublicApplication ;
910
1011class 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
You can’t perform that action at this time.
0 commit comments