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

NoticeHooks::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 6
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\NoticeController;
6
7
class NoticeHooks extends AbstractHooks
8
{
9
    /**
10
     * @return void
11
     */
12
    public function run()
13
    {
14
        $this->hook(NoticeController::class, [
15
            ['adminNotices', 'admin_notices'],
16
            ['dismissNotice', 'site-reviews/route/admin/dismiss-notice'],
17
            ['dismissNoticeAjax', 'site-reviews/route/ajax/dismiss-notice'],
18
        ]);
19
    }
20
}
21