Test Failed
Push — develop ( 85bacd...65d39e )
by Paul
08:58 queued 21s
created

Hooks::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
c 0
b 0
f 0
dl 0
loc 10
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Integrations\Gutenberg;
4
5
use GeminiLabs\SiteReviews\Integrations\IntegrationHooks;
6
7
class Hooks extends IntegrationHooks
8
{
9
    public function run(): void
10
    {
11
        $this->hook(Controller::class, [
12
            ['enqueueBlockAssets', 'wp_enqueue_scripts'],
13
            ['enqueueBlockEditorAssets', 'enqueue_block_editor_assets'],
14
            ['filterAllowedBlockTypes', 'allowed_block_types_all', 10, 2],
15
            ['filterBlockCategories', 'block_categories_all'],
16
            ['filterUseBlockEditor', 'use_block_editor_for_post_type', 10, 2],
17
            ['registerBlocks', 'init'],
18
            ['removeLegacyWidgets', 'widget_types_to_hide_from_legacy_widget_block'],
19
        ]);
20
    }
21
}
22