File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -145,12 +145,12 @@ abstract protected function baseUrl();
145
145
146
146
/**
147
147
* set url prefix from code
148
- *
148
+ * @param string $prefix
149
149
* @return null|string
150
150
*/
151
- protected function setPrefix ()
151
+ protected function setPrefix ($ prefix = '' )
152
152
{
153
- return null ;
153
+ return $ this -> prefix = $ prefix ;
154
154
}
155
155
156
156
/**
@@ -458,13 +458,10 @@ protected function pushHttpExceptions(array $exceptions = [])
458
458
*/
459
459
protected function makeMethodRequest ($ method , $ uri )
460
460
{
461
- if (!is_null ($ this ->setPrefix ())) {
462
- $ this ->prefix = $ this ->setPrefix ();
463
- }
461
+
464
462
if (!empty ($ this ->prefix )) {
465
463
$ this ->prefix = trim ($ this ->prefix , '/ ' ) . '/ ' ;
466
464
}
467
-
468
465
$ uri = $ this ->prefix . trim ($ uri , '/ ' );
469
466
470
467
$ this ->mergeDefaultHeaders ();
You can’t perform that action at this time.
0 commit comments