Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
app/Model/MailJob/Condition.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
24 24
         return $value;
25 25
     }
26 26
 
27
+    /**
28
+     * @param integer $key
29
+     */
27 30
     public function checkArray($key, $array)
28 31
     {
29 32
         $value = '';
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Controllers/Assets/AssetController.php 1 patch
Doc Comments   +16 added lines, -10 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * 
85 85
      * @param CreateAssetRequest $request
86
-     * @return type
86
+     * @return \Illuminate\Http\JsonResponse
87 87
      */
88 88
     public function handleCreate(CreateAssetRequest $request) {
89 89
         try {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * 
131 131
      * @param CreateAssetRequest $request
132
-     * @return type
132
+     * @return \Illuminate\Http\JsonResponse
133 133
      */
134 134
     public function handleEdit($id, CreateAssetRequest $request) {
135 135
         try {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     /**
153 153
      * 
154 154
      * @param type $id
155
-     * @return type
155
+     * @return \Illuminate\Http\RedirectResponse
156 156
      */
157 157
     public function assetHandledelete($id) {
158 158
         try {
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     /**
186 186
      * 
187 187
      * @param Request $request
188
-     * @return type
188
+     * @return \Illuminate\Http\RedirectResponse
189 189
      */
190 190
     public function attachAssetToTicket(Request $request) {
191 191
         try {
@@ -255,7 +255,6 @@  discard block
 block discarded – undo
255 255
 
256 256
     /**
257 257
      * 
258
-     * @param type $threadid
259 258
      */
260 259
     public function timelineMarble($asset, $ticketid) {
261 260
         if ($asset) {
@@ -268,7 +267,7 @@  discard block
 block discarded – undo
268 267
      * 
269 268
      * @param type $asset
270 269
      * @param type $ticketid
271
-     * @return type
270
+     * @return string
272 271
      */
273 272
     public function marble($asset, $ticketid) {
274 273
         $user = \App\Plugins\ServiceDesk\Controllers\Library\UtilityController::getManagedByAssetId($asset->id);
@@ -283,9 +282,9 @@  discard block
 block discarded – undo
283 282
      * 
284 283
      * @param type $ticketid
285 284
      * @param type $asset_name
286
-     * @param type $user_name
287
-     * @param type $managed_by
288
-     * @return type
285
+     * @param string $user_name
286
+     * @param string $managed_by
287
+     * @return string
289 288
      */
290 289
     public function marbleHtml($ticketid, $asset_name, $user_name, $managed_by, $assetid) {
291 290
         $url = url('service-desk/asset/detach/' . $ticketid);
@@ -313,7 +312,7 @@  discard block
 block discarded – undo
313 312
     /**
314 313
      * 
315 314
      * @param type $ticketid
316
-     * @return type
315
+     * @return \Illuminate\Http\RedirectResponse
317 316
      */
318 317
     public function detach($ticketid) {
319 318
         $relation = \App\Plugins\ServiceDesk\Controllers\Library\UtilityController::getRelationOfTicketByTable($ticketid, 'sd_asset');
@@ -430,11 +429,18 @@  discard block
 block discarded – undo
430 429
         }
431 430
     }
432 431
 
432
+    /**
433
+     * @param string $date
434
+     */
433 435
     public function convertDate($date) {
434 436
         $converted_date = date('Y-m-d H:i:s', strtotime($date));
435 437
         return $converted_date;
436 438
     }
437 439
 
440
+    /**
441
+     * @param string $first
442
+     * @param string $last
443
+     */
438 444
     public function getAssets($first, $last) {
439 445
         $asset = new SdAssets();
440 446
         $assets = $asset->leftJoin('department', 'sd_assets.department_id', '=', 'department.id')
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Controllers/Assetstypes/AssetstypesController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * 
69 69
      * @param CreateAssetstypesRequest $request
70
-     * @return type
70
+     * @return \Illuminate\Http\RedirectResponse
71 71
      */
72 72
     public function handleCreate(CreateAssetstypesRequest $request) {
73 73
         try {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     /**
117 117
      * 
118 118
      * @param type $id
119
-     * @return type
119
+     * @return \Illuminate\Http\RedirectResponse
120 120
      */
121 121
     public function assetHandledelete($id) {
122 122
         try {
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Controllers/FormBuilder/FormBuilderController.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
         }
98 98
     }
99 99
 
100
+    /**
101
+     * @param string $name
102
+     */
100 103
     public function checkField($name, $array) {
101 104
         $res = "";
102 105
         if (is_string($array)) {
@@ -207,6 +210,9 @@  discard block
 block discarded – undo
207 210
         return $html;
208 211
     }
209 212
 
213
+    /**
214
+     * @param boolean $json
215
+     */
210 216
     public function getForeach($values, $name, $label, $type, $sub_type, $class, $required, $placeholder, $description, $multiple, $json) {
211 217
         $html = "";
212 218
         $array = [];
@@ -392,6 +398,9 @@  discard block
 block discarded – undo
392 398
         }
393 399
     }
394 400
 
401
+    /**
402
+     * @param string $html
403
+     */
395 404
     public function popUp($id, $title, $html) {
396 405
         return '<a href="#form" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#form' . $id . '">Preview</a>
397 406
                 <div class="modal fade" id="form' . $id . '">
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Controllers/Library/UtilityController.php 1 patch
Doc Comments   +28 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@  discard block
 block discarded – undo
39 39
         }
40 40
     }
41 41
 
42
+    /**
43
+     * @param string $table
44
+     */
42 45
     public static function saveTicketRelation($ticketid, $table, $id) {
43 46
         
44 47
         $relation = new \App\Plugins\ServiceDesk\Model\Common\TicketRelation();
@@ -64,6 +67,9 @@  discard block
 block discarded – undo
64 67
         }
65 68
     }
66 69
 
70
+    /**
71
+     * @param string $table
72
+     */
67 73
     public static function saveAssetRelation($assetid, $table, $id) {
68 74
         if (is_array($assetid)) {
69 75
             $assetid = implode(',', $assetid);
@@ -95,6 +101,9 @@  discard block
 block discarded – undo
95 101
         return $asset;
96 102
     }
97 103
 
104
+    /**
105
+     * @param string $table
106
+     */
98 107
     public static function getRelationOfTicketByTable($ticketid,$table) {
99 108
         $realtions  = new \App\Plugins\ServiceDesk\Model\Common\TicketRelation();
100 109
         $realtion = $realtions->where('ticket_id',$ticketid)->where('owner','LIKE',$table."%")->first();
@@ -189,6 +198,10 @@  discard block
 block discarded – undo
189 198
         }
190 199
     }
191 200
 
201
+    /**
202
+     * @param integer $saved
203
+     * @param string $value
204
+     */
192 205
     public static function storeAttachment($saved, $owner, $value, $type, $size) {
193 206
         $attachments = new Attachments();
194 207
         $attachments->create([
@@ -200,6 +213,9 @@  discard block
 block discarded – undo
200 213
         ]);
201 214
     }
202 215
 
216
+    /**
217
+     * @param string $table
218
+     */
203 219
     public static function deleteAttachments($id, $table) {
204 220
         $owner = "$table:$id";
205 221
         $attachments = new Attachments();
@@ -231,6 +247,9 @@  discard block
 block discarded – undo
231 247
         return $attach;
232 248
     }
233 249
 
250
+    /**
251
+     * @param string $table
252
+     */
234 253
     public static function storeAssetRelation($table, $id, $asset_ids = [], $update = false) {
235 254
         $relations = new AssetRelation();
236 255
         $owner = "$table:$id";
@@ -269,6 +288,9 @@  discard block
 block discarded – undo
269 288
         }
270 289
     }
271 290
 
291
+    /**
292
+     * @param \SimpleXMLElement $xml
293
+     */
272 294
     public static function xmlToArray($xml, $options = array()) {
273 295
         $defaults = array(
274 296
             'namespaceSeparator' => ':', //you may want this to be something other than a colon
@@ -432,6 +454,9 @@  discard block
 block discarded – undo
432 454
         return $result;
433 455
     }
434 456
 
457
+    /**
458
+     * @param string $activity
459
+     */
435 460
     public static function cabMessage($cabid, $activity, $url) {
436 461
         $cabs = new \App\Plugins\ServiceDesk\Model\Cab\Cab();
437 462
         $cab = $cabs->find($cabid);
@@ -475,6 +500,9 @@  discard block
 block discarded – undo
475 500
         }
476 501
     }
477 502
 
503
+    /**
504
+     * @param \Illuminate\Http\Request $requests
505
+     */
478 506
     public static function storeGeneralInfo($modelid, $table, $requests) {
479 507
         $owner = "$table:$modelid";
480 508
         $request = $requests->except('_token', 'attachment', 'identifier');
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Controllers/Location/LocationController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * 
69 69
      * @param CreateLocationRequest $request
70
-     * @return type
70
+     * @return \Illuminate\Http\RedirectResponse
71 71
      */
72 72
     public function handleCreate(CreateLocationRequest $request) {
73 73
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * 
113 113
      * @param CreateLocationRequest $request
114
-     * @return type
114
+     * @return \Illuminate\Http\RedirectResponse
115 115
      */
116 116
     public function handleEdit(CreateLocationRequest $request) {
117 117
         try {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     /**
135 135
      * 
136 136
      * @param type $id
137
-     * @return type
137
+     * @return \Illuminate\Http\RedirectResponse
138 138
      */
139 139
     public function handledelete($id) {
140 140
         try {
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Controllers/Problem/ProblemController.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -172,6 +172,9 @@  discard block
 block discarded – undo
172 172
         }
173 173
     }
174 174
 
175
+    /**
176
+     * @param Request $request
177
+     */
175 178
     public function store($request) {
176 179
         try {
177 180
             $sd_problems = new SdProblem;
@@ -187,6 +190,9 @@  discard block
 block discarded – undo
187 190
         }
188 191
     }
189 192
 
193
+    /**
194
+     * @param CreateProblemRequest $request
195
+     */
190 196
     public function update($id, $request) {
191 197
         try {
192 198
             $sd_problems = new SdProblem;
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Model/Assets/SdAssets.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -272,6 +272,9 @@
 block discarded – undo
272 272
         return $this->belongsTo($related, 'organization');
273 273
     }
274 274
 
275
+    /**
276
+     * @return string
277
+     */
275 278
     public function getOrganization() {
276 279
         $name = "";
277 280
         if ($this->getOrganizationRelation()) {
Please login to merge, or discard this patch.
app/User.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@  discard block
 block discarded – undo
76 76
         }
77 77
     }
78 78
 
79
+    /**
80
+     * @return string
81
+     */
79 82
     public function getOrganization()
80 83
     {
81 84
         $name = '';
@@ -124,6 +127,9 @@  discard block
 block discarded – undo
124 127
         return $infos;
125 128
     }
126 129
 
130
+    /**
131
+     * @param string $key
132
+     */
127 133
     public function checkArray($key, $array)
128 134
     {
129 135
         $value = '';
Please login to merge, or discard this patch.