Code Duplication    Length = 4-4 lines in 2 locations

tests/behat/src/CmsUiContext.php 2 locations

@@ 316-319 (lines=4) @@
313
        assertNotNull($tabsets, 'CMS tabs not found');
314
315
        $tab_element = null;
316
        foreach ($tabsets as $tabset) {
317
            $tab_element = $tabset->find('named', array('link_or_button', "'$tab'"));
318
            if ($tab_element) {
319
                break;
320
            }
321
        }
322
        if ($negate) {
@@ 344-347 (lines=4) @@
341
        assertNotNull($tabsets, 'CMS tabs not found');
342
343
        $tab_element = null;
344
        foreach ($tabsets as $tabset) {
345
            if ($tab_element) {
346
                continue;
347
            }
348
            $tab_element = $tabset->find('named', array('link_or_button', "'$tab'"));
349
        }
350
        assertNotNull($tab_element, sprintf('%s tab not found', $tab));