Total Complexity | 8 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
13 | trait CachePerRequest |
||
14 | { |
||
15 | public bool $requestCacheEnabled = true; |
||
16 | public RequestCache $requestCache; |
||
17 | |||
18 | public function __construct(array $attributes = []) |
||
22 | } |
||
23 | |||
24 | public function scopeDisableCache(Builder $query): Builder |
||
29 | } |
||
30 | |||
31 | public function scopeEnableCache(Builder $query): Builder |
||
32 | { |
||
33 | $this->requestCacheEnabled = true; |
||
34 | |||
35 | return $query; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @throws InvalidArgumentException |
||
40 | */ |
||
41 | public function scopeClearCache(Builder $query): Builder |
||
46 | } |
||
47 | |||
48 | public function getRequestCacheKey(): string |
||
51 | } |
||
52 | |||
53 | public function getConnection(): ConnectionProxy |
||
54 | { |
||
55 | return new ConnectionProxy(static::resolveConnection($this->getConnectionName()), $this); |
||
|
|||
56 | } |
||
57 | |||
58 | public function refresh(): self |
||
71 | } |
||
72 | } |
||
73 |
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.