Code Duplication    Length = 9-9 lines in 2 locations

Apps/View/Admin/default/native/macro/notify.php 1 location

@@ 30-38 (lines=9) @@
27
    return $htmlType;
28
}
29
30
if (Obj::isArray($notify) && count($notify) > 0) {
31
    foreach ($notify as $type => $messages) {
32
        foreach ($messages as $message) {
33
            echo '<p class="alert ' . type2html($type) . '">
34
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>'
35
                . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>';
36
        }
37
    }
38
}
39

Apps/View/Front/default/native/macro/notify.php 1 location

@@ 30-38 (lines=9) @@
27
    return $htmlType;
28
}
29
30
if (Obj::isArray($notify) && count($notify) > 0) {
31
    foreach ($notify as $type => $messages) {
32
        foreach ($messages as $message) {
33
            echo '<p class="alert ' . type2html($type) . '">
34
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>'
35
                . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>';
36
        }
37
    }
38
}
39