Skip to content

Commit b21046c

Browse files
authored
Add missing callback function in Forrest Facade (#340)
Thanks @kristher1619 !
1 parent a5f0897 commit b21046c

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/Omniphx/Forrest/Client.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* @method string|array compactLayouts(string $resource, array $options = [])
4747
* @method string|array flexiPage(string $resource, array $options = [])
4848
* @method string|array knowledgeManagement(string $resource, array $options = [])
49-
* @method string|array sobjects(string $resource, array $options = [])
49+
* @method string|array sobjects(string $resource = "", array $options = [])
5050
* @method string|array actions(string $resource, array $options = [])
5151
* @method string|array support(string $resource, array $options = [])
5252
*
@@ -212,13 +212,13 @@ private function handleRequest()
212212
} else {
213213
$this->setFormatter($this->settings['defaults']['format']);
214214
}
215-
215+
216216
if (isset($this->options['headers'])) {
217217
$this->parameters['headers'] = array_replace_recursive($this->formatter->setHeaders(), $this->options['headers']);
218218
} else {
219219
$this->parameters['headers'] = $this->formatter->setHeaders();
220220
}
221-
221+
222222
if (isset($this->options['body'])) {
223223
if ($this->parameters['headers']['Content-Type'] == $this->formatter->getDefaultMIMEType()) {
224224
$this->parameters['body'] = $this->formatter->setBody($this->options['body']);
@@ -228,13 +228,13 @@ private function handleRequest()
228228
} else {
229229
unset($this->parameters['body']);
230230
}
231-
231+
232232
if (isset($this->options['query'])) {
233233
$this->parameters['query'] = http_build_query($this->options['query']);
234234
} else {
235235
unset($this->parameters['query']);
236236
}
237-
237+
238238
if (isset($this->options['json'])) {
239239
$this->parameters['json'] = $this->options['json'];
240240
} else {

src/Omniphx/Forrest/Providers/Laravel/Facades/Forrest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@
5151
* @method static string|array compactLayouts(string $resource, array $options = [])
5252
* @method static string|array flexiPage(string $resource, array $options = [])
5353
* @method static string|array knowledgeManagement(string $resource, array $options = [])
54-
* @method static string|array sobjects(string $resource, array $options = [])
54+
* @method static string|array sobjects(string $resource = "", array $options = [])
5555
* @method static string|array actions(string $resource, array $options = [])
5656
* @method static string|array support(string $resource, array $options = [])
57-
* @method static \GuzzleHttp\ClientInterface getClient()
58-
* @method static string getInstanceURL()
59-
* @method static string getBaseUrl()
57+
* @method static \Omniphx\Forrest\Interfaces\RedirectInterface callback()
6058
*/
6159
class Forrest extends Facade
6260
{

0 commit comments

Comments
 (0)