Quellcode durchsuchen

bad input method

tags/0.1.0
Robin Thoni vor 8 Jahren
Ursprung
Commit
08ebf739f5
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. 8
    0
      src/Utils/LuBusiness.php

+ 8
- 0
src/Utils/LuBusiness.php Datei anzeigen

@@ -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[]

Laden…
Abbrechen
Speichern