Test Failed
Push — develop ( 6f947a...7aea1a )
by Paul
18:36
created

Controller   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 5
c 1
b 0
f 1
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A filterPurgeActions() 0 4 1
A filterPurgeEverythingActions() 0 4 1
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Integrations\CloudFlare;
4
5
use GeminiLabs\SiteReviews\Controllers\AbstractController;
6
7
class Controller extends AbstractController
8
{
9
    /**
10
     * @filter cloudflare_purge_url_actions
11
     */
12
    public function filterPurgeActions(array $actions): array
13
    {
14
        $actions[] = 'site-reviews/cloudflare/purge';
15
        return $actions;
16
    }
17
18
    /**
19
     * @filter cloudflare_purge_everything_actions
20
     */
21
    public function filterPurgeEverythingActions(array $actions): array
22
    {
23
        $actions[] = 'site-reviews/cloudflare/purge_all';
24
        return $actions;
25
    }
26
}
27