Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #14 from findbrok/master
Browse files Browse the repository at this point in the history
Refactoring
  • Loading branch information
percymamedy committed May 28, 2017
2 parents 2a1ffd9 + ddd465f commit 0cd8c20
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
@@ -1,5 +1,6 @@
* text=auto

.editorconfig export-ignore
/tests export-ignore
.gitattributes export-ignore
.gitignore export-ignore
Expand Down
File renamed without changes.
13 changes: 8 additions & 5 deletions src/InsightsServiceProvider.php
Expand Up @@ -22,8 +22,9 @@ class InsightsServiceProvider extends ServiceProvider
public function boot()
{
// Publish config file.
$this->publishes([__DIR__.'/config/personality-insights.php' => config_path('personality-insights.php')],
'config');
$this->publishes([
__DIR__.'/../config/personality-insights.php' => config_path('personality-insights.php'),
], 'config');
}

/**
Expand All @@ -34,7 +35,7 @@ public function boot()
public function register()
{
// Merge Config File.
$this->mergeConfigFrom(__DIR__.'/config/personality-insights.php', 'personality-insights');
$this->mergeConfigFrom(__DIR__.'/../config/personality-insights.php', 'personality-insights');

// Register Bindings.
$this->registerBindings();
Expand Down Expand Up @@ -81,8 +82,10 @@ protected function registerAccessManager()
/** @var Repository $configRepo */
$configRepo = $app->make('config');

return new AccessManager($configRepo->get('personality-insights.default_credentials'),
$configRepo->get('personality-insights.api_version'));
return new AccessManager(
$configRepo->get('personality-insights.default_credentials'),
$configRepo->get('personality-insights.api_version')
);
});
}

Expand Down

0 comments on commit 0cd8c20

Please sign in to comment.