From 70ab2fe1619be2b13f82b4f5d57acf2c0f96573d Mon Sep 17 00:00:00 2001 From: Charcosset Johnny Date: Fri, 24 Jun 2016 10:17:27 +0200 Subject: [PATCH] Invalid PHP return statement Add ';' to end return statement --- reference/forms/types/choice.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/forms/types/choice.rst b/reference/forms/types/choice.rst index 556053c5336..93fb4d4ffe2 100644 --- a/reference/forms/types/choice.rst +++ b/reference/forms/types/choice.rst @@ -107,7 +107,7 @@ method:: }, 'group_by' => function($category, $key, $index) { // randomly assign things into 2 groups - return rand(0, 1) == 1 ? 'Group A' : 'Group B' + return rand(0, 1) == 1 ? 'Group A' : 'Group B'; }, 'preferred_choices' => function($category, $key, $index) { return $category->getName() == 'Cat2' || $category->getName() == 'Cat3';