Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2021-12-17 06:19:23 +00:00
committed by Manish Verma
parent 2f985011e9
commit 8ef067dbc5
23 changed files with 47 additions and 57 deletions

View File

@@ -95,7 +95,7 @@ class CannedController extends Controller
/**
* Show the form for editing the Canned Response.
*
* @param type $id
* @param type $id
* @param type Canned $canned
*
* @return type View
@@ -115,7 +115,7 @@ class CannedController extends Controller
/**
* Update the Canned Response in database.
*
* @param type $id
* @param type $id
* @param type CannedUpdateRequest $request
* @param type Canned $canned
*
@@ -142,7 +142,7 @@ class CannedController extends Controller
/**
* Delete the Canned Response from storage.
*
* @param type $id
* @param type $id
* @param type Canned $canned
*
* @return type Redirect

View File

@@ -922,7 +922,9 @@ class FilterController extends Controller
return $table->whereIn('tickets.source', $sources);
}
/** DEPRICATED.
/**
* DEPRICATED.
*
* @category function to get array of status to filter tickets
*
* @param string $status

View File

@@ -167,7 +167,7 @@ class OrganizationController extends Controller
/**
* Display the specified organization.
*
* @param type $id
* @param type $id
* @param type Organization $org
*
* @return type view
@@ -187,7 +187,7 @@ class OrganizationController extends Controller
/**
* Show the form for editing the specified organization.
*
* @param type $id
* @param type $id
* @param type Organization $org
*
* @return type view
@@ -207,7 +207,7 @@ class OrganizationController extends Controller
/**
* Update the specified organization in storage.
*
* @param type $id
* @param type $id
* @param type Organization $org
* @param type OrganizationUpdate $request
*

View File

@@ -441,7 +441,7 @@ class TicketController extends Controller
/**
* Ticket edit and save ticket data.
*
* @param type $ticket_id
* @param type $ticket_id
* @param type Ticket_Thread $thread
*
* @return type bool
@@ -485,8 +485,7 @@ class TicketController extends Controller
*/
public function ticket_print($id)
{
$tickets = Tickets::
leftJoin('ticket_thread', function ($join) {
$tickets = Tickets::leftJoin('ticket_thread', function ($join) {
$join->on('tickets.id', '=', 'ticket_thread.ticket_id')
->whereNotNull('ticket_thread.title');
})
@@ -1118,7 +1117,7 @@ class TicketController extends Controller
/**
* function to Ticket Close.
*
* @param type $id
* @param type $id
* @param type Tickets $ticket
*
* @return type string
@@ -1182,7 +1181,7 @@ class TicketController extends Controller
/**
* function to Ticket resolved.
*
* @param type $id
* @param type $id
* @param type Tickets $ticket
*
* @return type string
@@ -1228,7 +1227,7 @@ class TicketController extends Controller
/**
* function to Open Ticket.
*
* @param type $id
* @param type $id
* @param type Tickets $ticket
*
* @return type
@@ -1268,7 +1267,7 @@ class TicketController extends Controller
/**
* Function to delete ticket.
*
* @param type $id
* @param type $id
* @param type Tickets $ticket
*
* @return type string
@@ -1321,7 +1320,7 @@ class TicketController extends Controller
/**
* Function to ban an email.
*
* @param type $id
* @param type $id
* @param type Tickets $ticket
*
* @return type string
@@ -2710,9 +2709,9 @@ class TicketController extends Controller
/**
* chumper's function to return data to chumper datatable.
*
* @param Array-object $tickets
* @param array-object $tickets
*
* @return Array-object
* @return array-object
*/
public static function genreateTableJson($tickets)
{

View File

@@ -690,7 +690,7 @@ class UserController extends Controller
}
}
$users->mobile = ($request->input('mobile') == '') ? null : $request->input('mobile');
$users->fill($request->except('mobile','active','role','is_delete','ban'));
$users->fill($request->except('mobile', 'active', 'role', 'is_delete', 'ban'));
$users->save();
if ($request->input('org_id') != '') {
$orgid = $request->input('org_id');
@@ -765,7 +765,7 @@ class UserController extends Controller
}
$user->country_code = $request->country_code;
}
$user->fill($request->except('profile_pic', 'mobile','active','role','is_delete','ban'));
$user->fill($request->except('profile_pic', 'mobile', 'active', 'role', 'is_delete', 'ban'));
$user->gender = $request->input('gender');
$user->save();
if (Input::file('profile_pic')) {

View File

@@ -259,7 +259,7 @@ class ArticleController extends Controller
/**
* Delete an Agent by id.
*
* @param type $id
* @param type $id
* @param type Article $article
*
* @return Response

View File

@@ -158,7 +158,7 @@ class CategoryController extends Controller
/**
* Show the form for editing the specified category.
*
* @param type $slug
* @param type $slug
* @param type Category $category
*
* @return type view
@@ -175,7 +175,7 @@ class CategoryController extends Controller
/**
* Update the specified Category in storage.
*
* @param type $slug
* @param type $slug
* @param type Category $category
* @param type CategoryUpdate $request
*
@@ -204,7 +204,7 @@ class CategoryController extends Controller
/**
* Remove the specified category from storage.
*
* @param type $id
* @param type $id
* @param type Category $category
* @param type Relationship $relation
*

View File

@@ -160,7 +160,7 @@ class PageController extends Controller
/**
* To update a page.
*
* @param type $slug
* @param type $slug
* @param type PageUpdate $request
*
* @return type redirect

View File

@@ -6,19 +6,15 @@ namespace App\Http\Controllers\Agent\kb;
use App\Http\Controllers\Agent\helpdesk\TicketController;
use App\Http\Controllers\Controller;
// Request
use App\Http\Requests\kb\ProfilePassword;
use App\Http\Requests\kb\ProfileRequest;
use App\Http\Requests\kb\SettingsRequests;
use App\Model\helpdesk\Utility\Date_format;
// Model
use App\Model\helpdesk\Utility\Timezones;
use App\Model\kb\Comment;
use App\Model\kb\Settings;
use Auth;
// Classes
use Config;
use Exception;
use Hash;
use Illuminate\Http\Request;
use Image;
use Input;
@@ -171,7 +167,7 @@ class SettingsController extends Controller
/**
* Admin can publish the comment.
*
* @param type $id
* @param type $id
* @param type Comment $comment
*
* @return bool
@@ -190,7 +186,7 @@ class SettingsController extends Controller
/**
* delete the comment.
*
* @param type $id
* @param type $id
* @param type Comment $comment
*
* @return type