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

Hooks   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
c 0
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 10 1
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