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

Controller::filterPurgeEverythingActions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
nc 1
nop 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