Minor change, just removing unnecessary code

This commit is contained in:
Emerson Carvalho 2011-09-14 14:25:03 -03:00 committed by emerson
parent fd241d4a65
commit e51d33a850

View file

@ -7,10 +7,7 @@ class JSON extends AbstractRule
public function validate($input)
{
if (json_decode($input))
return true;
return false;
return (json_decode($input));
}
}
@ -18,7 +15,7 @@ class JSON extends AbstractRule
/**
* LICENSE
*
* Copyright (c) 2009-2011, Jair Henrique.
* Copyright (c) 2011, Jair Henrique, Emerson Carvalho
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
@ -46,4 +43,4 @@ class JSON extends AbstractRule
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
*/