@@ -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; |
@@ -587,6 +590,14 @@ discard block |
||
587 | 590 | } |
588 | 591 | } |
589 | 592 | |
593 | + /** |
|
594 | + * @param boolean $error |
|
595 | + * @param integer $statusCode |
|
596 | + * @param string $title |
|
597 | + * @param string $type |
|
598 | + * @param string $message |
|
599 | + * @param string $transition |
|
600 | + */ |
|
590 | 601 | private function SendClient($client, $error, $statusCode, $title, $type, $message, $result, $state, $transition){ |
591 | 602 | if(Auth::guest()){ $current_user = 1; } |
592 | 603 | else{ $current_user = Auth::user()->id; } |
@@ -17,13 +17,12 @@ |
||
17 | 17 | use Bantenprov\Workflow\Models\WorkflowTransition; |
18 | 18 | use Bantenprov\Workflow\Models\History; |
19 | 19 | use That0n3guy\Transliteration; |
20 | - |
|
21 | -use GuzzleHttp\Exception\GuzzleException; |
|
22 | 20 | use GuzzleHttp\Client; |
23 | -use GuzzleHttp\Pool; |
|
24 | -use GuzzleHttp\Psr7; |
|
25 | - |
|
26 | -use Validator, Image, Session, File, Response, Redirect, Exception; |
|
21 | +use Validator; |
|
22 | +use Session; |
|
23 | +use Response; |
|
24 | +use Redirect; |
|
25 | +use Exception; |
|
27 | 26 | use Auth; |
28 | 27 | |
29 | 28 | class ApiManagerController extends Controller |
@@ -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 | { |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | * Update the specified resource in storage. |
211 | 211 | * |
212 | 212 | * @param int $id |
213 | - * @return Response |
|
213 | + * @return \Illuminate\Http\JsonResponse |
|
214 | 214 | */ |
215 | 215 | public function update(Request $request, $id) |
216 | 216 | { |
@@ -2,18 +2,15 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | -use App\Http\Controllers\Controller; |
|
6 | -use Illuminate\Http\Request; |
|
7 | -use App\Hostkeys; |
|
8 | -use That0n3guy\Transliteration; |
|
9 | - |
|
10 | -use GuzzleHttp\Exception\GuzzleException; |
|
11 | -use GuzzleHttp\Client; |
|
12 | -use GuzzleHttp\Pool; |
|
13 | -use GuzzleHttp\Psr7; |
|
14 | -use Auth; |
|
15 | - |
|
16 | -use Validator, Image, Session, File, Response, Redirect, Exception; |
|
5 | +use App\Http\Controllers\Controller; |
|
6 | +use Illuminate\Http\Request; |
|
7 | +use App\Hostkeys; |
|
8 | +use GuzzleHttp\Client; |
|
9 | +use Auth; |
|
10 | +use Session; |
|
11 | +use Response; |
|
12 | +use Redirect; |
|
13 | +use Exception; |
|
17 | 14 | |
18 | 15 | class HostkeysController extends Controller |
19 | 16 | { |
@@ -3,8 +3,6 @@ |
||
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 Bantenprov\Workflow\Models\History; |
10 | 8 |