From bf61cc534489258a04dc30bcdf24cbacbb66b665 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 26 Jan 2012 15:06:15 +0100 Subject: [PATCH] fixed CS --- lib/Twig/Extension/Core.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 312286c..2d5522c 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -299,7 +299,7 @@ function twig_random($values = null) } if (is_int($values) || is_float($values)) { - return ($values < 0) ? mt_rand($values, 0) : mt_rand(0, $values); + return $values < 0 ? mt_rand($values, 0) : mt_rand(0, $values); } if ($values instanceof Traversable) { -- 1.7.2.5