Completed
Push — master ( 4cc058...75e069 )
by Ricardo
07:50
created
src/Connectors/Wikipedia/WikiToApi.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -45,6 +45,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Exceptions/WebhookException.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Http/Middleware/LdapService.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * Get the details of a user from LDAP using the given username.
77 77
      * User found via configurable user filter.
78
-     * @param $userName
78
+     * @param string $userName
79 79
      * @return array|null
80 80
      * @throws LdapException
81 81
      */
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     /**
148 148
      * Bind the system user to the LDAP connection using the given credentials
149 149
      * otherwise anonymous access is attempted.
150
-     * @param $connection
150
+     * @param resource $connection
151 151
      * @throws LdapException
152 152
      */
153 153
     protected function bindSystemUser($connection)
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/IntegrationsProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,23 +2,16 @@
 block discarded – undo
2 2
 
3 3
 namespace Integrations;
4 4
 
5
-use Illuminate\Foundation\AliasLoader;
5
+use Illuminate\Support\Facades\View;
6 6
 use Illuminate\Support\ServiceProvider;
7 7
 use Integrations\Services\IntegrationsService;
8
-use Illuminate\Support\Collection;
9
-use Illuminate\Support\Facades\View;
10 8
 
11
-use Log;
12
-use App;
13 9
 use Config;
10
+use Log;
14 11
 use Route;
15
-use Illuminate\Routing\Router;
16 12
 
17 13
 use Muleta\Traits\Providers\ConsoleTools;
18 14
 
19
-use Integrations\Facades\Integrations as IntegrationsFacade;
20
-use Illuminate\Contracts\Events\Dispatcher;
21
-
22 15
 
23 16
 class IntegrationsProvider extends ServiceProvider
24 17
 {
Please login to merge, or discard this patch.
src/Traits/ModelHasIntegrations.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
     /**
38 38
      * Leave all integrations
39 39
      *
40
-     * @param  integer $integrationId
41 40
      * @param  integer $userId
42 41
      * @return void
43 42
      */
Please login to merge, or discard this patch.
src/Traits/SocialiteHelper.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Connectors/Gitlab/Import.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
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([
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,11 +2,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Connectors/Jira/Import.php 1 patch
Unused Use Statements   +6 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,27 +2,24 @@
 block discarded – undo
2 2
 
3 3
 namespace Integrations\Connectors\Jira;
4 4
 
5
-use Log;
6 5
 use App\Models\User;
7 6
 
8
-use Fabrica\Models\Code\CodeIssueLink;
9 7
 use Casa\Models\Registers\Spent;
10
-use Casa\Models\Calendar\Estimate;
11
-use Casa\Models\Calendar\Event;
8
+use Fabrica\Models\Code\CodeIssueLink;
12 9
 
13 10
 use Transmissor\Models\Comment;
14 11
 
15
-use Fabrica\Models\Code\Release;
16
-use Fabrica\Models\Code\Issue;
17 12
 use Fabrica\Models\Code\Field as FieldModel;
13
+use Fabrica\Models\Code\Issue;
18 14
 use Fabrica\Models\Code\Project as ProjectModel;
15
+use Fabrica\Models\Code\Release;
19 16
 
20
-use JiraRestApi\Project\ProjectService;
21
-use JiraRestApi\JiraException;
22 17
 use JiraRestApi\Field\Field;
18
+use JiraRestApi\Field\FieldService;
23 19
 use JiraRestApi\Issue\IssueService;
24 20
 use JiraRestApi\Issue\Version;
25
-use JiraRestApi\Field\FieldService;
21
+use JiraRestApi\JiraException;
22
+use JiraRestApi\Project\ProjectService;
26 23
 
27 24
 
28 25
 class Import extends Jira
Please login to merge, or discard this patch.
src/Connectors/Cloudflare/Import.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Integrations\Connectors\Cloudflare;
4 4
 
5
-use Log;
6
-use App\Models\User;
7
-
8 5
 class Import extends Cloudflare
9 6
 {
10 7
     public function zones()
Please login to merge, or discard this patch.