1 | <?php |
||
8 | trait QueryBuilder |
||
9 | { |
||
10 | protected $parameters = []; |
||
11 | |||
12 | 5 | public function getCookie() |
|
18 | |||
19 | 5 | public function httpErrorsFalse() |
|
25 | |||
26 | 5 | public function headers() |
|
39 | |||
40 | public function debug() |
||
41 | { |
||
42 | 3 | $debug = ['on_stats' => function (TransferStats $stats) { |
|
43 | 1 | app(Logger::class)->debug('api', |
|
44 | [ |
||
45 | 1 | 'time' => $stats->getTransferTime(), |
|
46 | 'request' => |
||
47 | [ |
||
48 | 1 | 'header' => $stats->getRequest()->getHeaders(), |
|
49 | 1 | 'body' => $stats->getRequest()->getBody()->getContents(), |
|
50 | 1 | 'method' => $stats->getRequest()->getMethod(), |
|
51 | 1 | 'url' => $stats->getRequest()->getUri() |
|
52 | 1 | ] |
|
53 | 1 | ]); |
|
54 | 3 | }]; |
|
55 | 3 | $this->merge($debug); |
|
56 | 3 | return $this; |
|
57 | } |
||
58 | |||
59 | 7 | public function get() |
|
63 | |||
64 | 2 | public function body() |
|
65 | { |
||
66 | $body = [ |
||
67 | 2 | 'body' => $this->kernel->getHandler()->create($this->data) |
|
68 | 2 | ]; |
|
69 | 2 | $this->merge($body); |
|
70 | 2 | return $this; |
|
71 | } |
||
72 | |||
73 | 9 | private function merge(array $newParameters) |
|
77 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.