@@ -183,6 +183,9 @@ discard block |
||
183 | 183 | } |
184 | 184 | } |
185 | 185 | |
186 | + /** |
|
187 | + * @param string $model |
|
188 | + */ |
|
186 | 189 | private function getWorkflow($model){ |
187 | 190 | $data = WorkflowModel::where('content_type', 'like', '%' . $model . '%'); |
188 | 191 | return $data; |
@@ -611,6 +614,14 @@ discard block |
||
611 | 614 | } |
612 | 615 | } |
613 | 616 | |
617 | + /** |
|
618 | + * @param boolean $error |
|
619 | + * @param integer $statusCode |
|
620 | + * @param string $title |
|
621 | + * @param string $type |
|
622 | + * @param string $message |
|
623 | + * @param string $transition |
|
624 | + */ |
|
614 | 625 | private function SendClient($client, $host, $error, $statusCode, $title, $type, $message, $result, $state, $transition){ |
615 | 626 | if(Auth::guest()){ $current_user = 1; } |
616 | 627 | else{ $current_user = Auth::user()->id; } |
@@ -657,6 +668,9 @@ discard block |
||
657 | 668 | return $responses; |
658 | 669 | } |
659 | 670 | |
671 | + /** |
|
672 | + * @param string $keterangan |
|
673 | + */ |
|
660 | 674 | private function send_apimanager($url_apimanager,$client,$host,$keterangan){ |
661 | 675 | if(Auth::guest()){ $current_user = 1; } |
662 | 676 | else{ $current_user = Auth::user()->id; } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Store a newly created resource in storage. |
61 | 61 | * |
62 | - * @return Response |
|
62 | + * @return \Illuminate\Http\JsonResponse |
|
63 | 63 | */ |
64 | 64 | public function store(Request $request) |
65 | 65 | { |
@@ -214,6 +214,10 @@ discard block |
||
214 | 214 | return Redirect::to('host-keys'); |
215 | 215 | } |
216 | 216 | |
217 | + /** |
|
218 | + * @param Request $request |
|
219 | + * @param string $keterangan |
|
220 | + */ |
|
217 | 221 | private function send_apimanager($url_apimanager,$request,$current_user,$keterangan){ |
218 | 222 | $headers = ['Content-Type' => 'application/json']; |
219 | 223 | $host = str_replace(array('https://', 'http://'), array('',''),$request->host); |
@@ -254,7 +258,7 @@ discard block |
||
254 | 258 | * Update the specified resource in storage. |
255 | 259 | * |
256 | 260 | * @param int $id |
257 | - * @return Response |
|
261 | + * @return \Illuminate\Http\JsonResponse |
|
258 | 262 | */ |
259 | 263 | public function update(Request $request, $id) |
260 | 264 | { |