Code Duplication    Length = 10-10 lines in 2 locations

src/htmLawed/htmLawed.php 2 locations

@@ 188-197 (lines=10) @@
185
                        $o = 0;
186
                    }
187
                    break;
188
                case 'oneof':
189
                    $m = 0;
190
                    foreach (explode('|', $v) as $n) {
191
                        if ($tv == $n) {
192
                            $m = 1;
193
                            break;
194
                        }
195
                    }
196
                    $o = $m;
197
                    break;
198
                case 'noneof':
199
                    $m = 1;
200
                    foreach (explode('|', $v) as $n) {
@@ 198-207 (lines=10) @@
195
                    }
196
                    $o = $m;
197
                    break;
198
                case 'noneof':
199
                    $m = 1;
200
                    foreach (explode('|', $v) as $n) {
201
                        if ($tv == $n) {
202
                            $m = 0;
203
                            break;
204
                        }
205
                    }
206
                    $o = $m;
207
                    break;
208
                default:
209
                    break;
210
            }