Passed
Push — master ( c5b045...5ff871 )
by Florian
02:13
created

CustomSectionIO   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A performFlush() 0 13 3
1
<?php
2
3
namespace Innoweb\SectionIO\Tests\SectionIOTest;
4
5
use Innoweb\SectionIO\SectionIO;
6
7
class CustomSectionIO extends SectionIO
8
{
9
    protected static function performFlush($banExpression)
10
    {
11
        $result = array();
12
        $urls = static::getUrls();
13
        if (count($urls) > 0) {
14
            foreach ($urls as $url) {
15
                $data = array();
16
                $data['url'] = $url;
17
                $data['banExpression'] = $banExpression;
18
                $result[] = $data;
19
            }
20
        }
21
        return $result;
22
    }
23
}
24