Code Duplication    Length = 28-28 lines in 2 locations

app/Http/Requests/Admin/Eboard/CreateRequest.php 1 location

@@ 5-32 (lines=28) @@
2
3
use WITR\Http\Requests\Request;
4
5
class CreateRequest extends Request {
6
7
	/**
8
	 * Determine if the user is authorized to make this request.
9
	 *
10
	 * @return bool
11
	 */
12
	public function authorize()
13
	{
14
		return true;
15
	}
16
17
	/**
18
	 * Get the validation rules that apply to the request.
19
	 *
20
	 * @return array
21
	 */
22
	public function rules()
23
	{
24
		return [
25
			'position' => 'required',
26
			'name' => 'required',
27
			'email' => 'required|email',
28
			'hours' => 'required'
29
		];
30
	}
31
32
}
33

app/Http/Requests/Admin/Eboard/UpdateRequest.php 1 location

@@ 5-32 (lines=28) @@
2
3
use WITR\Http\Requests\Request;
4
5
class UpdateRequest extends Request {
6
7
	/**
8
	 * Determine if the user is authorized to make this request.
9
	 *
10
	 * @return bool
11
	 */
12
	public function authorize()
13
	{
14
		return true;
15
	}
16
17
	/**
18
	 * Get the validation rules that apply to the request.
19
	 *
20
	 * @return array
21
	 */
22
	public function rules()
23
	{
24
		return [
25
			'position' => 'required',
26
			'name' => 'required',
27
			'email' => 'required|email',
28
			'hours' => 'required'
29
		];
30
	}
31
32
}
33