Commit 96ea4300 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

view helper render : return string obligatoire

*sort doit retourner un int et non un bool
parent 1050ded1
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for src/Service/ConfigService.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ class ConfigService
            if (false !== strpos($a, 'vendor')) $a = 999; else $a = 0;
            if (false !== strpos($b, 'vendor')) $b = 999; else $b = 0;

            return $a > $b;
            return $a > $b ? 1 : 0;
        });

        return $td;
@@ -78,7 +78,7 @@ class ConfigService
            if (false !== strpos($a, 'vendor')) $a = 999; else $a = 0;
            if (false !== strpos($b, 'vendor')) $b = 999; else $b = 0;

            return $a > $b;
            return $a > $b ? 1 : 0;
        });

        return $td;