Completed
Push — develop ( 61ee3a...f2bd12 )
by Seth
08:02
created

RegexExclude::filter()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 11
Code Lines 5

Duplication

Lines 11
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 11
loc 11
rs 9.4285
cc 3
eloc 5
nc 3
nop 1
1
<?php
2
3
namespace smtech\CanvasICSSync\SyncIntoCanvas\Filter;
4
5
use smtech\CanvasICSSync\SyncIntoCanvas\Event;
6
7
class RegexExclude extends RegexInclude
8
{
9 View Code Duplication
    public function filter(Event $event)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
10
    {
11
        return (
12
            // include this event if filtering is off...
13
            $this->isEnabled() === false ||
14
           !(
15
                !empty($this->getPattern()) &&
16
                    preg_match('%' . $this->getPattern() . '%', $event->getProperty('SUMMARY'))
17
            )
18
        );
19
    }
20
}
21