@@ -40,6 +40,10 @@ |
||
40 | 40 | } |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param Schedule $schedule |
|
45 | + * @param string $task |
|
46 | + */ |
|
43 | 47 | public function execute($schedule, $task) |
44 | 48 | { |
45 | 49 | $condition = new Condition(); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @param type $request |
85 | 85 | * @param type $e |
86 | 86 | * |
87 | - * @return type mixed |
|
87 | + * @return \Symfony\Component\HttpFoundation\Response|\Illuminate\Http\Response mixed |
|
88 | 88 | */ |
89 | 89 | public function render500($request, $e) |
90 | 90 | { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @param type $request |
105 | 105 | * @param type $e |
106 | 106 | * |
107 | - * @return type mixed |
|
107 | + * @return \Illuminate\Http\RedirectResponse|\Symfony\Component\HttpFoundation\Response mixed |
|
108 | 108 | */ |
109 | 109 | public function render404($request, $e) |
110 | 110 | { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * @param type $request |
130 | 130 | * @param type $e |
131 | 131 | * |
132 | - * @return type mixed |
|
132 | + * @return \Symfony\Component\HttpFoundation\Response|\Illuminate\Http\RedirectResponse mixed |
|
133 | 133 | */ |
134 | 134 | public function renderDB($request, $e) |
135 | 135 | { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * Common finction to render both types of codes. |
149 | 149 | * |
150 | 150 | * @param type $request |
151 | - * @param type $e |
|
151 | + * @param Exception $e |
|
152 | 152 | * |
153 | 153 | * @return type mixed |
154 | 154 | */ |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $debug = \Config::get('app.bugsnag_reporting'); |
46 | 46 | $debug = ($debug) ? 'true' : 'false'; |
47 | 47 | if ($debug == 'false') { |
48 | - Bugsnag::setBeforeNotifyFunction(function ($error) { |
|
48 | + Bugsnag::setBeforeNotifyFunction(function($error) { |
|
49 | 49 | return false; |
50 | 50 | }); |
51 | 51 | } else { |
@@ -51,6 +51,9 @@ |
||
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
54 | + /** |
|
55 | + * @param string $file |
|
56 | + */ |
|
54 | 57 | public static function pathToLogFile($file) |
55 | 58 | { |
56 | 59 | $logsPath = storage_path('logs'); |
@@ -41,6 +41,9 @@ discard block |
||
41 | 41 | $this->rackspace_username = $this->rackspaceUsername(); |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param string $option |
|
46 | + */ |
|
44 | 47 | protected function settings($option) |
45 | 48 | { |
46 | 49 | $settings = new CommonSettings(); |
@@ -179,6 +182,9 @@ discard block |
||
179 | 182 | ]; |
180 | 183 | } |
181 | 184 | |
185 | + /** |
|
186 | + * @param string $filename |
|
187 | + */ |
|
182 | 188 | public function upload($data, $filename, $type, $size, $disposition, $thread_id) |
183 | 189 | { |
184 | 190 | $upload = new Ticket_attachments(); |
@@ -219,6 +225,9 @@ discard block |
||
219 | 225 | } |
220 | 226 | } |
221 | 227 | |
228 | + /** |
|
229 | + * @param string $filename |
|
230 | + */ |
|
222 | 231 | public function updateBody($attachment, $thread_id, $filename) |
223 | 232 | { |
224 | 233 | $structure = $attachment->getStructure(); |
@@ -67,7 +67,6 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * creating a new agent. |
69 | 69 | * |
70 | - * @param Assign_team_agent $team_assign_agent |
|
71 | 70 | * @param Timezones $timezone |
72 | 71 | * @param Groups $group |
73 | 72 | * @param Department $department |
@@ -105,9 +104,8 @@ discard block |
||
105 | 104 | * |
106 | 105 | * @param User $user |
107 | 106 | * @param AgentRequest $request |
108 | - * @param Assign_team_agent $team_assign_agent |
|
109 | 107 | * |
110 | - * @return type Response |
|
108 | + * @return \Illuminate\Http\RedirectResponse Response |
|
111 | 109 | */ |
112 | 110 | public function store(User $user, AgentRequest $request) |
113 | 111 | { |
@@ -209,7 +207,7 @@ discard block |
||
209 | 207 | * @param type AgentUpdate $request |
210 | 208 | * @param type Assign_team_agent $team_assign_agent |
211 | 209 | * |
212 | - * @return type Response |
|
210 | + * @return \Illuminate\Http\RedirectResponse Response |
|
213 | 211 | */ |
214 | 212 | public function update($id, User $user, AgentUpdate $request, Assign_team_agent $team_assign_agent) |
215 | 213 | { |
@@ -285,7 +283,7 @@ discard block |
||
285 | 283 | /** |
286 | 284 | * Generate a random string for password. |
287 | 285 | * |
288 | - * @param type $length |
|
286 | + * @param integer $length |
|
289 | 287 | * |
290 | 288 | * @return string |
291 | 289 | */ |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * @param BanRequest $request |
76 | 76 | * @param User $user |
77 | 77 | * |
78 | - * @return type Response |
|
78 | + * @return \Illuminate\Http\RedirectResponse Response |
|
79 | 79 | */ |
80 | 80 | public function store(BanRequest $request, User $user) |
81 | 81 | { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * @param User $ban |
131 | 131 | * @param BanlistRequest $request |
132 | 132 | * |
133 | - * @return type Response |
|
133 | + * @return \Illuminate\Http\RedirectResponse Response |
|
134 | 134 | */ |
135 | 135 | public function update($id, User $ban, BanlistRequest $request) |
136 | 136 | { |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * @param type $id |
155 | 155 | * @param \App\User $ban |
156 | 156 | * |
157 | - * @return type view |
|
157 | + * @return \Illuminate\Http\RedirectResponse view |
|
158 | 158 | */ |
159 | 159 | public function delete($id, User $ban) |
160 | 160 | { |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use App\Http\Requests\helpdesk\BanlistRequest; |
9 | 9 | use App\Http\Requests\helpdesk\BanRequest; |
10 | 10 | // model |
11 | -use App\Model\helpdesk\Email\Banlist; |
|
12 | 11 | use App\User; |
13 | 12 | //classes |
14 | 13 | use Exception; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * @param type $id |
47 | 47 | * @param \App\Http\Requests\helpdesk\WorkflowCloseRequest $request |
48 | 48 | * |
49 | - * @return type redirect |
|
49 | + * @return \Illuminate\Http\RedirectResponse redirect |
|
50 | 50 | */ |
51 | 51 | public function update($id, WorkflowCloseRequest $request) |
52 | 52 | { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @param type Department $department |
99 | 99 | * @param type DepartmentRequest $request |
100 | 100 | * |
101 | - * @return type Response |
|
101 | + * @return \Illuminate\Http\RedirectResponse Response |
|
102 | 102 | */ |
103 | 103 | public function store(Department $department, DepartmentRequest $request) |
104 | 104 | { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * @param type Department $department |
182 | 182 | * @param type DepartmentUpdate $request |
183 | 183 | * |
184 | - * @return type Response |
|
184 | + * @return \Illuminate\Http\RedirectResponse Response |
|
185 | 185 | */ |
186 | 186 | public function update($id, Group_assign_department $group_assign_department, Department $department, DepartmentUpdate $request) |
187 | 187 | { |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * @param type Department $department |
231 | 231 | * @param type Group_assign_department $group_assign_department |
232 | 232 | * |
233 | - * @return type Response |
|
233 | + * @return \Illuminate\Http\RedirectResponse Response |
|
234 | 234 | */ |
235 | 235 | public function destroy($id, Department $department, Group_assign_department $group_assign_department, System $system, Tickets $tickets) |
236 | 236 | { |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use App\Model\helpdesk\Agent\Teams; |
15 | 15 | use App\Model\helpdesk\Email\Emails; |
16 | 16 | use App\Model\helpdesk\Email\Template; |
17 | -use App\Model\helpdesk\Manage\Help_topic; |
|
18 | 17 | use App\Model\helpdesk\Manage\Sla_plan; |
19 | 18 | use App\Model\helpdesk\Settings\System; |
20 | 19 | use App\Model\helpdesk\Ticket\Tickets; |
@@ -95,9 +95,9 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * Check for email input validation. |
97 | 97 | * |
98 | - * @param EmailsRequest $request |
|
98 | + * @param MailRequest $request |
|
99 | 99 | * |
100 | - * @return int |
|
100 | + * @return \Illuminate\Http\JsonResponse|null |
|
101 | 101 | */ |
102 | 102 | public function validatingEmailSettings(MailRequest $request, $id = '') |
103 | 103 | { |
@@ -134,6 +134,10 @@ discard block |
||
134 | 134 | } |
135 | 135 | } |
136 | 136 | |
137 | + /** |
|
138 | + * @param integer $out |
|
139 | + * @param integer $in |
|
140 | + */ |
|
137 | 141 | public function validateEmailError($out, $in) |
138 | 142 | { |
139 | 143 | if ($out !== 1) { |
@@ -144,6 +148,9 @@ discard block |
||
144 | 148 | } |
145 | 149 | } |
146 | 150 | |
151 | + /** |
|
152 | + * @param string $type |
|
153 | + */ |
|
147 | 154 | public function jsonResponse($type, $message) |
148 | 155 | { |
149 | 156 | if ($type == 'fails') { |
@@ -161,8 +168,9 @@ discard block |
||
161 | 168 | * |
162 | 169 | * @param type Emails $email |
163 | 170 | * @param type EmailsRequest $request |
171 | + * @param MailRequest $request |
|
164 | 172 | * |
165 | - * @return type Redirect |
|
173 | + * @return integer Redirect |
|
166 | 174 | */ |
167 | 175 | public function store($request, $service_request = [], $id = '') |
168 | 176 | { |
@@ -237,6 +245,9 @@ discard block |
||
237 | 245 | return 1; |
238 | 246 | } |
239 | 247 | |
248 | + /** |
|
249 | + * @param MailRequest $request |
|
250 | + */ |
|
240 | 251 | public function checkMail($request) |
241 | 252 | { |
242 | 253 | $mailservice_id = $request->input('sending_protocol'); |
@@ -361,9 +372,9 @@ discard block |
||
361 | 372 | /** |
362 | 373 | * Check for email input validation. |
363 | 374 | * |
364 | - * @param EmailsRequest $request |
|
375 | + * @param MailRequest $request |
|
365 | 376 | * |
366 | - * @return int |
|
377 | + * @return \Illuminate\Http\JsonResponse|null |
|
367 | 378 | */ |
368 | 379 | public function validatingEmailSettingsUpdate($id, MailRequest $request) |
369 | 380 | { |
@@ -384,7 +395,7 @@ discard block |
||
384 | 395 | /** |
385 | 396 | * Update the specified resource in storage. |
386 | 397 | * |
387 | - * @param type $id |
|
398 | + * @param string $id |
|
388 | 399 | * @param type Emails $email |
389 | 400 | * @param type EmailsEditRequest $request |
390 | 401 | * |
@@ -416,7 +427,7 @@ discard block |
||
416 | 427 | * @param type int $id |
417 | 428 | * @param type Emails $email |
418 | 429 | * |
419 | - * @return type Redirect |
|
430 | + * @return \Illuminate\Http\RedirectResponse Redirect |
|
420 | 431 | */ |
421 | 432 | public function destroy($id, Emails $email) |
422 | 433 | { |
@@ -444,9 +455,9 @@ discard block |
||
444 | 455 | /** |
445 | 456 | * Create imap connection. |
446 | 457 | * |
447 | - * @param type $request |
|
458 | + * @param MailRequest $request |
|
448 | 459 | * |
449 | - * @return type int |
|
460 | + * @return integer int |
|
450 | 461 | */ |
451 | 462 | public function getImapStream($request) |
452 | 463 | { |
@@ -479,7 +490,7 @@ discard block |
||
479 | 490 | * |
480 | 491 | * @param type $imap_stream |
481 | 492 | * |
482 | - * @return type int |
|
493 | + * @return integer int |
|
483 | 494 | */ |
484 | 495 | public function checkImapStream($imap_stream) |
485 | 496 | { |
@@ -507,14 +507,14 @@ |
||
507 | 507 | if ($request->input('sending_protocol') == 'smtp') { |
508 | 508 | $mail = new \PHPMailer(); |
509 | 509 | $mail->isSMTP(); |
510 | - $mail->Host = $request->input('sending_host'); // Specify main and backup SMTP servers |
|
510 | + $mail->Host = $request->input('sending_host'); // Specify main and backup SMTP servers |
|
511 | 511 | //$mail->SMTPAuth = true; // Enable SMTP authentication |
512 | - $mail->Username = $request->input('email_address'); // SMTP username |
|
513 | - $mail->Password = $request->input('password'); // SMTP password |
|
512 | + $mail->Username = $request->input('email_address'); // SMTP username |
|
513 | + $mail->Password = $request->input('password'); // SMTP password |
|
514 | 514 | $mail->SMTPSecure = $request->input('sending_encryption'); // Enable TLS encryption, `ssl` also accepted |
515 | - $mail->Port = $request->input('sending_port'); // TCP port to connect to |
|
515 | + $mail->Port = $request->input('sending_port'); // TCP port to connect to |
|
516 | 516 | if (!$request->input('smtp_validate')) { |
517 | - $mail->SMTPAuth = true; // Enable SMTP authentication |
|
517 | + $mail->SMTPAuth = true; // Enable SMTP authentication |
|
518 | 518 | $mail->SMTPOptions = [ |
519 | 519 | 'ssl' => [ |
520 | 520 | 'verify_peer' => false, |