Code Duplication    Length = 6-6 lines in 2 locations

app/check.php 2 locations

@@ 24-29 (lines=6) @@
21
22
$messages = array();
23
foreach ($symfonyRequirements->getRequirements() as $req) {
24
    if ($helpText = get_error_message($req, $lineSize)) {
25
        echo_style('red', 'E');
26
        $messages['error'][] = $helpText;
27
    } else {
28
        echo_style('green', '.');
29
    }
30
}
31
32
$checkPassed = empty($messages['error']);
@@ 35-40 (lines=6) @@
32
$checkPassed = empty($messages['error']);
33
34
foreach ($symfonyRequirements->getRecommendations() as $req) {
35
    if ($helpText = get_error_message($req, $lineSize)) {
36
        echo_style('yellow', 'W');
37
        $messages['warning'][] = $helpText;
38
    } else {
39
        echo_style('green', '.');
40
    }
41
}
42
43
if ($checkPassed) {