Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
app/Http/Controllers/Admin/helpdesk/TemplateController.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * @param type Template        $template
82 82
      * @param type TemplateRequest $request
83 83
      *
84
-     * @return type Response
84
+     * @return \Illuminate\Http\RedirectResponse Response
85 85
      */
86 86
     public function store(Template $template, TemplateRequest $request)
87 87
     {
@@ -115,7 +115,6 @@  discard block
 block discarded – undo
115 115
     /**
116 116
      * Show the form for editing the specified resource.
117 117
      *
118
-     * @param type           $id
119 118
      * @param type Template  $template
120 119
      * @param type Languages $language
121 120
      *
@@ -243,7 +242,7 @@  discard block
 block discarded – undo
243 242
      * @param type Template      $template
244 243
      * @param type TemplateUdate $request
245 244
      *
246
-     * @return type Response
245
+     * @return \Illuminate\Http\RedirectResponse Response
247 246
      */
248 247
     public function update($id, Template $template, TemplateUdate $request)
249 248
     {
@@ -270,7 +269,7 @@  discard block
 block discarded – undo
270 269
      * @param type int      $id
271 270
      * @param type Template $template
272 271
      *
273
-     * @return type Response
272
+     * @return \Illuminate\Http\RedirectResponse Response
274 273
      */
275 274
     public function destroy($id, Template $template)
276 275
     {
@@ -313,7 +312,7 @@  discard block
 block discarded – undo
313 312
      *
314 313
      * @param type Request $request
315 314
      *
316
-     * @return type
315
+     * @return \Illuminate\Http\RedirectResponse
317 316
      */
318 317
     public function postDiagno(DiagnosRequest $request)
319 318
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/helpdesk/UrlSettingController.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -97,6 +97,9 @@  discard block
 block discarded – undo
97 97
         return $string;
98 98
     }
99 99
 
100
+    /**
101
+     * @param string $string
102
+     */
100 103
     public function writeHtaccess($string)
101 104
     {
102 105
         //dd(public_path('.htaccess'),base_path('.htaccess'));
@@ -144,6 +147,9 @@  discard block
 block discarded – undo
144 147
         return $check;
145 148
     }
146 149
 
150
+    /**
151
+     * @param string $url
152
+     */
147 153
     public function checkWWW($url)
148 154
     {
149 155
         $check = $this->checkWwwInUrl($url);
@@ -157,6 +163,9 @@  discard block
 block discarded – undo
157 163
         return $array;
158 164
     }
159 165
 
166
+    /**
167
+     * @param string $url
168
+     */
160 169
     public function checkHTTP($url)
161 170
     {
162 171
         $check = $this->checkHttpsInUrl($url);
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/helpdesk/WorkflowController.php 1 patch
Doc Comments   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      *
162 162
      * @param \App\Http\Requests\helpdesk\WorkflowCreateRequest $request
163 163
      *
164
-     * @return type view
164
+     * @return \Illuminate\Http\RedirectResponse view
165 165
      */
166 166
     public function store(WorkflowCreateRequest $request)
167 167
     {
@@ -205,7 +205,6 @@  discard block
 block discarded – undo
205 205
      * Editing the details of the banned users.
206 206
      *
207 207
      * @param type $id
208
-     * @param User $ban
209 208
      *
210 209
      * @return type Response
211 210
      */
@@ -229,7 +228,7 @@  discard block
 block discarded – undo
229 228
      * @param type                                              $id
230 229
      * @param \App\Http\Requests\helpdesk\WorkflowUpdateRequest $request
231 230
      *
232
-     * @return type view
231
+     * @return \Illuminate\Http\RedirectResponse view
233 232
      */
234 233
     public function update($id, WorkflowUpdateRequest $request)
235 234
     {
@@ -297,7 +296,7 @@  discard block
 block discarded – undo
297 296
      * @param type                     $id
298 297
      * @param \Illuminate\Http\Request $request
299 298
      *
300
-     * @return type void
299
+     * @return string|null void
301 300
      */
302 301
     public function selectAction($id, Request $request)
303 302
     {
@@ -335,7 +334,7 @@  discard block
 block discarded – undo
335 334
     /**
336 335
      * function to return deprtment select option.
337 336
      *
338
-     * @return type string
337
+     * @return string string
339 338
      */
340 339
     public function department($id)
341 340
     {
@@ -352,7 +351,7 @@  discard block
 block discarded – undo
352 351
     /**
353 352
      * function to return the priority select option.
354 353
      *
355
-     * @return type string
354
+     * @return string string
356 355
      */
357 356
     public function priority($id)
358 357
     {
@@ -369,7 +368,7 @@  discard block
 block discarded – undo
369 368
     /**
370 369
      * function to return the slaplan select option.
371 370
      *
372
-     * @return type string
371
+     * @return string string
373 372
      */
374 373
     public function slaPlan($id)
375 374
     {
@@ -386,7 +385,7 @@  discard block
 block discarded – undo
386 385
     /**
387 386
      * function to get system team select option.
388 387
      *
389
-     * @return type string
388
+     * @return string string
390 389
      */
391 390
     public function assignTeam($id)
392 391
     {
@@ -403,7 +402,7 @@  discard block
 block discarded – undo
403 402
     /**
404 403
      * function to get system agents select option.
405 404
      *
406
-     * @return type string
405
+     * @return string string
407 406
      */
408 407
     public function assignAgent($id)
409 408
     {
@@ -420,7 +419,7 @@  discard block
 block discarded – undo
420 419
     /**
421 420
      * function to get the helptopic select option.
422 421
      *
423
-     * @return type string
422
+     * @return string string
424 423
      */
425 424
     public function helptopic($id)
426 425
     {
@@ -437,7 +436,7 @@  discard block
 block discarded – undo
437 436
     /**
438 437
      * function to get the select option to choose the ticket status.
439 438
      *
440
-     * @return type string
439
+     * @return string string
441 440
      */
442 441
     public function ticketStatus($id)
443 442
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/helpdesk/CannedController.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param type CannedRequest $request
75 75
      * @param type Canned        $canned
76 76
      *
77
-     * @return type Redirect
77
+     * @return \Illuminate\Http\RedirectResponse Redirect
78 78
      */
79 79
     public function store(CannedRequest $request, Canned $canned)
80 80
     {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      * @param type CannedUpdateRequest $request
120 120
      * @param type Canned              $canned
121 121
      *
122
-     * @return type Redirect
122
+     * @return \Illuminate\Http\RedirectResponse Redirect
123 123
      */
124 124
     public function update($id, CannedUpdateRequest $request, Canned $canned)
125 125
     {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * @param type        $id
146 146
      * @param type Canned $canned
147 147
      *
148
-     * @return type Redirect
148
+     * @return \Illuminate\Http\RedirectResponse Redirect
149 149
      */
150 150
     public function destroy($id, Canned $canned)
151 151
     {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      *
169 169
      * @param type $id
170 170
      *
171
-     * @return type json
171
+     * @return \Illuminate\Http\JsonResponse json
172 172
      */
173 173
     public function get_canned($id)
174 174
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/helpdesk/DashboardController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     /**
58 58
      * Fetching dashboard graph data to implement graph.
59 59
      *
60
-     * @return type Json
60
+     * @return string Json
61 61
      */
62 62
     public function ChartData($date111 = '', $date122 = '')
63 63
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/helpdesk/DashboardController2.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     /**
58 58
      * Fetching dashboard graph data to implement graph.
59 59
      *
60
-     * @return type Json
60
+     * @return string Json
61 61
      */
62 62
     public function ChartData($date111 = '', $date122 = '')
63 63
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/helpdesk/MailController.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -270,6 +270,9 @@  discard block
 block discarded – undo
270 270
         }
271 271
     }
272 272
 
273
+    /**
274
+     * @param string $filename
275
+     */
273 276
     public function manageAttachment($data, $filename, $type, $size, $disposition, $thread_id)
274 277
     {
275 278
         $upload = new Ticket_attachments();
@@ -284,6 +287,9 @@  discard block
 block discarded – undo
284 287
         }
285 288
     }
286 289
 
290
+    /**
291
+     * @param string $filename
292
+     */
287 293
     public function updateBody($attachment, $thread_id, $filename)
288 294
     {
289 295
         $structure = $attachment->getStructure();
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/helpdesk/OrganizationController.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      * @param type Organization        $org
145 145
      * @param type OrganizationRequest $request
146 146
      *
147
-     * @return type Redirect
147
+     * @return \Illuminate\Http\RedirectResponse Redirect
148 148
      */
149 149
     public function store(Organization $org, OrganizationRequest $request)
150 150
     {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      * @param type Organization       $org
212 212
      * @param type OrganizationUpdate $request
213 213
      *
214
-     * @return type Redirect
214
+     * @return \Illuminate\Http\RedirectResponse Redirect
215 215
      */
216 216
     public function update($id, Organization $org, OrganizationUpdate $request)
217 217
     {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      *
240 240
      * @param type int $id
241 241
      *
242
-     * @return type Redirect
242
+     * @return \Illuminate\Http\RedirectResponse Redirect
243 243
      */
244 244
     public function destroy($id, Organization $org, User_org $user_org)
245 245
     {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      *
267 267
      * @param type $id
268 268
      *
269
-     * @return type boolean
269
+     * @return integer boolean
270 270
      */
271 271
     public function Head_Org($id)
272 272
     {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      * @param type $date111
289 289
      * @param type $date122
290 290
      *
291
-     * @return type array
291
+     * @return string array
292 292
      */
293 293
     public function orgChartData($id, $date111 = '', $date122 = '')
294 294
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/helpdesk/TicketController.php 1 patch
Doc Comments   +33 added lines, -27 removed lines patch added patch discarded remove patch
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
      * @param type               $ticket_id
561 561
      * @param type Ticket_Thread $thread
562 562
      *
563
-     * @return type bool
563
+     * @return integer bool
564 564
      */
565 565
     public function ticketEditPost($ticket_id, Ticket_Thread $thread, Tickets $ticket)
566 566
     {
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
      *
624 624
      * @param type $ticket_number
625 625
      *
626
-     * @return type integer
626
+     * @return string integer
627 627
      */
628 628
     public function ticketNumberold($ticket_number)
629 629
     {
@@ -729,13 +729,14 @@  discard block
 block discarded – undo
729 729
      * Create User while creating ticket.
730 730
      *
731 731
      * @param type $emailadd
732
-     * @param type $username
732
+     * @param string $username
733 733
      * @param type $subject
734 734
      * @param type $phone
735 735
      * @param type $helptopic
736 736
      * @param type $sla
737 737
      * @param type $priority
738
-     * @param type $system
738
+     * @param integer $auto_response
739
+     * @param integer $status
739 740
      *
740 741
      * @return type bool
741 742
      */
@@ -950,7 +951,7 @@  discard block
 block discarded – undo
950 951
     /**
951 952
      * Default helptopic.
952 953
      *
953
-     * @return type string
954
+     * @return string string
954 955
      */
955 956
     public function default_helptopic()
956 957
     {
@@ -962,7 +963,7 @@  discard block
 block discarded – undo
962 963
     /**
963 964
      * Default SLA plan.
964 965
      *
965
-     * @return type string
966
+     * @return string string
966 967
      */
967 968
     public function default_sla()
968 969
     {
@@ -1162,7 +1163,7 @@  discard block
 block discarded – undo
1162 1163
      * @param type $id
1163 1164
      * @param type $user_id
1164 1165
      *
1165
-     * @return type
1166
+     * @return boolean|null
1166 1167
      */
1167 1168
     public function ticketThread($subject, $body, $id, $user_id)
1168 1169
     {
@@ -1181,9 +1182,9 @@  discard block
 block discarded – undo
1181 1182
     /**
1182 1183
      * Generate a random string for password.
1183 1184
      *
1184
-     * @param type $length
1185
+     * @param integer $length
1185 1186
      *
1186
-     * @return type string
1187
+     * @return string string
1187 1188
      */
1188 1189
     public function generateRandomString($length = 10)
1189 1190
     {
@@ -1352,7 +1353,7 @@  discard block
 block discarded – undo
1352 1353
      * @param type         $id
1353 1354
      * @param type Tickets $ticket
1354 1355
      *
1355
-     * @return type string
1356
+     * @return string string
1356 1357
      */
1357 1358
     public function delete($id, Tickets $ticket)
1358 1359
     {
@@ -1405,7 +1406,7 @@  discard block
 block discarded – undo
1405 1406
      * @param type         $id
1406 1407
      * @param type Tickets $ticket
1407 1408
      *
1408
-     * @return type string
1409
+     * @return string string
1409 1410
      */
1410 1411
     public function ban($id, Tickets $ticket)
1411 1412
     {
@@ -1424,7 +1425,7 @@  discard block
 block discarded – undo
1424 1425
      *
1425 1426
      * @param type $id
1426 1427
      *
1427
-     * @return type bool
1428
+     * @return integer bool
1428 1429
      */
1429 1430
     public function assign($id)
1430 1431
     {
@@ -1496,7 +1497,7 @@  discard block
 block discarded – undo
1496 1497
      *
1497 1498
      * @param type $id
1498 1499
      *
1499
-     * @return type bool
1500
+     * @return integer bool
1500 1501
      */
1501 1502
     public function InternalNote($id)
1502 1503
     {
@@ -1525,7 +1526,7 @@  discard block
 block discarded – undo
1525 1526
      *
1526 1527
      * @param type $id
1527 1528
      *
1528
-     * @return type bool
1529
+     * @return integer bool
1529 1530
      */
1530 1531
     public function surrender($id)
1531 1532
     {
@@ -1568,7 +1569,6 @@  discard block
 block discarded – undo
1568 1569
     /**
1569 1570
      * Search.
1570 1571
      *
1571
-     * @param type $keyword
1572 1572
      *
1573 1573
      * @return type array
1574 1574
      */
@@ -1590,7 +1590,7 @@  discard block
 block discarded – undo
1590 1590
      *
1591 1591
      * @param type $headers
1592 1592
      *
1593
-     * @return type
1593
+     * @return boolean
1594 1594
      */
1595 1595
     public function storeCollaborators($headers, $id)
1596 1596
     {
@@ -1717,7 +1717,7 @@  discard block
 block discarded – undo
1717 1717
      *
1718 1718
      * @param type $input
1719 1719
      *
1720
-     * @return type
1720
+     * @return string
1721 1721
      */
1722 1722
     public function cleanMe($input)
1723 1723
     {
@@ -1761,7 +1761,7 @@  discard block
 block discarded – undo
1761 1761
      *
1762 1762
      * @param type Image $image
1763 1763
      *
1764
-     * @return type json
1764
+     * @return string json
1765 1765
      */
1766 1766
     public function usersearch()
1767 1767
     {
@@ -1796,7 +1796,7 @@  discard block
 block discarded – undo
1796 1796
      *
1797 1797
      * @param type Image $image
1798 1798
      *
1799
-     * @return type json
1799
+     * @return string json
1800 1800
      */
1801 1801
     public function useradd()
1802 1802
     {
@@ -1835,7 +1835,7 @@  discard block
 block discarded – undo
1835 1835
     /**
1836 1836
      * user remove.
1837 1837
      *
1838
-     * @return type
1838
+     * @return integer
1839 1839
      */
1840 1840
     public function userremove()
1841 1841
     {
@@ -1848,7 +1848,7 @@  discard block
 block discarded – undo
1848 1848
     /**
1849 1849
      * select_all.
1850 1850
      *
1851
-     * @return type
1851
+     * @return \Illuminate\Http\RedirectResponse
1852 1852
      */
1853 1853
     public function select_all()
1854 1854
     {
@@ -1921,7 +1921,7 @@  discard block
 block discarded – undo
1921 1921
      *
1922 1922
      * @param type $utc
1923 1923
      *
1924
-     * @return type date
1924
+     * @return string date
1925 1925
      */
1926 1926
     public static function usertimezone($utc)
1927 1927
     {
@@ -1940,7 +1940,7 @@  discard block
 block discarded – undo
1940 1940
     /**
1941 1941
      * adding offset to updated_at time.
1942 1942
      *
1943
-     * @return date
1943
+     * @return string
1944 1944
      */
1945 1945
     public static function timeOffset($utc)
1946 1946
     {
@@ -2056,7 +2056,7 @@  discard block
 block discarded – undo
2056 2056
     /**
2057 2057
      * Store ratings of the user.
2058 2058
      *
2059
-     * @return type Redirect
2059
+     * @return \Illuminate\Http\RedirectResponse Redirect
2060 2060
      */
2061 2061
     public function rating($id, Request $request, \App\Model\helpdesk\Ratings\RatingRef $rating_ref)
2062 2062
     {
@@ -2091,7 +2091,7 @@  discard block
 block discarded – undo
2091 2091
     /**
2092 2092
      * Store Client rating about reply of agent quality.
2093 2093
      *
2094
-     * @return type Redirect
2094
+     * @return \Illuminate\Http\RedirectResponse Redirect
2095 2095
      */
2096 2096
     public function ratingReply($id, Request $request, \App\Model\helpdesk\Ratings\RatingRef $rating_ref)
2097 2097
     {
@@ -2193,7 +2193,7 @@  discard block
 block discarded – undo
2193 2193
      *
2194 2194
      * @param type $id
2195 2195
      *
2196
-     * @return type bool
2196
+     * @return integer bool
2197 2197
      */
2198 2198
     public function changeOwner($id)
2199 2199
     {
@@ -2259,7 +2259,7 @@  discard block
 block discarded – undo
2259 2259
      *
2260 2260
      * @param type Image $image
2261 2261
      *
2262
-     * @return type json
2262
+     * @return integer json
2263 2263
      */
2264 2264
     public function changeOwnerAdd($email, $name, $ticket_id)
2265 2265
     {
@@ -2771,6 +2771,9 @@  discard block
 block discarded – undo
2771 2771
         }
2772 2772
     }
2773 2773
 
2774
+    /**
2775
+     * @param string $key
2776
+     */
2774 2777
     public function checkArray($key, $array)
2775 2778
     {
2776 2779
         $value = '';
@@ -2888,6 +2891,9 @@  discard block
 block discarded – undo
2888 2891
         return $this->fileContent($path);
2889 2892
     }
2890 2893
 
2894
+    /**
2895
+     * @param string $path
2896
+     */
2891 2897
     public function fileContent($path)
2892 2898
     {
2893 2899
         $exist = \File::exists($path);
Please login to merge, or discard this patch.