@@ -45,7 +45,7 @@ |
||
45 | 45 | /** |
46 | 46 | *@category Funcion to set rule if send opt is enabled |
47 | 47 | * |
48 | - *@param object $settings (instance of Model common settings) |
|
48 | + *@param CommonSettings $settings (instance of Model common settings) |
|
49 | 49 | * |
50 | 50 | *@author [email protected] |
51 | 51 | * |
@@ -59,6 +59,9 @@ |
||
59 | 59 | return $size; |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param \Exception $e |
|
64 | + */ |
|
62 | 65 | public function error($e) |
63 | 66 | { |
64 | 67 | if ($this->ajax() || $this->wantsJson()) { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * |
73 | 73 | * @param CreateLocationRequest $request |
74 | - * @return type |
|
74 | + * @return \Illuminate\Http\RedirectResponse |
|
75 | 75 | */ |
76 | 76 | public function handleCreate(CreateLocationRequest $request) { |
77 | 77 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | /** |
123 | 123 | * |
124 | 124 | * @param CreateLocationRequest $request |
125 | - * @return type |
|
125 | + * @return \Illuminate\Http\RedirectResponse |
|
126 | 126 | */ |
127 | 127 | public function handleEdit(CreateLocationRequest $request) { |
128 | 128 | try { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * |
147 | 147 | * @param type $id |
148 | - * @return type |
|
148 | + * @return \Illuminate\Http\RedirectResponse |
|
149 | 149 | */ |
150 | 150 | public function handledelete($id) { |
151 | 151 | try { |
@@ -171,6 +171,9 @@ discard block |
||
171 | 171 | } |
172 | 172 | } |
173 | 173 | |
174 | + /** |
|
175 | + * @param Request $request |
|
176 | + */ |
|
174 | 177 | public function store($request) { |
175 | 178 | try { |
176 | 179 | $sd_problems = new SdProblem; |
@@ -188,6 +191,9 @@ discard block |
||
188 | 191 | } |
189 | 192 | } |
190 | 193 | |
194 | + /** |
|
195 | + * @param CreateProblemRequest $request |
|
196 | + */ |
|
191 | 197 | public function update($id, $request) { |
192 | 198 | try { |
193 | 199 | $sd_problems = new SdProblem; |
@@ -26,6 +26,9 @@ discard block |
||
26 | 26 | return $asset; |
27 | 27 | } |
28 | 28 | |
29 | + /** |
|
30 | + * @param \App\Itil\Models\Problem\SdProblem $model |
|
31 | + */ |
|
29 | 32 | public static function getModelWithSelect($model, $select = []) { |
30 | 33 | try { |
31 | 34 | if (count($select) > 0) { |
@@ -37,6 +40,9 @@ discard block |
||
37 | 40 | } |
38 | 41 | } |
39 | 42 | |
43 | + /** |
|
44 | + * @param string $table |
|
45 | + */ |
|
40 | 46 | public static function saveTicketRelation($ticketid, $table, $id) { |
41 | 47 | |
42 | 48 | $relation = new \App\Itil\Models\Common\TicketRelation(); |
@@ -93,6 +99,9 @@ discard block |
||
93 | 99 | return $asset; |
94 | 100 | } |
95 | 101 | |
102 | + /** |
|
103 | + * @param string $table |
|
104 | + */ |
|
96 | 105 | public static function detachAsset($table,$id) { |
97 | 106 | $relation = new \App\Itil\Models\Common\AssetRelation(); |
98 | 107 | $model = $relation->where('owner', "$table:$id")->first(); |
@@ -101,6 +110,9 @@ discard block |
||
101 | 110 | } |
102 | 111 | } |
103 | 112 | |
113 | + /** |
|
114 | + * @param string $table |
|
115 | + */ |
|
104 | 116 | public static function getRelationOfTicketByTable($ticketid, $table) { |
105 | 117 | $realtions = new \App\Itil\Models\Common\TicketRelation(); |
106 | 118 | $realtion = $realtions->where('ticket_id', $ticketid)->where('owner', 'LIKE', $table . "%")->first(); |
@@ -195,6 +207,10 @@ discard block |
||
195 | 207 | } |
196 | 208 | } |
197 | 209 | |
210 | + /** |
|
211 | + * @param integer $saved |
|
212 | + * @param string $value |
|
213 | + */ |
|
198 | 214 | public static function storeAttachment($saved, $owner, $value, $type, $size) { |
199 | 215 | $attachments = new Attachments(); |
200 | 216 | $attachments->create([ |
@@ -206,6 +222,9 @@ discard block |
||
206 | 222 | ]); |
207 | 223 | } |
208 | 224 | |
225 | + /** |
|
226 | + * @param string $table |
|
227 | + */ |
|
209 | 228 | public static function deleteAttachments($id, $table) { |
210 | 229 | $owner = "$table:$id"; |
211 | 230 | $attachments = new Attachments(); |
@@ -237,6 +256,9 @@ discard block |
||
237 | 256 | return $attach; |
238 | 257 | } |
239 | 258 | |
259 | + /** |
|
260 | + * @param string $table |
|
261 | + */ |
|
240 | 262 | public static function storeAssetRelation($table, $id, $asset_ids = [], $update = false) { |
241 | 263 | $relations = new AssetRelation(); |
242 | 264 | $owner = "$table:$id"; |
@@ -438,6 +460,9 @@ discard block |
||
438 | 460 | return $result; |
439 | 461 | } |
440 | 462 | |
463 | + /** |
|
464 | + * @param string $activity |
|
465 | + */ |
|
441 | 466 | public static function cabMessage($cabid, $activity, $url) { |
442 | 467 | $cabs = new \App\Itil\Models\Cab(); |
443 | 468 | $cab = $cabs->find($cabid); |
@@ -481,6 +506,9 @@ discard block |
||
481 | 506 | } |
482 | 507 | } |
483 | 508 | |
509 | + /** |
|
510 | + * @param \Illuminate\Http\Request $requests |
|
511 | + */ |
|
484 | 512 | public static function storeGeneralInfo($modelid, $table, $requests) { |
485 | 513 | $owner = "$table:$modelid"; |
486 | 514 | $request = $requests->except('_token', 'attachment', 'identifier'); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | /** |
34 | 34 | * Execute the job. |
35 | 35 | * |
36 | - * @return void |
|
36 | + * @return integer |
|
37 | 37 | */ |
38 | 38 | public function handle(PhpMailController $PhpMailController) |
39 | 39 | { |
@@ -22,6 +22,9 @@ |
||
22 | 22 | return $status; |
23 | 23 | } |
24 | 24 | |
25 | + /** |
|
26 | + * @param string $option |
|
27 | + */ |
|
25 | 28 | public function getOptionValue($option, $field = '') |
26 | 29 | { |
27 | 30 | $schema = $this->where('option_name', $option); |
@@ -13,6 +13,9 @@ |
||
13 | 13 | 'value', |
14 | 14 | ]; |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $provider |
|
18 | + */ |
|
16 | 19 | public function getvalueByKey($provider, $key = '', $login = true) |
17 | 20 | { |
18 | 21 | $social = ''; |
@@ -113,6 +113,9 @@ |
||
113 | 113 | return 'no'; |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param string $body |
|
118 | + */ |
|
116 | 119 | public function inlineAttachment($body) |
117 | 120 | { |
118 | 121 | $attachments = $this->attach; |