Code Duplication    Length = 13-13 lines in 2 locations

src/Ruleset.php 2 locations

@@ 1153-1165 (lines=13) @@
1150
     *
1151
     * @return array
1152
     */
1153
    public function getIgnorePatterns($listener=null)
1154
    {
1155
        if ($listener === null) {
1156
            return $this->ignorePatterns;
1157
        }
1158
1159
        if (isset($this->ignorePatterns[$listener]) === true) {
1160
            return $this->ignorePatterns[$listener];
1161
        }
1162
1163
        return array();
1164
1165
    }//end getIgnorePatterns()
1166
1167
1168
    /**
@@ 1179-1191 (lines=13) @@
1176
     *
1177
     * @return array
1178
     */
1179
    public function getIncludePatterns($listener=null)
1180
    {
1181
        if ($listener === null) {
1182
            return $this->includePatterns;
1183
        }
1184
1185
        if (isset($this->includePatterns[$listener]) === true) {
1186
            return $this->includePatterns[$listener];
1187
        }
1188
1189
        return array();
1190
1191
    }//end getIncludePatterns()
1192
1193
1194
}//end class