We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 118-120 (lines=3) @@ | ||
| 115 | 'value.required' => 'A valid value is required.', |
|
| 116 | ]); |
|
| 117 | ||
| 118 | if ($validator->fails()) { |
|
| 119 | return response()->json(['error' => ['message' => $validator->errors()->first()]]); |
|
| 120 | } |
|
| 121 | ||
| 122 | // VALIDATION FOR TITLES |
|
| 123 | if ($request['name'] == 'title') { |
|
| @@ 134-136 (lines=3) @@ | ||
| 131 | 'title.unique' => 'A menu with this name already exists!', |
|
| 132 | ]); |
|
| 133 | ||
| 134 | if ($validator->fails()) { |
|
| 135 | return response()->json(['error' => ['message' => $validator->errors()->first()]]); |
|
| 136 | } |
|
| 137 | } |
|
| 138 | ||
| 139 | // VALIDATION FOR LINKS |
|
| @@ 151-153 (lines=3) @@ | ||
| 148 | 'link' => 'active_url', |
|
| 149 | ]); |
|
| 150 | ||
| 151 | if ($validator->fails()) { |
|
| 152 | return response()->json(['error' => ['message' => $validator->errors()->first()]]); |
|
| 153 | } |
|
| 154 | } |
|
| 155 | } |
|
| 156 | } |
|