@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Integrations\Exceptions; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use Illuminate\Http\Request; |
|
7 | 6 | |
8 | 7 | class WebhookException extends Exception |
9 | 8 | { |
@@ -146,7 +146,7 @@ |
||
146 | 146 | /** |
147 | 147 | * Get the services provided by the provider. |
148 | 148 | * |
149 | - * @return array |
|
149 | + * @return string[] |
|
150 | 150 | */ |
151 | 151 | public function provides() |
152 | 152 | { |
@@ -2,22 +2,15 @@ |
||
2 | 2 | |
3 | 3 | namespace Integrations; |
4 | 4 | |
5 | -use App; |
|
6 | 5 | use Config; |
7 | -use Illuminate\Contracts\Events\Dispatcher; |
|
8 | -use Illuminate\Foundation\AliasLoader; |
|
9 | -use Illuminate\Routing\Router; |
|
10 | 6 | |
11 | -use Illuminate\Support\Collection; |
|
12 | 7 | use Illuminate\Support\Facades\View; |
13 | 8 | use Illuminate\Support\ServiceProvider; |
14 | -use Integrations\Facades\Integrations as IntegrationsFacade; |
|
15 | 9 | use Integrations\Services\IntegrationsService; |
16 | 10 | |
17 | 11 | use Log; |
18 | 12 | |
19 | 13 | use Muleta\Traits\Providers\ConsoleTools; |
20 | -use Route; |
|
21 | 14 | |
22 | 15 | class IntegrationsProvider extends ServiceProvider |
23 | 16 | { |
@@ -37,7 +37,6 @@ |
||
37 | 37 | /** |
38 | 38 | * Leave all integrations |
39 | 39 | * |
40 | - * @param integer $integrationId |
|
41 | 40 | * @param integer $userId |
42 | 41 | * @return void |
43 | 42 | */ |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Integrations\Traits; |
4 | 4 | |
5 | -use Auth; |
|
6 | -use Socialite; |
|
7 | -use Illuminate\Http\Request; |
|
8 | 5 | use App\Models\User; |
6 | +use Auth; |
|
9 | 7 | use Flash; |
8 | +use Illuminate\Http\Request; |
|
9 | +use Socialite; |
|
10 | 10 | |
11 | 11 | trait SocialiteHelper |
12 | 12 | { |
@@ -2,11 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Integrations\Connectors\Gitlab; |
4 | 4 | |
5 | -use Log; |
|
6 | -use App\Models\User; |
|
7 | -use Fabrica\Models\Code\Project; |
|
8 | -use Fabrica\Bundle\CoreBundle\EventDispatcher\FabricaEvents; |
|
9 | 5 | use Fabrica\Bundle\CoreBundle\EventDispatcher\Event\ProjectEvent; |
6 | +use Fabrica\Models\Code\Project; |
|
10 | 7 | |
11 | 8 | /** |
12 | 9 | * https://github.com/GitLabPHP/Client/blob/9.18/lib/Gitlab/Api/Projects.php |
@@ -18,6 +18,9 @@ |
||
18 | 18 | $this->projects($output); |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @param boolean $output |
|
23 | + */ |
|
21 | 24 | public function projects($output) |
22 | 25 | { |
23 | 26 | $projects = $this->_connection->api('projects')->all( |
@@ -3,9 +3,7 @@ discard block |
||
3 | 3 | namespace Integrations\Connectors\Jira; |
4 | 4 | |
5 | 5 | use App\Models\User; |
6 | -use Casa\Models\Calendar\Estimate; |
|
7 | 6 | |
8 | -use Casa\Models\Calendar\Event; |
|
9 | 7 | use Casa\Models\Registers\Spent; |
10 | 8 | use Fabrica\Models\Code\CodeIssueLink; |
11 | 9 | use Fabrica\Models\Code\Field as FieldModel; |
@@ -21,7 +19,6 @@ discard block |
||
21 | 19 | use JiraRestApi\Issue\Version; |
22 | 20 | use JiraRestApi\JiraException; |
23 | 21 | use JiraRestApi\Project\ProjectService; |
24 | -use Log; |
|
25 | 22 | use Transmissor\Models\Comment; |
26 | 23 | |
27 | 24 | class Import extends Jira |
@@ -4,8 +4,8 @@ |
||
4 | 4 | namespace Integrations\Http\Controllers\Webhook; |
5 | 5 | |
6 | 6 | |
7 | -use Integrations\Http\Controllers\Controller; |
|
8 | 7 | use BotMan\BotMan\BotMan; |
8 | +use Integrations\Http\Controllers\Controller; |
|
9 | 9 | |
10 | 10 | class StoreController extends Controller |
11 | 11 | { |
@@ -2,12 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Integrations\Http\Controllers\WebServicos; |
4 | 4 | |
5 | -use Illuminate\Http\Request; |
|
6 | -use Integrations\Exceptions\Exception; |
|
7 | 5 | use Integrations\Http\Controllers\Controller as Base; |
8 | 6 | use Integrations\Models\Token; |
9 | 7 | // use Facilitador\Http\Controllers\Admin\Base; |
10 | -use Yajra\Datatables\Datatables; |
|
11 | 8 | |
12 | 9 | class TokenController extends Base |
13 | 10 | { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Parses the API Reply |
54 | 54 | * |
55 | - * @param mixed $jsonreply |
|
55 | + * @param string $jsonreply |
|
56 | 56 | * |
57 | 57 | * @return mixed |
58 | 58 | */ |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Integrations\Connectors\Twitter; |
4 | 4 | |
5 | -use Log; |
|
6 | -use App\Models\User; |
|
7 | - |
|
8 | 5 | class DatumboxAPI |
9 | 6 | { |
10 | 7 | const version='1.0'; |