Completed
Push — master ( 5fb9ba...ca94a8 )
by Esza
01:10
created
src/controller/HostkeysController.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
   /**
59 59
    * Store a newly created resource in storage.
60 60
    *
61
-   * @return Response
61
+   * @return \Illuminate\Http\JsonResponse
62 62
    */
63 63
   public function store(Request $request)
64 64
   {
@@ -236,6 +236,10 @@  discard block
 block discarded – undo
236 236
       return Redirect::to('host-keys');
237 237
   }
238 238
 
239
+  /**
240
+   * @param Request $request
241
+   * @param string $keterangan
242
+   */
239 243
   private function send_apimanager($url_apimanager,$request,$current_user,$keterangan){
240 244
       $headers = ['Content-Type' => 'application/json'];
241 245
       $host       = str_replace(array('https://', 'http://'), array('',''),$request->host);
@@ -304,7 +308,7 @@  discard block
 block discarded – undo
304 308
    * Update the specified resource in storage.
305 309
    *
306 310
    * @param  int  $id
307
-   * @return Response
311
+   * @return \Illuminate\Http\JsonResponse
308 312
    */
309 313
    public function update(Request $request, $id)
310 314
    {
Please login to merge, or discard this patch.
src/controller/ApiManagerController.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -179,6 +179,9 @@  discard block
 block discarded – undo
179 179
         }
180 180
     }
181 181
 
182
+    /**
183
+     * @param string $model
184
+     */
182 185
     private function getWorkflow($model){
183 186
 		$data = WorkflowModel::where('content_type', 'like', '%' . $model . '%');
184 187
 		return $data;
@@ -632,6 +635,14 @@  discard block
 block discarded – undo
632 635
       }
633 636
     }
634 637
 
638
+    /**
639
+     * @param boolean $error
640
+     * @param integer $statusCode
641
+     * @param string $title
642
+     * @param string $type
643
+     * @param string $message
644
+     * @param string $transition
645
+     */
635 646
     private function SendClient($client, $host, $error, $statusCode, $title, $type, $message, $result, $state, $transition){
636 647
         if(Auth::guest()){ $current_user = 1; }
637 648
         else{ $current_user = (Auth::user())?((Auth::user()->id)?Auth::user()->id:1):1; }
@@ -776,6 +787,9 @@  discard block
 block discarded – undo
776 787
         return $responses;
777 788
     }
778 789
 
790
+    /**
791
+     * @param string $keterangan
792
+     */
779 793
     private function send_apimanager($url_apimanager,$client,$host,$keterangan,$apikey=""){
780 794
         if(Auth::guest()){ $current_user = 1; }
781 795
         else{ $current_user = (Auth::user())?((Auth::user()->id)?Auth::user()->id:1):1; }
Please login to merge, or discard this patch.