Code Duplication    Length = 7-7 lines in 2 locations

Http/Web/templates/damage/view.php 1 location

@@ 32-38 (lines=7) @@
29
    $tabCollection = new TabCollection();
30
31
    $countUrls = count($tabUrls);
32
    for ($i = 0; $i < $countUrls; $i++) {
33
        if (empty($tabUrls[$i])) {
34
            continue;
35
        }
36
37
        $tabCollection = $tabCollection->addTab(new Tab($tabTitle[$i], $tabNames[$i], $tabUrls[$i]));
38
    }
39
40
    $head = $tabCollection->toArray();
41
    $tabCount = count($tabCollection);

lib/card.lib.php 1 location

@@ 43-49 (lines=7) @@
40
    $tabCollection = new TabCollection();
41
42
    $countUrls = count($tabUrls);
43
    for ($i = 0; $i < $countUrls; $i++) {
44
        if (empty($tabUrls[$i])) {
45
            continue;
46
        }
47
48
        $tabCollection = $tabCollection->addTab(new Tab($tabTitle[$i], $tabNames[$i], $tabUrls[$i]));
49
    }
50
51
    $head = $tabCollection->toArray();
52
    $tabCount = count($tabCollection);