@@ -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; |
@@ -590,6 +593,14 @@ discard block |
||
| 590 | 593 | } |
| 591 | 594 | } |
| 592 | 595 | |
| 596 | + /** |
|
| 597 | + * @param boolean $error |
|
| 598 | + * @param integer $statusCode |
|
| 599 | + * @param string $title |
|
| 600 | + * @param string $type |
|
| 601 | + * @param string $message |
|
| 602 | + * @param string $transition |
|
| 603 | + */ |
|
| 593 | 604 | private function SendClient($client, $host, $error, $statusCode, $title, $type, $message, $result, $state, $transition){ |
| 594 | 605 | if(Auth::guest()){ $current_user = 1; } |
| 595 | 606 | else{ $current_user = Auth::user()->id; } |
@@ -2,18 +2,16 @@ |
||
| 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 Validator; |
|
| 11 | +use Session; |
|
| 12 | +use Response; |
|
| 13 | +use Redirect; |
|
| 14 | +use Exception; |
|
| 17 | 15 | |
| 18 | 16 | class HostkeysController extends Controller |
| 19 | 17 | {
|