Passed
Push — master ( f510e9...9822a2 )
by Paul
10:29
created

EditorHooks   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
dl 0
loc 14
ccs 0
cts 3
cp 0
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 9 1
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Hooks;
4
5
use GeminiLabs\SiteReviews\Controllers\EditorController;
6
7
class EditorHooks extends AbstractHooks
8
{
9
    /**
10
     * @return void
11
     */
12
    public function run()
13
    {
14
        $this->hook(EditorController::class, [
15
            ['filterEditorSettings', 'wp_editor_settings'],
16
            ['filterEditorTextarea', 'the_editor'],
17
            ['filterIsProtectedMeta', 'is_protected_meta', 10, 3],
18
            ['filterUpdateMessages', 'post_updated_messages'],
19
            ['mceShortcodeAjax', 'site-reviews/route/ajax/mce-shortcode'],
20
            ['renderReviewNotice', 'edit_form_top'],
21
        ]);
22
    }
23
}
24