Total Complexity | 7 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class Hooks extends IntegrationHooks |
||
8 | { |
||
9 | public function run(): void |
||
10 | { |
||
11 | if (!$this->isInstalled()) { |
||
12 | return; |
||
13 | } |
||
14 | if (!$this->isEnabled()) { |
||
15 | return; |
||
16 | } |
||
17 | $this->hook(Controller::class, [ |
||
18 | ['filterSchema', 'wpseo_schema_graph'], |
||
19 | ]); |
||
20 | } |
||
21 | |||
22 | protected function isEnabled(): bool |
||
25 | } |
||
26 | |||
27 | protected function isInstalled(): bool |
||
32 | } |
||
33 | } |
||
34 |