Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class MeetingFeatureUpdate extends Command |
||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $parameters; |
||
22 | |||
23 | /** |
||
24 | * @param int $accountId |
||
25 | * @param string $featureId |
||
26 | * @param bool $enable |
||
27 | */ |
||
28 | public function __construct($accountId, $featureId, $enable) |
||
29 | { |
||
30 | $this->parameters = [ |
||
31 | 'action' => 'meeting-feature-update', |
||
32 | 'account-id' => (int) $accountId, |
||
33 | 'enable' => VT::toString($enable), |
||
34 | ]; |
||
35 | |||
36 | $featureId = SCT::toHyphen($featureId); |
||
37 | |||
38 | if (mb_strpos($featureId, 'fid-') === false) { |
||
39 | $featureId = 'fid-' . $featureId; |
||
40 | } |
||
41 | |||
42 | $this->parameters['feature-id'] = $featureId; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | * |
||
48 | * @return bool |
||
49 | */ |
||
50 | protected function process() |
||
60 | } |
||
61 | } |
||
62 |
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.