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 2 patches
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.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
                         /* order column name and description */
80 80
                         ->orderColumns('name')
81 81
                         /* add column name */
82
-                        ->addColumn('name', function ($model) {
82
+                        ->addColumn('name', function($model) {
83 83
                             return $model->name;
84 84
                         })
85 85
                         /* add column status */
86
-                        ->addColumn('status', function ($model) {
86
+                        ->addColumn('status', function($model) {
87 87
                             if ($model->status == 1) {
88 88
                                 return 'Active';
89 89
                             } elseif ($model->status == 0) {
@@ -91,17 +91,17 @@  discard block
 block discarded – undo
91 91
                             }
92 92
                         })
93 93
                         /* add column order */
94
-                        ->addColumn('order', function ($model) {
94
+                        ->addColumn('order', function($model) {
95 95
                             return $model->order;
96 96
                         })
97 97
                         /* add column rules */
98
-                        ->addColumn('rules', function ($model) {
98
+                        ->addColumn('rules', function($model) {
99 99
                             $rules = WorkflowRules::where('workflow_id', '=', $model->id)->count();
100 100
 
101 101
                             return $rules;
102 102
                         })
103 103
                         /* add column target */
104
-                        ->addColumn('target', function ($model) {
104
+                        ->addColumn('target', function($model) {
105 105
                             $target = $model->target;
106 106
                             $target1 = explode('-', $target);
107 107
                             if ($target1[0] == 'A') {
@@ -121,15 +121,15 @@  discard block
 block discarded – undo
121 121
                             }
122 122
                         })
123 123
                         /* add column created */
124
-                        ->addColumn('Created', function ($model) {
124
+                        ->addColumn('Created', function($model) {
125 125
                             return TicketController::usertimezone($model->created_at);
126 126
                         })
127 127
                         /* add column updated */
128
-                        ->addColumn('Updated', function ($model) {
128
+                        ->addColumn('Updated', function($model) {
129 129
                             return TicketController::usertimezone($model->updated_at);
130 130
                         })
131 131
                         /* add column action */
132
-                        ->addColumn('Actions', function ($model) {
132
+                        ->addColumn('Actions', function($model) {
133 133
                             $confirmation = 'Are you sure?';
134 134
 
135 135
                             return "<a class='btn btn-info btn-xs btn-flat' href='".route('workflow.edit', $model->id)."'><i class='fa fa-edit text-black'></i> Edit</a>  <a class='btn btn-danger btn-xs btn-flat' href='".route('workflow.delete', $model->id)."'><i class='fa fa-trash text-black'></i> Delete</a>";
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/helpdesk/CannedController.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use App\Http\Requests\helpdesk\CannedUpdateRequest;
10 10
 // model
11 11
 use App\Model\helpdesk\Agent_panel\Canned;
12
-use App\User;
13 12
 // classes
14 13
 use Exception;
15 14
 use Lang;
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 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 // controllers
6 6
 use App\Http\Controllers\Controller;
7 7
 // models
8
-use App\User;
9 8
 // classes
10 9
 use Auth;
11 10
 use DB;
Please login to merge, or discard this patch.
app/Http/Controllers/Agent/helpdesk/Filter/FilterController.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use App\Http\Controllers\Agent\helpdesk\TicketController;
6 6
 use App\Http\Controllers\Controller;
7 7
 use App\Model\helpdesk\Filters\Filter;
8
-use App\Model\helpdesk\Filters\Label;
9 8
 use App\Model\helpdesk\Ticket\Tickets;
10 9
 use Auth;
11 10
 use DB;
Please login to merge, or discard this patch.
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
         $render = false;
36 36
         if (is_array($labels) && count($labels) > 0) {
37 37
             $table = $table
38
-                     ->leftJoin('filters as label', function ($join) {
39
-                         $join->on('tickets.id', '=', 'label.ticket_id')
38
+                        ->leftJoin('filters as label', function ($join) {
39
+                            $join->on('tickets.id', '=', 'label.ticket_id')
40 40
                                 ->where('label.key', '=', 'label');
41
-                     })
41
+                        })
42 42
                     ->whereIn('label.value', $labels);
43 43
         }
44 44
         if (is_array($tags) && count($tags) > 0) {
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
                     });
105 105
             case '/ticket/myticket':
106 106
                     return $table
107
-                      ->leftJoin('ticket_status', function ($join) {
108
-                          $join->on('ticket_status.id', '=', 'tickets.status');
109
-                      })
107
+                        ->leftJoin('ticket_status', function ($join) {
108
+                            $join->on('ticket_status.id', '=', 'tickets.status');
109
+                        })
110 110
                     ->orWhere('tickets.assigned_to', '=', Auth::user()->id)
111 111
                     ->where('tickets.status', '=', 1);
112 112
             case '/unassigned':
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
                 }
117 117
 
118 118
                 return $table
119
-                     ->leftJoin('ticket_status', function ($join) {
120
-                         $join->on('ticket_status.id', '=', 'tickets.status');
121
-                     })
119
+                        ->leftJoin('ticket_status', function ($join) {
120
+                            $join->on('ticket_status.id', '=', 'tickets.status');
121
+                        })
122 122
                     ->where('tickets.assigned_to', '=', null)
123 123
                     ->where('tickets.status', '=', 1);
124 124
             case '/ticket/overdue':
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                     $table = $table->where('tickets.dept_id', '=', $id);
128 128
                 }
129 129
 
130
-                  return $table
130
+                    return $table
131 131
                     ->leftJoin('ticket_status', function ($join) {
132 132
                         $join->on('ticket_status.id', '=', 'tickets.status');
133 133
                     })
@@ -181,9 +181,9 @@  discard block
 block discarded – undo
181 181
                 }
182 182
 
183 183
                 return $table
184
-                     ->leftJoin('ticket_status', function ($join) {
185
-                         $join->on('ticket_status.id', '=', 'tickets.status');
186
-                     })
184
+                        ->leftJoin('ticket_status', function ($join) {
185
+                            $join->on('ticket_status.id', '=', 'tickets.status');
186
+                        })
187 187
                     ->where('tickets.assigned_to', '>', 0)
188 188
                     ->where('tickets.status', '=', 1);
189 189
             case '/ticket/open':
@@ -193,9 +193,9 @@  discard block
 block discarded – undo
193 193
                 }
194 194
 
195 195
                 return $table
196
-                     ->leftJoin('ticket_status', function ($join) {
197
-                         $join->on('ticket_status.id', '=', 'tickets.status');
198
-                     })
196
+                        ->leftJoin('ticket_status', function ($join) {
197
+                            $join->on('ticket_status.id', '=', 'tickets.status');
198
+                        })
199 199
                     ->where('isanswered', '=', 0)
200 200
                     ->where('tickets.status', '=', 1);
201 201
             case '/duetoday':
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
                     $table = $table->where('tickets.dept_id', '=', $id);
205 205
                 }
206 206
 
207
-               return $table
207
+                return $table
208 208
                     ->leftJoin('ticket_status', function ($join) {
209 209
                         $join->on('ticket_status.id', '=', 'tickets.status');
210 210
                     })
@@ -326,8 +326,8 @@  discard block
 block discarded – undo
326 326
         $table = $this->table();
327 327
         if ($user->role == 'user') {
328 328
             $table = $table->leftJoin('ticket_status', 'tickets.status', '=', 'ticket_status.id')
329
-                     ->where('tickets.user_id', '=', $user->id)
330
-                     ->where('ticket_status.name', $convert_to_array[3]);
329
+                        ->where('tickets.user_id', '=', $user->id)
330
+                        ->where('ticket_status.name', $convert_to_array[3]);
331 331
         } else {
332 332
             $table = $table->leftJoin('ticket_status', 'tickets.status', '=', 'ticket_status.id')
333 333
                     ->where('tickets.assigned_to', '=', $user->id)
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $render = false;
36 36
         if (is_array($labels) && count($labels) > 0) {
37 37
             $table = $table
38
-                     ->leftJoin('filters as label', function ($join) {
38
+                     ->leftJoin('filters as label', function($join) {
39 39
                          $join->on('tickets.id', '=', 'label.ticket_id')
40 40
                                 ->where('label.key', '=', 'label');
41 41
                      })
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         }
44 44
         if (is_array($tags) && count($tags) > 0) {
45 45
             $table = $table
46
-                    ->leftJoin('filters as tag', function ($join) {
46
+                    ->leftJoin('filters as tag', function($join) {
47 47
                         $join->on('tickets.id', '=', 'tag.ticket_id')
48 48
                                 ->where('tag.key', '=', 'tag');
49 49
                     })
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $filter = new Filter();
62 62
         $query = $filter->where('key', $key)
63
-                ->where(function ($query) use ($labels) {
63
+                ->where(function($query) use ($labels) {
64 64
                     if (is_array($labels) && count($labels) > 0) {
65 65
                         for ($i = 0; $i < count($labels); $i++) {
66 66
                             $query->orWhere('value', 'LIKE', '%'.$labels[$i].'%');
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 }
88 88
 
89 89
                 return $table
90
-                    ->Join('ticket_status', function ($join) {
90
+                    ->Join('ticket_status', function($join) {
91 91
                         $join->on('ticket_status.id', '=', 'tickets.status')
92 92
                         ->whereIn('ticket_status.id', [1, 7]);
93 93
                     });
@@ -98,13 +98,13 @@  discard block
 block discarded – undo
98 98
                 }
99 99
 
100 100
                 return $table
101
-                    ->Join('ticket_status', function ($join) {
101
+                    ->Join('ticket_status', function($join) {
102 102
                         $join->on('ticket_status.id', '=', 'tickets.status')
103 103
                                 ->whereIn('ticket_status.state', ['closed']);
104 104
                     });
105 105
             case '/ticket/myticket':
106 106
                     return $table
107
-                      ->leftJoin('ticket_status', function ($join) {
107
+                      ->leftJoin('ticket_status', function($join) {
108 108
                           $join->on('ticket_status.id', '=', 'tickets.status');
109 109
                       })
110 110
                     ->orWhere('tickets.assigned_to', '=', Auth::user()->id)
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 }
117 117
 
118 118
                 return $table
119
-                     ->leftJoin('ticket_status', function ($join) {
119
+                     ->leftJoin('ticket_status', function($join) {
120 120
                          $join->on('ticket_status.id', '=', 'tickets.status');
121 121
                      })
122 122
                     ->where('tickets.assigned_to', '=', null)
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                 }
129 129
 
130 130
                   return $table
131
-                    ->leftJoin('ticket_status', function ($join) {
131
+                    ->leftJoin('ticket_status', function($join) {
132 132
                         $join->on('ticket_status.id', '=', 'tickets.status');
133 133
                     })
134 134
                     ->where('tickets.status', '=', 1)
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                 }
146 146
 
147 147
                 return $table
148
-                    ->Join('ticket_status', function ($join) {
148
+                    ->Join('ticket_status', function($join) {
149 149
                         $join->on('ticket_status.id', '=', 'tickets.status')
150 150
                                 ->where('tickets.status', '=', 7);
151 151
                     });
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 }
158 158
 
159 159
                 return $table
160
-                    ->Join('ticket_status', function ($join) {
160
+                    ->Join('ticket_status', function($join) {
161 161
                         $join->on('ticket_status.id', '=', 'tickets.status')
162 162
                                 ->where('tickets.status', '=', 5);
163 163
                     });
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                 }
170 170
 
171 171
                 return $table
172
-                    ->Join('ticket_status', function ($join) {
172
+                    ->Join('ticket_status', function($join) {
173 173
                         $join->on('ticket_status.id', '=', 'tickets.status')
174 174
                                 ->where('tickets.status', '=', 1)
175 175
                                 ->where('tickets.isanswered', '=', 1);
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                 }
182 182
 
183 183
                 return $table
184
-                     ->leftJoin('ticket_status', function ($join) {
184
+                     ->leftJoin('ticket_status', function($join) {
185 185
                          $join->on('ticket_status.id', '=', 'tickets.status');
186 186
                      })
187 187
                     ->where('tickets.assigned_to', '>', 0)
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                 }
194 194
 
195 195
                 return $table
196
-                     ->leftJoin('ticket_status', function ($join) {
196
+                     ->leftJoin('ticket_status', function($join) {
197 197
                          $join->on('ticket_status.id', '=', 'tickets.status');
198 198
                      })
199 199
                     ->where('isanswered', '=', 0)
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 }
206 206
 
207 207
                return $table
208
-                    ->leftJoin('ticket_status', function ($join) {
208
+                    ->leftJoin('ticket_status', function($join) {
209 209
                         $join->on('ticket_status.id', '=', 'tickets.status');
210 210
                     })
211 211
                     ->where('tickets.status', '=', 1)
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
                 }
221 221
 
222 222
                 return $table
223
-                    ->leftJoin('ticket_status', function ($join) {
223
+                    ->leftJoin('ticket_status', function($join) {
224 224
                         $join->on('ticket_status.id', '=', 'tickets.status');
225 225
                     })
226 226
                     ->where('tickets.status', '=', 1)
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         // if (Auth::user()->role == 'admin') {
235 235
             $ticket = new Tickets();
236 236
         $tickets = $ticket
237
-                    ->leftJoin('ticket_thread', function ($join) {
237
+                    ->leftJoin('ticket_thread', function($join) {
238 238
                         $join->on('tickets.id', '=', 'ticket_thread.ticket_id')
239 239
                         ->whereNotNull('title')
240 240
                         ->where('ticket_thread.is_internal', '<>', 1);
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 2 patches
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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                         /* order by name and website */
76 76
                         ->orderColumns('name', 'website')
77 77
                         /* column name */
78
-                        ->addColumn('name', function ($model) {
78
+                        ->addColumn('name', function($model) {
79 79
                             // return $model->name;
80 80
                             if (strlen($model->name) > 20) {
81 81
                                 $orgname = substr($model->name, 0, 25);
@@ -87,19 +87,19 @@  discard block
 block discarded – undo
87 87
                             return $orgname;
88 88
                         })
89 89
                         /* column website */
90
-                        ->addColumn('website', function ($model) {
90
+                        ->addColumn('website', function($model) {
91 91
                             $website = $model->website;
92 92
 
93 93
                             return $website;
94 94
                         })
95 95
                         /* column phone number */
96
-                        ->addColumn('phone', function ($model) {
96
+                        ->addColumn('phone', function($model) {
97 97
                             $phone = $model->phone;
98 98
 
99 99
                             return $phone;
100 100
                         })
101 101
                         /* column action buttons */
102
-                        ->addColumn('Actions', function ($model) {
102
+                        ->addColumn('Actions', function($model) {
103 103
                             // displaying action buttons
104 104
                             // modal popup to delete data
105 105
                             return '<span  data-toggle="modal" data-target="#deletearticle'.$model->id.'"><a href="#" ><button class="btn btn-danger btn-xs"></a> '.\Lang::get('lang.delete').' </button></span>&nbsp;<a href="'.route('organizations.edit', $model->id).'" class="btn btn-warning btn-xs">'.\Lang::get('lang.edit').'</a>&nbsp;<a href="'.route('organizations.show', $model->id).'" class="btn btn-primary btn-xs">'.\Lang::get('lang.view').'</a>
Please login to merge, or discard this patch.