Test Failed
Push — develop ( ad6b70...42909d )
by Paul
09:48
created

GeolocationHooks::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Hooks;
4
5
use GeminiLabs\SiteReviews\Controllers\GeolocationController;
6
7
class GeolocationHooks extends AbstractHooks
8
{
9
    public function run(): void
10
    {
11
        $this->hook(GeolocationController::class, [
12
            ['filterReviewTemplateTags', 'site-reviews/review/build/after', 10, 3],
13
            ['geolocateReview', 'site-reviews/review/created', 10, 2],
14
        ]);
15
    }
16
}
17