Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
app/Http/Controllers/Agent/helpdesk/UserController.php 1 patch
Doc Comments   +18 added lines, -11 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      * @param type User            $user
272 272
      * @param type Sys_userRequest $request
273 273
      *
274
-     * @return type redirect
274
+     * @return \Illuminate\Http\RedirectResponse redirect
275 275
      */
276 276
     public function store(User $user, Sys_userRequest $request)
277 277
     {
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
      * @param type int  $id
376 376
      * @param type User $user
377 377
      *
378
-     * @return type view
378
+     * @return \Illuminate\Http\RedirectResponse view
379 379
      */
380 380
     public function randomPostPassword($id, ChangepasswordRequest $request)
381 381
     {
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
      * @param type    $id
402 402
      * @param Request $request
403 403
      *
404
-     * @return type
404
+     * @return \Illuminate\Http\RedirectResponse
405 405
      */
406 406
     public function changeRoleAdmin($id, Request $request)
407 407
     {
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
      * @param type    $id
424 424
      * @param Request $request
425 425
      *
426
-     * @return type
426
+     * @return \Illuminate\Http\RedirectResponse
427 427
      */
428 428
     public function changeRoleAgent($id, Request $request)
429 429
     {
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     /**
445 445
      * @param type $id
446 446
      *
447
-     * @return type
447
+     * @return \Illuminate\Http\RedirectResponse
448 448
      */
449 449
     public function changeRoleUser($id)
450 450
     {
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
     /**
472 472
      * @param type $id
473 473
      *
474
-     * @return type
474
+     * @return \Illuminate\Http\RedirectResponse|null
475 475
      */
476 476
     public function deleteAgent($id)
477 477
     {
@@ -664,7 +664,7 @@  discard block
 block discarded – undo
664 664
      * @param type User           $user
665 665
      * @param type Sys_userUpdate $request
666 666
      *
667
-     * @return type Response
667
+     * @return \Illuminate\Http\RedirectResponse Response
668 668
      */
669 669
     public function update($id, Sys_userUpdate $request)
670 670
     {
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
      * @param type int            $id
743 743
      * @param type ProfileRequest $request
744 744
      *
745
-     * @return type Redirect
745
+     * @return \Illuminate\Http\RedirectResponse|null Redirect
746 746
      */
747 747
     public function postProfileedit(ProfileRequest $request)
748 748
     {
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
      * @param type int             $id
795 795
      * @param type ProfilePassword $request
796 796
      *
797
-     * @return type Redirect
797
+     * @return \Illuminate\Http\RedirectResponse Redirect
798 798
      */
799 799
     public function postProfilePassword($id, ProfilePassword $request)
800 800
     {
@@ -820,7 +820,7 @@  discard block
 block discarded – undo
820 820
      *
821 821
      * @param type $id
822 822
      *
823
-     * @return type boolean
823
+     * @return integer boolean
824 824
      */
825 825
     public function UserAssignOrg($id)
826 826
     {
@@ -930,7 +930,7 @@  discard block
 block discarded – undo
930 930
     /**
931 931
      * Generate a random string for password.
932 932
      *
933
-     * @param type $length
933
+     * @param integer $length
934 934
      *
935 935
      * @return string
936 936
      */
@@ -991,6 +991,9 @@  discard block
 block discarded – undo
991 991
         }
992 992
     }
993 993
 
994
+    /**
995
+     * @param string $date
996
+     */
994 997
     public function convertDate($date)
995 998
     {
996 999
         $converted_date = date('Y-m-d H:i:s', strtotime($date));
@@ -998,6 +1001,10 @@  discard block
 block discarded – undo
998 1001
         return $converted_date;
999 1002
     }
1000 1003
 
1004
+    /**
1005
+     * @param string $first
1006
+     * @param string $last
1007
+     */
1001 1008
     public function getUsers($first, $last)
1002 1009
     {
1003 1010
         $user = new User();
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/kb/ArticleController.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      * @param type Article        $article
150 150
      * @param type ArticleRequest $request
151 151
      *
152
-     * @return type redirect
152
+     * @return \Illuminate\Http\RedirectResponse redirect
153 153
      */
154 154
     public function store(Article $article, ArticleRequest $request)
155 155
     {
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      * @param type Relationship   $relation
219 219
      * @param type ArticleRequest $request
220 220
      *
221
-     * @return Response
221
+     * @return \Illuminate\Http\RedirectResponse
222 222
      */
223 223
     public function update($slug, ArticleUpdate $request)
224 224
     {
@@ -259,10 +259,9 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * Delete an Agent by id.
261 261
      *
262
-     * @param type         $id
263 262
      * @param type Article $article
264 263
      *
265
-     * @return Response
264
+     * @return \Illuminate\Http\RedirectResponse
266 265
      */
267 266
     public function destroy($slug, Article $article, Relationship $relation, Comment $comment)
268 267
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/kb/CategoryController.php 1 patch
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      * @param type Category        $category
138 138
      * @param type CategoryRequest $request
139 139
      *
140
-     * @return type Redirect
140
+     * @return \Illuminate\Http\RedirectResponse Redirect
141 141
      */
142 142
     public function store(Category $category, CategoryRequest $request)
143 143
     {
@@ -158,7 +158,6 @@  discard block
 block discarded – undo
158 158
     /**
159 159
      * Show the form for editing the specified category.
160 160
      *
161
-     * @param type          $slug
162 161
      * @param type Category $category
163 162
      *
164 163
      * @return type view
@@ -175,11 +174,10 @@  discard block
 block discarded – undo
175 174
     /**
176 175
      * Update the specified Category in storage.
177 176
      *
178
-     * @param type                $slug
179 177
      * @param type Category       $category
180 178
      * @param type CategoryUpdate $request
181 179
      *
182
-     * @return type redirect
180
+     * @return \Illuminate\Http\RedirectResponse redirect
183 181
      */
184 182
     public function update($id, CategoryRequest $request)
185 183
     {
@@ -208,7 +206,7 @@  discard block
 block discarded – undo
208 206
      * @param type Category     $category
209 207
      * @param type Relationship $relation
210 208
      *
211
-     * @return type Redirect
209
+     * @return \Illuminate\Http\RedirectResponse Redirect
212 210
      */
213 211
     public function destroy($id, Category $category, Relationship $relation)
214 212
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/kb/PageController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @param type Request $request
123 123
      *
124
-     * @return type
124
+     * @return \Illuminate\Http\RedirectResponse
125 125
      */
126 126
     public function store(PageRequest $request)
127 127
     {
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      * @param type            $slug
162 162
      * @param type PageUpdate $request
163 163
      *
164
-     * @return type redirect
164
+     * @return \Illuminate\Http\RedirectResponse redirect
165 165
      */
166 166
     public function update($slug, PageRequest $request)
167 167
     {
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      *
186 186
      * @param type $id
187 187
      *
188
-     * @return type redirect
188
+     * @return \Illuminate\Http\RedirectResponse redirect
189 189
      */
190 190
     public function destroy($id)
191 191
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/kb/SettingsController.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      *
70 70
      * @param int $id
71 71
      *
72
-     * @return Response
72
+     * @return \Illuminate\Http\RedirectResponse
73 73
      */
74 74
     public function postSettings($id, Settings $settings, SettingsRequests $request)
75 75
     {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      * @param type         $id
175 175
      * @param type Comment $comment
176 176
      *
177
-     * @return bool
177
+     * @return \Illuminate\Http\RedirectResponse
178 178
      */
179 179
     public function publish($id, Comment $comment)
180 180
     {
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      * @param type         $id
194 194
      * @param type Comment $comment
195 195
      *
196
-     * @return type
196
+     * @return \Illuminate\Http\RedirectResponse
197 197
      */
198 198
     public function delete($id, Comment $comment)
199 199
     {
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      *
224 224
      * @param type ProfileRequest $request
225 225
      *
226
-     * @return type redirect
226
+     * @return \Illuminate\Http\RedirectResponse redirect
227 227
      */
228 228
     public function postProfile(ProfileRequest $request)
229 229
     {
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      * @param type                 $id
268 268
      * @param type ProfilePassword $request
269 269
      *
270
-     * @return type redirect
270
+     * @return \Illuminate\Http\RedirectResponse redirect
271 271
      */
272 272
     public function postProfilePassword($id, ProfilePassword $request)
273 273
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Api/v1/ApiController.php 1 patch
Doc Comments   +22 added lines, -20 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      *
119 119
      * @param user_id,subject,body,helptopic,sla,priority,dept
120 120
      *
121
-     * @return json
121
+     * @return \Illuminate\Http\JsonResponse
122 122
      */
123 123
     public function createTicket(\App\Http\Requests\helpdesk\CreateTicketRequest $request, \App\Model\helpdesk\Utility\CountryCode $code)
124 124
     {
@@ -175,9 +175,8 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * Reply for the ticket.
177 177
      *
178
-     * @param TicketRequest $request
179 178
      *
180
-     * @return json
179
+     * @return \Illuminate\Http\JsonResponse
181 180
      */
182 181
     public function ticketReply()
183 182
     {
@@ -215,7 +214,7 @@  discard block
 block discarded – undo
215 214
     /**
216 215
      * Edit a ticket.
217 216
      *
218
-     * @return json
217
+     * @return \Illuminate\Http\JsonResponse
219 218
      */
220 219
     public function editTicket()
221 220
     {
@@ -253,7 +252,7 @@  discard block
 block discarded – undo
253 252
     /**
254 253
      * Delete The Ticket.
255 254
      *
256
-     * @return json
255
+     * @return \Illuminate\Http\JsonResponse
257 256
      */
258 257
     public function deleteTicket()
259 258
     {
@@ -433,7 +432,7 @@  discard block
 block discarded – undo
433 432
     /**
434 433
      * Get All agents.
435 434
      *
436
-     * @return json
435
+     * @return \Illuminate\Http\JsonResponse
437 436
      */
438 437
     public function getAgents()
439 438
     {
@@ -457,7 +456,7 @@  discard block
 block discarded – undo
457 456
     /**
458 457
      * Get All Teams.
459 458
      *
460
-     * @return json
459
+     * @return \Illuminate\Http\JsonResponse
461 460
      */
462 461
     public function getTeams()
463 462
     {
@@ -481,7 +480,7 @@  discard block
 block discarded – undo
481 480
     /**
482 481
      * To assign a ticket.
483 482
      *
484
-     * @return json
483
+     * @return \Illuminate\Http\JsonResponse
485 484
      */
486 485
     public function assignTicket()
487 486
     {
@@ -520,7 +519,7 @@  discard block
 block discarded – undo
520 519
     /**
521 520
      * Get all customers.
522 521
      *
523
-     * @return json
522
+     * @return \Illuminate\Http\JsonResponse
524 523
      */
525 524
     public function getCustomers()
526 525
     {
@@ -587,7 +586,7 @@  discard block
 block discarded – undo
587 586
     /**
588 587
      * Get a customer by id.
589 588
      *
590
-     * @return json
589
+     * @return \Illuminate\Http\JsonResponse
591 590
      */
592 591
     public function getCustomer()
593 592
     {
@@ -620,7 +619,7 @@  discard block
 block discarded – undo
620 619
     /**
621 620
      * Search tickets.
622 621
      *
623
-     * @return json
622
+     * @return \Illuminate\Http\JsonResponse
624 623
      */
625 624
     public function searchTicket()
626 625
     {
@@ -691,7 +690,7 @@  discard block
 block discarded – undo
691 690
     /**
692 691
      * Check the url is valid or not.
693 692
      *
694
-     * @return json
693
+     * @return \Illuminate\Http\JsonResponse
695 694
      */
696 695
     public function checkUrl()
697 696
     {
@@ -739,7 +738,7 @@  discard block
 block discarded – undo
739 738
     /**
740 739
      * Call curl function for Get Method.
741 740
      *
742
-     * @param type $url
741
+     * @param string $url
743 742
      *
744 743
      * @return type int|string|json
745 744
      */
@@ -789,7 +788,7 @@  discard block
 block discarded – undo
789 788
     /**
790 789
      * To generate api string.
791 790
      *
792
-     * @return type | json
791
+     * @return \Illuminate\Http\JsonResponse | json
793 792
      */
794 793
     public function generateApiKey()
795 794
     {
@@ -824,7 +823,7 @@  discard block
 block discarded – undo
824 823
     /**
825 824
      * Get help topics.
826 825
      *
827
-     * @return json
826
+     * @return \Illuminate\Http\JsonResponse
828 827
      */
829 828
     public function getHelpTopic()
830 829
     {
@@ -848,7 +847,7 @@  discard block
 block discarded – undo
848 847
     /**
849 848
      * Get Sla plans.
850 849
      *
851
-     * @return json
850
+     * @return \Illuminate\Http\JsonResponse
852 851
      */
853 852
     public function getSlaPlan()
854 853
     {
@@ -872,7 +871,7 @@  discard block
 block discarded – undo
872 871
     /**
873 872
      * Get priorities.
874 873
      *
875
-     * @return json
874
+     * @return \Illuminate\Http\JsonResponse
876 875
      */
877 876
     public function getPriority()
878 877
     {
@@ -896,7 +895,7 @@  discard block
 block discarded – undo
896 895
     /**
897 896
      * Get departments.
898 897
      *
899
-     * @return json
898
+     * @return \Illuminate\Http\JsonResponse
900 899
      */
901 900
     public function getDepartment()
902 901
     {
@@ -993,7 +992,7 @@  discard block
 block discarded – undo
993 992
     /**
994 993
      * Create internal note.
995 994
      *
996
-     * @return type json
995
+     * @return \Illuminate\Http\JsonResponse json
997 996
      */
998 997
     public function internalNote()
999 998
     {
@@ -1460,6 +1459,9 @@  discard block
 block discarded – undo
1460 1459
         return $query;
1461 1460
     }
1462 1461
 
1462
+    /**
1463
+     * @param string $check
1464
+     */
1463 1465
     public function getSystem($check, $query)
1464 1466
     {
1465 1467
         switch ($check) {
@@ -1477,7 +1479,7 @@  discard block
 block discarded – undo
1477 1479
      *
1478 1480
      * @param Request $request
1479 1481
      *
1480
-     * @return type json
1482
+     * @return \Illuminate\Http\JsonResponse json
1481 1483
      */
1482 1484
     public function register(Request $request)
1483 1485
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Api/v1/ApiExceptAuthController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     /**
72 72
      * Call curl function for Get Method.
73 73
      *
74
-     * @param type $url
74
+     * @param string $url
75 75
      *
76 76
      * @return type int|string|json
77 77
      */
Please login to merge, or discard this patch.
app/Http/Controllers/Api/v1/TicketController.php 1 patch
Doc Comments   +14 added lines, -8 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      *
118 118
      * @param type $headers
119 119
      *
120
-     * @return type
120
+     * @return boolean|string
121 121
      */
122 122
     public function storeCollaborators($headers, $id)
123 123
     {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      *
196 196
      * @param type $ticket_number
197 197
      *
198
-     * @return type integer
198
+     * @return string integer
199 199
      */
200 200
     public function ticketNumber($ticket_number)
201 201
     {
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
     /**
235 235
      * Generate a random string for password.
236 236
      *
237
-     * @param type $length
237
+     * @param integer $length
238 238
      *
239
-     * @return type string
239
+     * @return string string
240 240
      */
241 241
     public function generateRandomString($length = 10)
242 242
     {
@@ -259,6 +259,9 @@  discard block
 block discarded – undo
259 259
      *
260 260
      * @param type Ticket_Thread $thread
261 261
      * @param type TicketRequest $request
262
+     * @param Ticket_Thread $thread
263
+     * @param \Illuminate\Http\Request $request
264
+     * @param Ticket_attachments $ta
262 265
      *
263 266
      * @return type bool
264 267
      */
@@ -408,6 +411,8 @@  discard block
 block discarded – undo
408 411
      *
409 412
      * @param type               $ticket_id
410 413
      * @param type Ticket_Thread $thread
414
+     * @param Ticket_Thread $thread
415
+     * @param Tickets $ticket
411 416
      *
412 417
      * @return type bool
413 418
      */
@@ -499,10 +504,11 @@  discard block
 block discarded – undo
499 504
     /**
500 505
      * Function to delete ticket.
501 506
      *
502
-     * @param type         $id
507
+     * @param type         $ids
503 508
      * @param type Tickets $ticket
509
+     * @param Tickets $ticket
504 510
      *
505
-     * @return type string
511
+     * @return string string
506 512
      */
507 513
     public function delete($ids, $ticket)
508 514
     {
@@ -597,7 +603,7 @@  discard block
 block discarded – undo
597 603
      * Create Attachment.
598 604
      *
599 605
      * @param type $thread
600
-     * @param type $attach
606
+     * @param string $attach
601 607
      *
602 608
      * @return int
603 609
      */
@@ -668,7 +674,7 @@  discard block
 block discarded – undo
668 674
     /**
669 675
      * user remove.
670 676
      *
671
-     * @return type
677
+     * @return string
672 678
      */
673 679
     public function userremove()
674 680
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Api/v1/TokenAuthController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @param Request $request
41 41
      *
42
-     * @return type json
42
+     * @return \Illuminate\Http\JsonResponse json
43 43
      */
44 44
     public function authenticate(Request $request)
45 45
     {
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * Get the user details from token.
71 71
      *
72
-     * @return type json
72
+     * @return \Illuminate\Http\JsonResponse json
73 73
      */
74 74
     public function getAuthenticatedUser()
75 75
     {
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * verify the url is existing or not.
130 130
      *
131
-     * @return type json
131
+     * @return \Illuminate\Http\JsonResponse|null json
132 132
      */
133 133
     public function checkUrl(Request $request)
134 134
     {
Please login to merge, or discard this patch.