@@ -45,6 +45,10 @@ |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | // Helper Function to get the Content from the API URL |
48 | + |
|
49 | + /** |
|
50 | + * @param string $url |
|
51 | + */ |
|
48 | 52 | private function getContent($url, $user_agent, $proxy='') |
49 | 53 | { |
50 | 54 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Integrations\Connectors\Wikipedia; |
4 | 4 | |
5 | -use Log; |
|
6 | 5 | use App\Models\User; |
7 | 6 | |
8 | 7 | /* PHP-Wiki-API: This is a simple class to get short Wikipedia info boxes from a given Keyword. |
@@ -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 | { |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Integrations\Models\Access; |
4 | 4 | |
5 | -use Integrations\Models\Access; |
|
6 | 5 | use App\Models\Role; |
7 | 6 | use App\Models\User; |
8 | -use Integrations\Models\UserRepo; |
|
9 | -use Integrations\Exceptions\LdapException; |
|
10 | 7 | use Illuminate\Contracts\Auth\Authenticatable; |
11 | 8 | use Illuminate\Database\Eloquent\Builder; |
9 | +use Integrations\Exceptions\LdapException; |
|
10 | +use Integrations\Models\Access; |
|
11 | +use Integrations\Models\UserRepo; |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Class LdapService |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * Get the details of a user from LDAP using the given username. |
81 | 81 | * User found via configurable user filter. |
82 | 82 | * |
83 | - * @param $userName |
|
83 | + * @param string $userName |
|
84 | 84 | * @return array|null |
85 | 85 | * @throws LdapException |
86 | 86 | */ |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * Bind the system user to the LDAP connection using the given credentials |
155 | 155 | * otherwise anonymous access is attempted. |
156 | 156 | * |
157 | - * @param $connection |
|
157 | + * @param resource $connection |
|
158 | 158 | * @throws LdapException |
159 | 159 | */ |
160 | 160 | protected function bindSystemUser($connection) |
@@ -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 | { |