Total Complexity | 15 |
Total Lines | 90 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 6 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
16 | class ServerQuery extends ActiveQuery |
||
17 | { |
||
18 | public function withSales(): self |
||
19 | { |
||
20 | $this->joinWith('sales'); |
||
21 | $this->andWhere(['with_sales' => true]); |
||
22 | |||
23 | return $this; |
||
24 | } |
||
25 | |||
26 | public function withBindings(): self |
||
27 | { |
||
28 | if (Yii::$app->user->can('hub.read')) { |
||
|
|||
29 | $this->joinWith('bindings'); |
||
30 | $this->andWhere(['with_bindings' => true]); |
||
31 | } |
||
32 | |||
33 | return $this; |
||
34 | } |
||
35 | |||
36 | public function withUses(): self |
||
42 | } |
||
43 | |||
44 | public function withBlocking(): self |
||
45 | { |
||
46 | $this->joinWith('blocking'); |
||
47 | $this->andWhere(['with_blocking' => true]); |
||
48 | |||
49 | return $this; |
||
50 | } |
||
51 | |||
52 | public function withMailSettings(): self |
||
60 | } |
||
61 | |||
62 | public function withHardwareSettings(): self |
||
63 | { |
||
64 | if (Yii::$app->user->can('part.read')) { |
||
65 | $this->joinWith(['hardwareSettings']); |
||
66 | $this->andWhere(['with_hardwareSettings' => 1]); |
||
67 | } |
||
68 | |||
69 | return $this; |
||
70 | } |
||
71 | |||
72 | public function withSoftwareSettings(): self |
||
80 | } |
||
81 | |||
82 | public function withMonitoringSettings(): self |
||
83 | { |
||
84 | if (Yii::$app->user->can('server.manage-settings')) { |
||
85 | $this->joinWith(['monitoringSettings']); |
||
86 | $this->andWhere(['with_monitoringSettings' => 1]); |
||
87 | } |
||
88 | |||
89 | return $this; |
||
90 | } |
||
91 | |||
92 | public function withConsumptions(): self |
||
98 | } |
||
99 | |||
100 | public function withHardwareSales(): self |
||
108 |
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.