This repository was archived by the owner on May 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ preset : laravel
2
+
3
+ disabled :
4
+ - concat_without_spaces
5
+
6
+ enabled :
7
+ - concat_with_spaces
Original file line number Diff line number Diff line change 11
11
],
12
12
"require" : {
13
13
"php" : " >=5.5.0" ,
14
- "laravel/framework" : " 5.0.*|5.1.*|5.2.* " ,
14
+ "laravel/framework" : " 5.0 - 5.3 " ,
15
15
"findbrok/php-watson-api-bridge" : " 1.0.*"
16
16
},
17
17
"require-dev" : {
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ public function usingModel($modelName = '')
166
166
//Set the model id
167
167
$ this ->modelId = ($ modelName == '' ) ?
168
168
config ('watson-translate.models.default ' ) :
169
- config ('watson-translate.models. ' . $ modelName );
169
+ config ('watson-translate.models. ' . $ modelName );
170
170
//return the translator
171
171
return $ this ;
172
172
}
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public function getModelDetails()
125
125
{
126
126
//Send request to Watson
127
127
$ this ->results = $ this ->makeBridge ()
128
- ->get ('v2/models/ ' . $ this ->getModelId ())
128
+ ->get ('v2/models/ ' . $ this ->getModelId ())
129
129
->getBody ()
130
130
->getContents ();
131
131
//Return translator object
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function boot()
31
31
{
32
32
//Publish config file
33
33
$ this ->publishes ([
34
- __DIR__ . '/config/watson-translate.php ' => config_path ('watson-translate.php ' ),
34
+ __DIR__ . '/config/watson-translate.php ' => config_path ('watson-translate.php ' ),
35
35
], 'config ' );
36
36
}
37
37
@@ -43,7 +43,7 @@ public function boot()
43
43
public function register ()
44
44
{
45
45
//Merge config file
46
- $ this ->mergeConfigFrom (__DIR__ . '/config/watson-translate.php ' , 'watson-translate ' );
46
+ $ this ->mergeConfigFrom (__DIR__ . '/config/watson-translate.php ' , 'watson-translate ' );
47
47
//Register Bindings
48
48
$ this ->registerBinding ();
49
49
//Add Facades to the Translator service
You can’t perform that action at this time.
0 commit comments