mirror of
https://github.com/Respect/Validation.git
synced 2024-06-27 17:50:13 +02:00
Minor change, just removing unnecessary code
This commit is contained in:
parent
fd241d4a65
commit
e51d33a850
|
@ -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.
|
||||
*
|
||||
*/
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue