@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * @param type Groups $group |
| 78 | 78 | * @param type GroupRequest $request |
| 79 | 79 | * |
| 80 | - * @return type Response |
|
| 80 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 81 | 81 | */ |
| 82 | 82 | public function store(Groups $group, GroupRequest $request) |
| 83 | 83 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * @param type Groups $group |
| 119 | 119 | * @param type Request $request |
| 120 | 120 | * |
| 121 | - * @return type Response |
|
| 121 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 122 | 122 | */ |
| 123 | 123 | public function update($id, Groups $group, GroupUpdateRequest $request) |
| 124 | 124 | { |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * @param type Groups $group |
| 188 | 188 | * @param type Group_assign_department $group_assign_department |
| 189 | 189 | * |
| 190 | - * @return type Response |
|
| 190 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 191 | 191 | */ |
| 192 | 192 | public function destroy($id, Groups $group, Group_assign_department $group_assign_department) |
| 193 | 193 | { |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use Exception; |
| 16 | 16 | // classes |
| 17 | 17 | use Illuminate\Http\Request; |
| 18 | -use Illuminate\Support\Facades\Input; |
|
| 19 | 18 | use Lang; |
| 20 | 19 | |
| 21 | 20 | /** |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * @param type Help_topic $topic |
| 102 | 102 | * @param type HelptopicRequest $request |
| 103 | 103 | * |
| 104 | - * @return type Response |
|
| 104 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 105 | 105 | */ |
| 106 | 106 | public function store(Help_topic $topic, HelptopicRequest $request) |
| 107 | 107 | { |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | * @param type Help_topic $topic |
| 167 | 167 | * @param type HelptopicUpdate $request |
| 168 | 168 | * |
| 169 | - * @return type Response |
|
| 169 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 170 | 170 | */ |
| 171 | 171 | public function update($id, Help_topic $topic, HelptopicUpdate $request) |
| 172 | 172 | { |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | * @param type int $id |
| 207 | 207 | * @param type Help_topic $topic |
| 208 | 208 | * |
| 209 | - * @return type Response |
|
| 209 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 210 | 210 | */ |
| 211 | 211 | public function destroy($id, Help_topic $topic, Ticket $ticket_setting) |
| 212 | 212 | { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * |
| 43 | 43 | * @param type "" $lang |
| 44 | 44 | * |
| 45 | - * @return type response |
|
| 45 | + * @return \Illuminate\Http\RedirectResponse response |
|
| 46 | 46 | */ |
| 47 | 47 | public function switchLanguage($lang) |
| 48 | 48 | { |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | /** |
| 207 | 207 | * allow user to download language template file. |
| 208 | 208 | * |
| 209 | - * @return type |
|
| 209 | + * @return \Symfony\Component\HttpFoundation\BinaryFileResponse |
|
| 210 | 210 | */ |
| 211 | 211 | public function download() |
| 212 | 212 | { |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | // requests |
| 8 | 8 | use App\Http\Controllers\Controller; |
| 9 | 9 | //supports |
| 10 | -use App\Http\Requests; |
|
| 11 | 10 | use Config; |
| 12 | 11 | //classes |
| 13 | 12 | use File; |
@@ -82,27 +82,27 @@ discard block |
||
| 82 | 82 | public function getLanguages() |
| 83 | 83 | { |
| 84 | 84 | $path = base_path('resources/lang'); |
| 85 | - $values = scandir($path); //Extracts names of directories present in lang directory |
|
| 85 | + $values = scandir($path); //Extracts names of directories present in lang directory |
|
| 86 | 86 | $values = array_slice($values, 2); // skips array element $value[0] = '.' & $value[1] = '..' |
| 87 | 87 | return \Datatable::collection(new Collection($values)) |
| 88 | - ->addColumn('language', function ($model) { |
|
| 88 | + ->addColumn('language', function($model) { |
|
| 89 | 89 | if ($model == Config::get('app.fallback_locale')) { |
| 90 | 90 | return Config::get('languages.'.$model).' ('.Lang::get('lang.default').')'; |
| 91 | 91 | } else { |
| 92 | 92 | return Config::get('languages.'.$model); |
| 93 | 93 | } |
| 94 | 94 | }) |
| 95 | - ->addColumn('id', function ($model) { |
|
| 95 | + ->addColumn('id', function($model) { |
|
| 96 | 96 | return $model; |
| 97 | 97 | }) |
| 98 | - ->addColumn('status', function ($model) { |
|
| 98 | + ->addColumn('status', function($model) { |
|
| 99 | 99 | if (Lang::getLocale() === $model) { |
| 100 | 100 | return "<span style='color:green'>".Lang::trans('lang.active').'</span>'; |
| 101 | 101 | } else { |
| 102 | 102 | return "<span style='color:red'>".Lang::trans('lang.inactive').'</span>'; |
| 103 | 103 | } |
| 104 | 104 | }) |
| 105 | - ->addColumn('Action', function ($model) { |
|
| 105 | + ->addColumn('Action', function($model) { |
|
| 106 | 106 | if (Lang::getLocale() === $model) { |
| 107 | 107 | return "<a href='change-language/".$model."'><input type='button' class='btn btn-info btn-xs btn-flat' disabled value='".Lang::trans('lang.disable')."'/></a> |
| 108 | 108 | <a href='change-language/".$model."' class='btn btn-danger btn-xs btn-flat' disabled><i class='fa fa-trash' style='color:black;'> </i> ".Lang::trans('lang.delete').'</a>'; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | { |
| 228 | 228 | if ($lang !== App::getLocale()) { |
| 229 | 229 | if ($lang !== Config::get('app.fallback_locale')) { |
| 230 | - $deletePath = base_path('resources/lang').'/'.$lang; //define file path to delete |
|
| 230 | + $deletePath = base_path('resources/lang').'/'.$lang; //define file path to delete |
|
| 231 | 231 | $success = File::deleteDirectory($deletePath); //remove extracted folder and it's subfolder from lang |
| 232 | 232 | if ($success) { |
| 233 | 233 | //sending back with success message |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | /** |
| 144 | 144 | * @param PriorityRequest $request |
| 145 | 145 | * |
| 146 | - * @return type |
|
| 146 | + * @return \Illuminate\Http\RedirectResponse |
|
| 147 | 147 | */ |
| 148 | 148 | public function priorityEdit1(PriorityRequest $request) |
| 149 | 149 | { |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | /** |
| 169 | 169 | * @param type $priority_id |
| 170 | 170 | * |
| 171 | - * @return type |
|
| 171 | + * @return \Illuminate\Http\RedirectResponse |
|
| 172 | 172 | */ |
| 173 | 173 | public function destroy($priority_id) |
| 174 | 174 | { |
@@ -10,17 +10,14 @@ |
||
| 10 | 10 | use App\Http\Requests\helpdesk\PriorityRequest; |
| 11 | 11 | // models |
| 12 | 12 | use App\Model\helpdesk\Email\Emails; |
| 13 | -use App\Model\helpdesk\Manage\Help_topic; |
|
| 14 | 13 | use App\Model\helpdesk\Settings\CommonSettings; |
| 15 | 14 | use App\Model\helpdesk\Settings\Email; |
| 16 | 15 | use App\Model\helpdesk\Ticket\Ticket_Priority; |
| 17 | -use Auth; |
|
| 18 | 16 | use DB; |
| 19 | 17 | use Exception; |
| 20 | 18 | // classes |
| 21 | 19 | use Illuminate\Http\Request; |
| 22 | 20 | use Illuminate\support\Collection; |
| 23 | -use Input; |
|
| 24 | 21 | use Lang; |
| 25 | 22 | |
| 26 | 23 | /** |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $user_status = CommonSettings::where('option_name', '=', 'user_priority')->first(); |
| 48 | 48 | // dd( $user_status); |
| 49 | 49 | |
| 50 | - return view('themes.default1.admin.helpdesk.manage.ticket_priority.index', compact('user_status')); |
|
| 50 | + return view('themes.default1.admin.helpdesk.manage.ticket_priority.index', compact('user_status')); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -79,10 +79,10 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | return \Datatable::Collection($tickets) |
| 81 | 81 | ->showColumns('priority', 'priority_desc') |
| 82 | - ->addColumn('priority_color', function ($model) { |
|
| 82 | + ->addColumn('priority_color', function($model) { |
|
| 83 | 83 | return "<button class='btn' style = 'background-color:$model->priority_color'></button>"; |
| 84 | 84 | }) |
| 85 | - ->addColumn('status', function ($model) { |
|
| 85 | + ->addColumn('status', function($model) { |
|
| 86 | 86 | if ($model->status == 1) { |
| 87 | 87 | return "<a style='color:green'>active</a>"; |
| 88 | 88 | } elseif ($model->status == 0) { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | return "<a style='color:red'>inactive</a>"; |
| 93 | 93 | } |
| 94 | 94 | }) |
| 95 | - ->addColumn('action', function ($model) { |
|
| 95 | + ->addColumn('action', function($model) { |
|
| 96 | 96 | if ($model->is_default > 0) { |
| 97 | 97 | return '<a href='.url('ticket/priority/'.$model->priority_id.'/edit')." class='btn btn-info btn-xs' disabled='disabled'>Edit</a> <a href=".url('ticket/priority/'.$model->priority_id.'/destroy')." class='btn btn-warning btn-info btn-xs' disabled='disabled' > delete </a>"; |
| 98 | 98 | } else { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * @param type int $id |
| 78 | 78 | * @param type ProfileRequest $request |
| 79 | 79 | * |
| 80 | - * @return type Response |
|
| 80 | + * @return \Illuminate\Http\RedirectResponse|null Response |
|
| 81 | 81 | */ |
| 82 | 82 | public function postProfile($id, ProfileRequest $request) |
| 83 | 83 | { |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * @param type User $user |
| 121 | 121 | * @param type ProfilePassword $request |
| 122 | 122 | * |
| 123 | - * @return type Response |
|
| 123 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 124 | 124 | */ |
| 125 | 125 | public function postProfilePassword($id, User $user, ProfilePassword $request) |
| 126 | 126 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Update security details. |
| 74 | 74 | * |
| 75 | - * @return Response |
|
| 75 | + * @return \Illuminate\Http\RedirectResponse |
|
| 76 | 76 | */ |
| 77 | 77 | public function update($id, SecurityRequest $request) |
| 78 | 78 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * @param type $field |
| 101 | 101 | * @param \App\Http\Controllers\Admin\helpdesk\Help_topic $help_topic |
| 102 | 102 | * |
| 103 | - * @return type redirect |
|
| 103 | + * @return \Illuminate\Http\RedirectResponse redirect |
|
| 104 | 104 | */ |
| 105 | 105 | public function delete($id, Security $securitys, Fields $field, Help_topic $help_topic) |
| 106 | 106 | { |
@@ -8,9 +8,7 @@ |
||
| 8 | 8 | use App\Http\Requests\helpdesk\SecurityRequest; |
| 9 | 9 | use App\Model\helpdesk\Settings\Security; |
| 10 | 10 | // Request |
| 11 | -use Illuminate\Http\Request; |
|
| 12 | 11 | // Class |
| 13 | -use Input; |
|
| 14 | 12 | use Lang; |
| 15 | 13 | use Redirect; |
| 16 | 14 | |
@@ -61,7 +61,6 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * @param int $id |
|
| 65 | 64 | * @param $compant instance of company table |
| 66 | 65 | * |
| 67 | 66 | * get the form for company setting page |
@@ -87,7 +86,7 @@ discard block |
||
| 87 | 86 | * @param type Company $company |
| 88 | 87 | * @param type CompanyRequest $request |
| 89 | 88 | * |
| 90 | - * @return Response |
|
| 89 | + * @return \Illuminate\Http\RedirectResponse |
|
| 91 | 90 | */ |
| 92 | 91 | public function postcompany($id, Company $company, CompanyRequest $request) |
| 93 | 92 | { |
@@ -117,7 +116,7 @@ discard block |
||
| 117 | 116 | /** |
| 118 | 117 | * function to delete system logo. |
| 119 | 118 | * |
| 120 | - * @return type string |
|
| 119 | + * @return string string |
|
| 121 | 120 | */ |
| 122 | 121 | public function deleteLogo() |
| 123 | 122 | { |
@@ -180,7 +179,7 @@ discard block |
||
| 180 | 179 | * @param type System $system |
| 181 | 180 | * @param type SystemRequest $request |
| 182 | 181 | * |
| 183 | - * @return type Response |
|
| 182 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 184 | 183 | */ |
| 185 | 184 | public function postsystem($id, System $system, SystemRequest $request) |
| 186 | 185 | { |
@@ -255,7 +254,7 @@ discard block |
||
| 255 | 254 | * @param type Ticket $ticket |
| 256 | 255 | * @param type Request $request |
| 257 | 256 | * |
| 258 | - * @return type Response |
|
| 257 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 259 | 258 | */ |
| 260 | 259 | public function postticket($id, Ticket $ticket, Request $request) |
| 261 | 260 | { |
@@ -315,7 +314,7 @@ discard block |
||
| 315 | 314 | * @param type Email $email |
| 316 | 315 | * @param type EmailRequest $request |
| 317 | 316 | * |
| 318 | - * @return type Response |
|
| 317 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 319 | 318 | */ |
| 320 | 319 | public function postemail($id, Email $email, EmailRequest $request) |
| 321 | 320 | { |
@@ -407,7 +406,7 @@ discard block |
||
| 407 | 406 | * @param type Email $email |
| 408 | 407 | * @param type EmailRequest $request |
| 409 | 408 | * |
| 410 | - * @return type Response |
|
| 409 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 411 | 410 | */ |
| 412 | 411 | public function postSchedular(Email $email, Template $template, Emails $email1, TaskRequest $request, WorkflowClose $workflow) |
| 413 | 412 | { |
@@ -467,7 +466,7 @@ discard block |
||
| 467 | 466 | * @param type Responder $responder |
| 468 | 467 | * @param type Request $request |
| 469 | 468 | * |
| 470 | - * @return type |
|
| 469 | + * @return \Illuminate\Http\RedirectResponse |
|
| 471 | 470 | */ |
| 472 | 471 | public function postresponder(Responder $responder, Request $request) |
| 473 | 472 | { |
@@ -517,7 +516,7 @@ discard block |
||
| 517 | 516 | * @param type Alert $alert |
| 518 | 517 | * @param type Request $request |
| 519 | 518 | * |
| 520 | - * @return type Response |
|
| 519 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 521 | 520 | */ |
| 522 | 521 | public function postalert($id, Alert $alert, Request $request) |
| 523 | 522 | { |
@@ -582,7 +581,7 @@ discard block |
||
| 582 | 581 | /** |
| 583 | 582 | * Generate Api key. |
| 584 | 583 | * |
| 585 | - * @return type json |
|
| 584 | + * @return string json |
|
| 586 | 585 | */ |
| 587 | 586 | public function generateApiKey() |
| 588 | 587 | { |
@@ -602,7 +601,6 @@ discard block |
||
| 602 | 601 | } |
| 603 | 602 | |
| 604 | 603 | /** |
| 605 | - * @param int $id |
|
| 606 | 604 | * @param $compant instance of company table |
| 607 | 605 | * |
| 608 | 606 | * get the form for company setting page |
@@ -647,7 +645,7 @@ discard block |
||
| 647 | 645 | * |
| 648 | 646 | * get the form for company setting page |
| 649 | 647 | * |
| 650 | - * @return Response |
|
| 648 | + * @return \Illuminate\Http\RedirectResponse |
|
| 651 | 649 | */ |
| 652 | 650 | public function editStatuses($id, StatusRequest $request) |
| 653 | 651 | { |
@@ -679,7 +677,7 @@ discard block |
||
| 679 | 677 | * @param \App\Model\helpdesk\Ticket\Ticket_Status $statuss |
| 680 | 678 | * @param \App\Http\Requests\helpdesk\StatusRequest $request |
| 681 | 679 | * |
| 682 | - * @return type redirect |
|
| 680 | + * @return \Illuminate\Http\RedirectResponse redirect |
|
| 683 | 681 | */ |
| 684 | 682 | public function createStatuses(\App\Model\helpdesk\Ticket\Ticket_Status $statuss, StatusRequest $request) |
| 685 | 683 | { |
@@ -709,7 +707,7 @@ discard block |
||
| 709 | 707 | * |
| 710 | 708 | * @param type $id |
| 711 | 709 | * |
| 712 | - * @return type redirect |
|
| 710 | + * @return \Illuminate\Http\RedirectResponse redirect |
|
| 713 | 711 | */ |
| 714 | 712 | public function deleteStatuses($id) |
| 715 | 713 | { |
@@ -740,7 +738,7 @@ discard block |
||
| 740 | 738 | /** |
| 741 | 739 | * delete a notification. |
| 742 | 740 | * |
| 743 | - * @return type redirect |
|
| 741 | + * @return \Illuminate\Http\RedirectResponse redirect |
|
| 744 | 742 | */ |
| 745 | 743 | public function deleteReadNoti() |
| 746 | 744 | { |
@@ -756,7 +754,7 @@ discard block |
||
| 756 | 754 | /** |
| 757 | 755 | * delete a notification log. |
| 758 | 756 | * |
| 759 | - * @return type redirect |
|
| 757 | + * @return \Illuminate\Http\RedirectResponse redirect |
|
| 760 | 758 | */ |
| 761 | 759 | public function deleteNotificationLog() |
| 762 | 760 | { |
@@ -813,7 +811,7 @@ discard block |
||
| 813 | 811 | /** |
| 814 | 812 | * To store rating data. |
| 815 | 813 | * |
| 816 | - * @return type Redirect |
|
| 814 | + * @return \Illuminate\Http\RedirectResponse Redirect |
|
| 817 | 815 | */ |
| 818 | 816 | public function PostRatingSettings($id, Rating $ratings, RatingUpdateRequest $request) |
| 819 | 817 | { |
@@ -854,7 +852,7 @@ discard block |
||
| 854 | 852 | * @param \App\Model\helpdesk\Ratings\RatingRef $ratingrefs |
| 855 | 853 | * @param \App\Http\Requests\helpdesk\RatingRequest $request |
| 856 | 854 | * |
| 857 | - * @return type redirect |
|
| 855 | + * @return \Illuminate\Http\RedirectResponse redirect |
|
| 858 | 856 | */ |
| 859 | 857 | public function storeRating(Rating $rating, \App\Model\helpdesk\Ratings\RatingRef $ratingrefs, \App\Http\Requests\helpdesk\RatingRequest $request) |
| 860 | 858 | { |
@@ -874,7 +872,7 @@ discard block |
||
| 874 | 872 | /** |
| 875 | 873 | * To delete a type of rating. |
| 876 | 874 | * |
| 877 | - * @return type Redirect |
|
| 875 | + * @return \Illuminate\Http\RedirectResponse Redirect |
|
| 878 | 876 | */ |
| 879 | 877 | public function RatingDelete($slug, \App\Model\helpdesk\Ratings\RatingRef $ratingrefs) |
| 880 | 878 | { |
@@ -96,7 +96,6 @@ discard block |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * @param int $id |
|
| 100 | 99 | * @param $compant instance of company table |
| 101 | 100 | * |
| 102 | 101 | * get the form for company setting page |
@@ -121,7 +120,7 @@ discard block |
||
| 121 | 120 | * |
| 122 | 121 | * get the form for company setting page |
| 123 | 122 | * |
| 124 | - * @return Response |
|
| 123 | + * @return \Illuminate\Http\RedirectResponse |
|
| 125 | 124 | */ |
| 126 | 125 | public function editStatuses($id) |
| 127 | 126 | { |
@@ -187,7 +186,6 @@ discard block |
||
| 187 | 186 | } |
| 188 | 187 | |
| 189 | 188 | /** |
| 190 | - * @param int $id |
|
| 191 | 189 | * @param $compant instance of company table |
| 192 | 190 | * |
| 193 | 191 | * get the form for company setting page |
@@ -213,7 +211,7 @@ discard block |
||
| 213 | 211 | * @param type Company $company |
| 214 | 212 | * @param type CompanyRequest $request |
| 215 | 213 | * |
| 216 | - * @return Response |
|
| 214 | + * @return \Illuminate\Http\RedirectResponse |
|
| 217 | 215 | */ |
| 218 | 216 | public function postcompany($id, Company $company, CompanyRequest $request) |
| 219 | 217 | { |
@@ -243,7 +241,7 @@ discard block |
||
| 243 | 241 | /** |
| 244 | 242 | * function to delete system logo. |
| 245 | 243 | * |
| 246 | - * @return type string |
|
| 244 | + * @return string string |
|
| 247 | 245 | */ |
| 248 | 246 | public function deleteLogo() |
| 249 | 247 | { |
@@ -296,7 +294,7 @@ discard block |
||
| 296 | 294 | * @param type System $system |
| 297 | 295 | * @param type SystemRequest $request |
| 298 | 296 | * |
| 299 | - * @return type Response |
|
| 297 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 300 | 298 | */ |
| 301 | 299 | public function postsystem($id, System $system, SystemRequest $request) |
| 302 | 300 | { |
@@ -348,7 +346,7 @@ discard block |
||
| 348 | 346 | * @param type Ticket $ticket |
| 349 | 347 | * @param type Request $request |
| 350 | 348 | * |
| 351 | - * @return type Response |
|
| 349 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 352 | 350 | */ |
| 353 | 351 | public function postticket($id, Ticket $ticket, Request $request) |
| 354 | 352 | { |
@@ -408,7 +406,7 @@ discard block |
||
| 408 | 406 | * @param type Email $email |
| 409 | 407 | * @param type EmailRequest $request |
| 410 | 408 | * |
| 411 | - * @return type Response |
|
| 409 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 412 | 410 | */ |
| 413 | 411 | public function postemail($id, Email $email, EmailRequest $request) |
| 414 | 412 | { |
@@ -465,7 +463,7 @@ discard block |
||
| 465 | 463 | * @param type Email $email |
| 466 | 464 | * @param type EmailRequest $request |
| 467 | 465 | * |
| 468 | - * @return type Response |
|
| 466 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 469 | 467 | */ |
| 470 | 468 | public function postSchedular(Email $email, Template $template, Emails $email1, Request $request) |
| 471 | 469 | { |
@@ -568,7 +566,7 @@ discard block |
||
| 568 | 566 | * @param type Responder $responder |
| 569 | 567 | * @param type Request $request |
| 570 | 568 | * |
| 571 | - * @return type |
|
| 569 | + * @return \Illuminate\Http\RedirectResponse |
|
| 572 | 570 | */ |
| 573 | 571 | public function postresponder(Responder $responder, Request $request) |
| 574 | 572 | { |
@@ -618,7 +616,7 @@ discard block |
||
| 618 | 616 | * @param type Alert $alert |
| 619 | 617 | * @param type Request $request |
| 620 | 618 | * |
| 621 | - * @return type Response |
|
| 619 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 622 | 620 | */ |
| 623 | 621 | public function postalert($id, Alert $alert, Request $request) |
| 624 | 622 | { |
@@ -695,7 +693,7 @@ discard block |
||
| 695 | 693 | /** |
| 696 | 694 | * To store rating data. |
| 697 | 695 | * |
| 698 | - * @return type Redirect |
|
| 696 | + * @return \Illuminate\Http\RedirectResponse Redirect |
|
| 699 | 697 | */ |
| 700 | 698 | public function PostRatingSettings($slug) |
| 701 | 699 | { |
@@ -720,7 +718,7 @@ discard block |
||
| 720 | 718 | /** |
| 721 | 719 | * To delete a type of rating. |
| 722 | 720 | * |
| 723 | - * @return type Redirect |
|
| 721 | + * @return \Illuminate\Http\RedirectResponse Redirect |
|
| 724 | 722 | */ |
| 725 | 723 | public function RatingDelete($slug) |
| 726 | 724 | { |
@@ -732,7 +730,7 @@ discard block |
||
| 732 | 730 | /** |
| 733 | 731 | * Generate Api key. |
| 734 | 732 | * |
| 735 | - * @return type json |
|
| 733 | + * @return string json |
|
| 736 | 734 | */ |
| 737 | 735 | public function generateApiKey() |
| 738 | 736 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | try { |
| 176 | 176 | if ($id > 5) { |
| 177 | 177 | /* fetch the values of company from company table */ |
| 178 | - \App\Model\helpdesk\Ticket\Ticket_Status::whereId($id)->delete(); |
|
| 178 | + \App\Model\helpdesk\Ticket\Ticket_Status::whereId($id)->delete(); |
|
| 179 | 179 | /* Direct to Company Settings Page */ |
| 180 | 180 | return redirect()->back()->with('success', 'Status has been deleted'); |
| 181 | 181 | } else { |
@@ -446,7 +446,7 @@ discard block |
||
| 446 | 446 | public function getSchedular(Email $email, Template $template, Emails $email1) |
| 447 | 447 | { |
| 448 | 448 | // try { |
| 449 | - /* fetch the values of email from Email table */ |
|
| 449 | + /* fetch the values of email from Email table */ |
|
| 450 | 450 | $emails = $email->whereId('1')->first(); |
| 451 | 451 | /* Fetch the values from Template table */ |
| 452 | 452 | $templates = $template->get(); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * @param type Sla_plan $sla |
| 74 | 74 | * @param type SlaRequest $request |
| 75 | 75 | * |
| 76 | - * @return type Response |
|
| 76 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 77 | 77 | */ |
| 78 | 78 | public function store(Sla_plan $sla, SlaRequest $request) |
| 79 | 79 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * @param type Sla_plan $sla |
| 119 | 119 | * @param type SlaUpdate $request |
| 120 | 120 | * |
| 121 | - * @return type Response |
|
| 121 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 122 | 122 | */ |
| 123 | 123 | public function update($id, SlaUpdate $request) |
| 124 | 124 | { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * @param type int $id |
| 153 | 153 | * @param type Sla_plan $sla |
| 154 | 154 | * |
| 155 | - * @return type Response |
|
| 155 | + * @return \Illuminate\Http\RedirectResponse Response |
|
| 156 | 156 | */ |
| 157 | 157 | public function destroy($id) |
| 158 | 158 | { |
@@ -135,8 +135,8 @@ |
||
| 135 | 135 | /* redirect to Index page with Success Message */ |
| 136 | 136 | if ($request->input('sys_sla') == 'on') { |
| 137 | 137 | \DB::table('settings_ticket') |
| 138 | - ->where('id', '=', 1) |
|
| 139 | - ->update(['sla' => $id]); |
|
| 138 | + ->where('id', '=', 1) |
|
| 139 | + ->update(['sla' => $id]); |
|
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | return redirect('sla')->with('success', Lang::get('lang.sla_plan_updated_successfully')); |