Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
app/Http/Controllers/Common/PhpMailController.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -45,6 +45,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 = '';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
         //dd($to, $toname, $subject, $data, $cc, $attach);
229 229
         //dd(\Config::get('mail'));
230 230
         //dd($attach);
231
-        $mail = Mail::send('emails.mail', ['data' => $data], function ($m) use ($to, $subject, $toname, $cc, $attach) {
231
+        $mail = Mail::send('emails.mail', ['data' => $data], function($m) use ($to, $subject, $toname, $cc, $attach) {
232 232
             $m->to($to, $toname)->subject($subject);
233 233
 
234 234
             if ($cc != null) {
Please login to merge, or discard this patch.
app/Http/Controllers/Common/SettingsController.php 3 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      * @param type Footer  $footer
113 113
      * @param type Request $request
114 114
      *
115
-     * @return type response
115
+     * @return \Illuminate\Http\RedirectResponse response
116 116
      */
117 117
     public function edit_widget($id, Widgets $widgets, Request $request)
118 118
     {
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      * @param type Footer  $footer
190 190
      * @param type Request $request
191 191
      *
192
-     * @return type response
192
+     * @return \Illuminate\Http\RedirectResponse response
193 193
      */
194 194
     public function edit_social_buttons($id, Widgets $widgets, Request $request)
195 195
     {
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     /**
221 221
      * POST SMTP.
222 222
      *
223
-     * @return type view
223
+     * @return \Illuminate\Http\RedirectResponse view
224 224
      */
225 225
     public function postsmtp(SmtpRequest $request)
226 226
     {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      * @param type Settings $set
248 248
      * @param type Request  $request
249 249
      *
250
-     * @return type view
250
+     * @return \Illuminate\Http\RedirectResponse view
251 251
      */
252 252
     public function PostSettings(Settings $set, Request $request)
253 253
     {
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
      *
358 358
      * @param Request $request
359 359
      *
360
-     * @return type
360
+     * @return \Illuminate\Http\RedirectResponse
361 361
      */
362 362
     public function PostPlugins(Request $request)
363 363
     {
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
     /**
446 446
      * Delete the directory.
447 447
      *
448
-     * @param type $dir
448
+     * @param string $dir
449 449
      *
450 450
      * @return bool
451 451
      */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,13 +5,11 @@
 block discarded – undo
5 5
 // controllers
6 6
 use App\Http\Controllers\Controller;
7 7
 // requests
8
-use App\Http\Requests;
9 8
 use App\Http\Requests\helpdesk\SmtpRequest;
10 9
 use App\Model\helpdesk\Email\Smtp;
11 10
 // models
12 11
 use App\Model\helpdesk\Settings\Plugin;
13 12
 use App\Model\helpdesk\Theme\Widgets;
14
-use Config;
15 13
 // classes
16 14
 use Crypt;
17 15
 use Exception;
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -59,16 +59,16 @@  discard block
 block discarded – undo
59 59
         return \Datatable::collection(Widgets::where('id', '<', '7')->get())
60 60
                         ->searchColumns('name')
61 61
                         ->orderColumns('name', 'title', 'value')
62
-                        ->addColumn('name', function ($model) {
62
+                        ->addColumn('name', function($model) {
63 63
                             return $model->name;
64 64
                         })
65
-                        ->addColumn('title', function ($model) {
65
+                        ->addColumn('title', function($model) {
66 66
                             return $model->title;
67 67
                         })
68
-                        ->addColumn('body', function ($model) {
68
+                        ->addColumn('body', function($model) {
69 69
                             return $model->value;
70 70
                         })
71
-                        ->addColumn('Actions', function ($model) {
71
+                        ->addColumn('Actions', function($model) {
72 72
                             return '<span data-toggle="modal" data-target="#edit_widget'.$model->id.'"><a class="btn btn-warning btn-xs">'.\Lang::get('lang.edit').'</a></span>
73 73
                 <div class="modal fade" id="edit_widget'.$model->id.'">
74 74
                     <div class="modal-dialog">
@@ -148,13 +148,13 @@  discard block
 block discarded – undo
148 148
         return \Datatable::collection(Widgets::where('id', '>', '6')->get())
149 149
                         ->searchColumns('name')
150 150
                         ->orderColumns('name', 'value')
151
-                        ->addColumn('name', function ($model) {
151
+                        ->addColumn('name', function($model) {
152 152
                             return $model->name;
153 153
                         })
154
-                        ->addColumn('link', function ($model) {
154
+                        ->addColumn('link', function($model) {
155 155
                             return $model->value;
156 156
                         })
157
-                        ->addColumn('Actions', function ($model) {
157
+                        ->addColumn('Actions', function($model) {
158 158
                             return '<span data-toggle="modal" data-target="#edit_widget'.$model->id.'"><a class="btn btn-warning btn-xs">'.\Lang::get('lang.edit').'</a></span>
159 159
                 <div class="modal fade" id="edit_widget'.$model->id.'">
160 160
                     <div class="modal-dialog">
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 
289 289
         return \Datatable::collection(new Collection($plugins))
290 290
                         ->searchColumns('name')
291
-                        ->addColumn('name', function ($model) {
291
+                        ->addColumn('name', function($model) {
292 292
                             if (array_has($model, 'path')) {
293 293
                                 if ($model['status'] == 0) {
294 294
                                     $activate = '<a href='.url('plugin/status/'.$model['path']).'>Activate</a>';
@@ -324,16 +324,16 @@  discard block
 block discarded – undo
324 324
 
325 325
                             return ucfirst($model['name']).$action;
326 326
                         })
327
-                        ->addColumn('description', function ($model) {
327
+                        ->addColumn('description', function($model) {
328 328
                             return ucfirst($model['description']);
329 329
                         })
330
-                        ->addColumn('author', function ($model) {
330
+                        ->addColumn('author', function($model) {
331 331
                             return ucfirst($model['author']);
332 332
                         })
333
-                        ->addColumn('website', function ($model) {
333
+                        ->addColumn('website', function($model) {
334 334
                             return '<a href='.$model['website'].' target=_blank>'.$model['website'].'</a>';
335 335
                         })
336
-                        ->addColumn('version', function ($model) {
336
+                        ->addColumn('version', function($model) {
337 337
                             return $model['version'];
338 338
                         })
339 339
                         ->make();
Please login to merge, or discard this patch.
app/Http/Controllers/Common/TemplateController.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @param \App\Http\Requests\helpdesk\TemplateRequest $request
112 112
      *
113
-     * @return type redirect
113
+     * @return \Illuminate\Http\RedirectResponse redirect
114 114
      */
115 115
     public function store(TemplateRequest $request)
116 116
     {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      * @param type                                      $id
150 150
      * @param \App\Http\Requests\helpdesk\TemplateUdate $request
151 151
      *
152
-     * @return type
152
+     * @return \Illuminate\Http\RedirectResponse
153 153
      */
154 154
     public function update($id, TemplateUdate $request)
155 155
     {
@@ -167,7 +167,6 @@  discard block
 block discarded – undo
167 167
     /**
168 168
      * function to delete a template.
169 169
      *
170
-     * @param int $id
171 170
      *
172 171
      * @return Response
173 172
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,10 +79,10 @@
 block discarded – undo
79 79
 
80 80
         return \Datatable::collection($this->template->where('set_id', '=', $id)->select('id', 'name', 'type')->get())
81 81
                         ->showColumns('name')
82
-                        ->addColumn('type', function ($model) {
82
+                        ->addColumn('type', function($model) {
83 83
                             return $this->type->where('id', $model->type)->first()->name;
84 84
                         })
85
-                        ->addColumn('action', function ($model) {
85
+                        ->addColumn('action', function($model) {
86 86
                             return '<a href='.url('templates/'.$model->id.'/edit')." class='btn btn-sm btn-primary'>Edit</a>";
87 87
                         })
88 88
                         ->searchColumns('name')
Please login to merge, or discard this patch.
app/Http/Controllers/Common/TemplateSetController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      *
54 54
      * @param \Illuminate\Http\Request $request
55 55
      *
56
-     * @return \Illuminate\Http\Response
56
+     * @return \Illuminate\Http\RedirectResponse
57 57
      */
58 58
     public function store(TemplateSet $sets, TemplateSetRequest $request)
59 59
     {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      *
77 77
      * @param int $id
78 78
      *
79
-     * @return \Illuminate\Http\Response
79
+     * @return \Illuminate\Http\RedirectResponse
80 80
      */
81 81
     public function activateSet($id)
82 82
     {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      *
100 100
      * @param int $id
101 101
      *
102
-     * @return \Illuminate\Http\Response
102
+     * @return null|\Illuminate\Http\RedirectResponse
103 103
      */
104 104
     public function show($id)
105 105
     {
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use App\Model\helpdesk\Ticket\Tickets;
6
-
7 5
 class HomeController extends Controller
8 6
 {
9 7
     /*
Please login to merge, or discard this patch.
app/Http/Controllers/Installer/helpdesk/InstallController.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * Post Licencecheck.
63 63
      *
64
-     * @return type view
64
+     * @return \Illuminate\Http\RedirectResponse view
65 65
      */
66 66
     public function licencecheck(Request $request)
67 67
     {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * Post Prerequisitescheck
99 99
      * checking prerequisites.
100 100
      *
101
-     * @return type view
101
+     * @return \Illuminate\Http\RedirectResponse view
102 102
      */
103 103
     public function prerequisitescheck(Request $request)
104 104
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * Post localizationcheck
128 128
      * checking prerequisites.
129 129
      *
130
-     * @return type view
130
+     * @return \Illuminate\Http\RedirectResponse view
131 131
      */
132 132
     public function localizationcheck(Request $request)
133 133
     {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      * Post configurationcheck
163 163
      * checking prerequisites.
164 164
      *
165
-     * @return type view
165
+     * @return \Illuminate\Http\RedirectResponse view
166 166
      */
167 167
     public function configurationcheck(DatabaseRequest $request)
168 168
     {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * postconnection.
183 183
      *
184
-     * @return type view
184
+     * @return integer view
185 185
      */
186 186
     public function postconnection(Request $request)
187 187
     {
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      *
268 268
      * @param type InstallerRequest $request
269 269
      *
270
-     * @return type view
270
+     * @return \Illuminate\Http\RedirectResponse|null view
271 271
      */
272 272
     public function accountcheck(InstallerRequest $request)
273 273
     {
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
      * Post finalcheck
395 395
      * checking prerequisites.
396 396
      *
397
-     * @return type view
397
+     * @return \Illuminate\Http\RedirectResponse view
398 398
      */
399 399
     public function finalcheck()
400 400
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Job/MailController.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -24,6 +24,11 @@
 block discarded – undo
24 24
         return $form;
25 25
     }
26 26
 
27
+    /**
28
+     * @param string $label
29
+     * @param string $name
30
+     * @param string $class
31
+     */
27 32
     public function form($label, $name, $class)
28 33
     {
29 34
         $mailid = \Input::get('emailid');
Please login to merge, or discard this patch.
app/Http/Controllers/Job/QueueController.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -172,6 +172,11 @@
 block discarded – undo
172 172
         }
173 173
     }
174 174
 
175
+    /**
176
+     * @param string $label
177
+     * @param string $name
178
+     * @param string $class
179
+     */
175 180
     public function form($short, $label, $name, $class, $placeholder = '')
176 181
     {
177 182
         $queueid = $this->getIdByShortName($short);
Please login to merge, or discard this patch.
app/Http/Controllers/Update/UpgradeController.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -207,6 +207,9 @@  discard block
 block discarded – undo
207 207
         exit();
208 208
     }
209 209
 
210
+    /**
211
+     * @param string $key
212
+     */
210 213
     public function deleteBarNotification($key)
211 214
     {
212 215
         try {
@@ -342,6 +345,9 @@  discard block
 block discarded – undo
342 345
         }
343 346
     }
344 347
 
348
+    /**
349
+     * @param string $url
350
+     */
345 351
     public function postDownloadCurl($url, $data)
346 352
     {
347 353
         try {
Please login to merge, or discard this patch.