@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * Display the form to request a password reset link. |
48 | 48 | * |
49 | - * @return Response |
|
49 | + * @return \Illuminate\Http\RedirectResponse |
|
50 | 50 | */ |
51 | 51 | public function postEmail(Request $request) |
52 | 52 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * |
97 | 97 | * @param \Illuminate\Http\Request $request |
98 | 98 | * |
99 | - * @return \Illuminate\Http\Response |
|
99 | + * @return \Illuminate\Http\RedirectResponse |
|
100 | 100 | */ |
101 | 101 | public function reset(Request $request) |
102 | 102 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * @param type User $user |
163 | 163 | * @param type Sys_userRequest $request |
164 | 164 | * |
165 | - * @return type Response |
|
165 | + * @return \Illuminate\Http\RedirectResponse Response |
|
166 | 166 | */ |
167 | 167 | public function store(User $user, Sys_userRequest $request) |
168 | 168 | { |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * @param type User $user |
238 | 238 | * @param type Sys_userUpdate $request |
239 | 239 | * |
240 | - * @return type Response |
|
240 | + * @return \Illuminate\Http\RedirectResponse Response |
|
241 | 241 | */ |
242 | 242 | public function update($id, User $user, Sys_userUpdate $request) |
243 | 243 | { |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * @param type int $id |
318 | 318 | * @param type ProfileRequest $request |
319 | 319 | * |
320 | - * @return type Response |
|
320 | + * @return \Illuminate\Http\RedirectResponse|null Response |
|
321 | 321 | */ |
322 | 322 | public function postProfileedit(ProfileRequest $request) |
323 | 323 | { |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | * @param type int $id |
360 | 360 | * @param type ProfilePassword $request |
361 | 361 | * |
362 | - * @return type Response |
|
362 | + * @return \Illuminate\Http\RedirectResponse Response |
|
363 | 363 | */ |
364 | 364 | public function postProfilePassword($id, ProfilePassword $request) |
365 | 365 | { |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | * |
381 | 381 | * @param type $id |
382 | 382 | * |
383 | - * @return type boolean |
|
383 | + * @return integer boolean |
|
384 | 384 | */ |
385 | 385 | public function UserAssignOrg($id) |
386 | 386 | { |
@@ -52,9 +52,8 @@ |
||
52 | 52 | /** |
53 | 53 | * reply. |
54 | 54 | * |
55 | - * @param type $value |
|
56 | 55 | * |
57 | - * @return type view |
|
56 | + * @return \Illuminate\Http\RedirectResponse view |
|
58 | 57 | */ |
59 | 58 | public function reply($id, Request $request) |
60 | 59 | { |
@@ -251,9 +251,8 @@ |
||
251 | 251 | /** |
252 | 252 | * reply. |
253 | 253 | * |
254 | - * @param type $value |
|
255 | 254 | * |
256 | - * @return type view |
|
255 | + * @return \Illuminate\Http\RedirectResponse view |
|
257 | 256 | */ |
258 | 257 | public function post_ticket_reply($id, Request $request) { |
259 | 258 | try { |
@@ -73,7 +73,6 @@ discard block |
||
73 | 73 | /** |
74 | 74 | * Save profile data. |
75 | 75 | * |
76 | - * @param type $id |
|
77 | 76 | * @param type ProfileRequest $request |
78 | 77 | * |
79 | 78 | * @return type Response |
@@ -226,10 +225,9 @@ discard block |
||
226 | 225 | /** |
227 | 226 | * Post porfile password. |
228 | 227 | * |
229 | - * @param type $id |
|
230 | 228 | * @param type ProfilePassword $request |
231 | 229 | * |
232 | - * @return type Response |
|
230 | + * @return \Illuminate\Http\RedirectResponse Response |
|
233 | 231 | */ |
234 | 232 | public function postProfilePassword(ProfilePassword $request) |
235 | 233 | { |
@@ -255,7 +253,7 @@ discard block |
||
255 | 253 | * @param type Ticket_Thread $thread |
256 | 254 | * @param type TicketRequest $request |
257 | 255 | * |
258 | - * @return type Response |
|
256 | + * @return \Illuminate\Http\RedirectResponse Response |
|
259 | 257 | */ |
260 | 258 | public function reply(Ticket_Thread $thread, TicketRequest $request) |
261 | 259 | { |
@@ -293,7 +291,7 @@ discard block |
||
293 | 291 | * @param type Tickets $ticket |
294 | 292 | * @param type Ticket_Thread $thread |
295 | 293 | * |
296 | - * @return type Response |
|
294 | + * @return \Illuminate\Http\RedirectResponse Response |
|
297 | 295 | */ |
298 | 296 | public function PostCheckTicket(Request $request) |
299 | 297 | { |
@@ -485,6 +483,9 @@ discard block |
||
485 | 483 | \Session::forget($provider.'redirect'); |
486 | 484 | } |
487 | 485 | |
486 | + /** |
|
487 | + * @param string $key |
|
488 | + */ |
|
488 | 489 | public function checkArray($key, $array) |
489 | 490 | { |
490 | 491 | $value = ''; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * @param type Tickets $ticket |
48 | 48 | * @param type Ticket_Thread $thread |
49 | 49 | * |
50 | - * @return type Response |
|
50 | + * @return \Illuminate\Http\RedirectResponse Response |
|
51 | 51 | */ |
52 | 52 | public function PostCheckTicket(Request $request) |
53 | 53 | { |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * generate random string token for ticket. |
117 | 117 | * |
118 | - * @param type $length |
|
118 | + * @param integer $length |
|
119 | 119 | * |
120 | 120 | * @return string |
121 | 121 | */ |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | /** |
165 | 165 | * Store ratings of the user. |
166 | 166 | * |
167 | - * @return type Redirect |
|
167 | + * @return \Illuminate\Http\RedirectResponse Redirect |
|
168 | 168 | */ |
169 | 169 | public function rating($id, Request $request, \App\Model\helpdesk\Ratings\RatingRef $rating_ref) |
170 | 170 | { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | /** |
200 | 200 | * Store Client rating about reply of agent quality. |
201 | 201 | * |
202 | - * @return type Redirect |
|
202 | + * @return \Illuminate\Http\RedirectResponse Redirect |
|
203 | 203 | */ |
204 | 204 | public function ratingReply($id, Request $request, \App\Model\helpdesk\Ratings\RatingRef $rating_ref) |
205 | 205 | { |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | * |
324 | 324 | *@param string $lang //desired language's iso code |
325 | 325 | * |
326 | - *@return response |
|
326 | + *@return boolean |
|
327 | 327 | */ |
328 | 328 | public static function changeLanguage($lang) |
329 | 329 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | /** |
186 | 186 | * send message to the mail adderess that define in the system. |
187 | 187 | * |
188 | - * @return response |
|
188 | + * @return \Illuminate\Http\RedirectResponse |
|
189 | 189 | */ |
190 | 190 | public function postContact(ContactRequest $request, Contact $contact) |
191 | 191 | { |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | * @param type Comment $comment |
229 | 229 | * @param type Id $id |
230 | 230 | * |
231 | - * @return type response |
|
231 | + * @return \Illuminate\Http\RedirectResponse response |
|
232 | 232 | */ |
233 | 233 | public function postComment($slug, Article $article, CommentRequest $request, Comment $comment) |
234 | 234 | { |
@@ -38,6 +38,9 @@ |
||
38 | 38 | // return $max_size_in_bytes; |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $size |
|
43 | + */ |
|
41 | 44 | public function parse_size($size) |
42 | 45 | { |
43 | 46 | $unit = preg_replace('/[^bkmgtpezy]/i', '', $size); // Remove the non-unit characters from the size. |
@@ -45,6 +45,8 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @param type Reg $reg |
47 | 47 | * @param type Department $dept_id |
48 | + * @param string $reg |
|
49 | + * @param string $dept_id |
|
48 | 50 | * |
49 | 51 | * @return type integer |
50 | 52 | */ |
@@ -70,6 +72,9 @@ discard block |
||
70 | 72 | $this->dispatch($job); |
71 | 73 | } |
72 | 74 | |
75 | + /** |
|
76 | + * @param string $template_variables |
|
77 | + */ |
|
73 | 78 | public function sendEmail($from, $to, $message, $template_variables) |
74 | 79 | { |
75 | 80 | $from_address = $this->fetch_smtp_details($from); |
@@ -211,6 +216,9 @@ discard block |
||
211 | 216 | $controller->setServiceConfig($protocol, $services); |
212 | 217 | } |
213 | 218 | |
219 | + /** |
|
220 | + * @param string $element |
|
221 | + */ |
|
214 | 222 | public function checkElement($element, $array) |
215 | 223 | { |
216 | 224 | $value = ''; |