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

EditorHooks::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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