Browse Source

bad input method

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
08ebf739f5
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/Utils/LuBusiness.php

+ 8
- 0
src/Utils/LuBusiness.php View File

@@ -67,6 +67,14 @@ abstract class LuBusiness {
67 67
         abort(404, $reason);
68 68
     }
69 69
 
70
+    /**
71
+     * @param string
72
+     */
73
+    public static function badInput($reason = 'Invalid user input')
74
+    {
75
+        abort(400, $reason);
76
+    }
77
+
70 78
     /**
71 79
      * @param $param string
72 80
      * @param $values string[]

Loading…
Cancel
Save