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

Commit

Permalink
Merge branch 'master' into 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
percymamedy committed Nov 5, 2016
2 parents 25d1c3b + 37e915f commit 9f042be
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
preset: laravel

disabled:
- concat_without_spaces

enabled:
- concat_with_spaces
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": ">=5.5.0",
"laravel/framework": "5.0.*|5.1.*|5.2.*",
"laravel/framework": "5.0 - 5.3",
"findbrok/php-watson-api-bridge": "1.0.*"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function usingModel($modelName = '')
//Set the model id
$this->modelId = ($modelName == '') ?
config('watson-translate.models.default') :
config('watson-translate.models.'.$modelName);
config('watson-translate.models.' . $modelName);
//return the translator
return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function getModelDetails()
{
//Send request to Watson
$this->results = $this->makeBridge()
->get('v2/models/'.$this->getModelId())
->get('v2/models/' . $this->getModelId())
->getBody()
->getContents();
//Return translator object
Expand Down
4 changes: 2 additions & 2 deletions src/WatsonTranslateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function boot()
{
//Publish config file
$this->publishes([
__DIR__.'/config/watson-translate.php' => config_path('watson-translate.php'),
__DIR__ . '/config/watson-translate.php' => config_path('watson-translate.php'),
], 'config');
}

Expand All @@ -43,7 +43,7 @@ public function boot()
public function register()
{
//Merge config file
$this->mergeConfigFrom(__DIR__.'/config/watson-translate.php', 'watson-translate');
$this->mergeConfigFrom(__DIR__ . '/config/watson-translate.php', 'watson-translate');
//Register Bindings
$this->registerBinding();
//Add Facades to the Translator service
Expand Down

0 comments on commit 9f042be

Please sign in to comment.