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

GeolocationHooks   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

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