Completed
Branch master (30a606)
by Esza
71:26 queued 63:45
created
src/controller/ApiManagerController.php 2 patches
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()->id; }
@@ -774,6 +785,9 @@  discard block
 block discarded – undo
774 785
         return $responses;
775 786
     }
776 787
 
788
+    /**
789
+     * @param string $keterangan
790
+     */
777 791
     private function send_apimanager($url_apimanager,$client,$host,$keterangan,$apikey=""){
778 792
         if(Auth::guest()){ $current_user = 1; }
779 793
         else{ $current_user = Auth::user()->id; }
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
 use Jawaraegov\Workflows\Models\WorkflowTransition;
18 18
 use Jawaraegov\Workflows\Models\History;
19 19
 use That0n3guy\Transliteration;
20
-
21 20
 use GuzzleHttp\Exception\GuzzleException;
22 21
 use GuzzleHttp\Client;
23
-use GuzzleHttp\Pool;
24
-use GuzzleHttp\Psr7;
25
-
26
-use Validator, Image, Session, File, Response, Redirect, Exception;
22
+use Validator;
23
+use Session;
24
+use Response;
25
+use Redirect;
26
+use Exception;
27 27
 use Auth;
28 28
 
29 29
 class ApiManagerController extends Controller
Please login to merge, or discard this patch.
src/controller/HostkeysController.php 2 patches
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.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@
 block discarded – undo
5 5
 use App\Http\Controllers\Controller;
6 6
 use Illuminate\Http\Request;
7 7
 use App\Hostkeys;
8
-use That0n3guy\Transliteration;
9
-
10 8
 use GuzzleHttp\Exception\GuzzleException;
11 9
 use GuzzleHttp\Client;
12
-use GuzzleHttp\Pool;
13
-use GuzzleHttp\Psr7;
14 10
 use Auth;
15
-use Validator, Image, Session, File, Response, Redirect, Exception;
11
+use Validator;
12
+use Session;
13
+use Response;
14
+use Redirect;
15
+use Exception;
16 16
 
17 17
 class HostkeysController extends Controller
18 18
 {
Please login to merge, or discard this patch.
src/middleware/ApiKey.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Middleware;
4 4
 
5 5
 use Closure;
6
-use Redirect;
7
-use Validator;
8 6
 use App\ApiKeys;
9 7
 use Jawaraegov\Workflows\Models\History;
10 8
 
Please login to merge, or discard this patch.