Merge pull request #17 from emersonbroga/develop

Minor change, just removing unnecessary code
This commit is contained in:
Alexandre Gomes Gaigalas 2011-09-14 11:08:09 -07:00
commit 47ec7b1a46

View file

@ -7,10 +7,7 @@ class JSON extends AbstractRule
public function validate($input)
{
if (json_decode($input))
return true;
return false;
return (bool) (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.
*
*/
*/