macg-gh / madlibs

A little game that runs on a LAMP stack
0 stars 0 forks source link

input validation class #61

Open macg-gh opened 4 years ago

macg-gh commented 4 years ago

It's clunky in the code as it is to have a lot of try/catch blocks, when I get the sense I could do this easier with a class for this purpose which the other classes can use. The classes themselves could just check that the json input object is set, then carry on.