@@ -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( |
@@ -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 | { |
@@ -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'; |
@@ -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) |
@@ -2,13 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Services; |
| 4 | 4 | |
| 5 | -use Porteiro\Models\Role; |
|
| 6 | 5 | use App\Models\User; |
| 7 | 6 | use Illuminate\Contracts\Auth\Authenticatable; |
| 8 | 7 | use Illuminate\Database\Eloquent\Builder; |
| 9 | 8 | use Integrations\Exceptions\LdapException; |
| 10 | 9 | use Integrations\Models\Access; |
| 11 | 10 | use Integrations\Models\UserRepo; |
| 11 | +use Porteiro\Models\Role; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Class LdapService |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | /** |
| 54 | 54 | * Check if any operations are allowed for a Crud Panel. Return false if not. |
| 55 | 55 | * |
| 56 | - * @param array $operation_array |
|
| 56 | + * @param boolean $operation_array |
|
| 57 | 57 | * |
| 58 | 58 | * @return bool |
| 59 | 59 | */ |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * Check if all operations are allowed for a Crud Panel. Return false if not. |
| 73 | 73 | * |
| 74 | - * @param array $operation_array Permissions. |
|
| 74 | + * @param string $operation_array Permissions. |
|
| 75 | 75 | * |
| 76 | 76 | * @return bool |
| 77 | 77 | */ |
@@ -2,18 +2,13 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors; |
| 4 | 4 | |
| 5 | -use Illuminate\Database\Eloquent\Model; |
|
| 6 | 5 | use Log; |
| 7 | -use App\Models\User; |
|
| 8 | 6 | |
| 9 | -use Integrations\Models\Token; |
|
| 10 | -use Support\Components\Coders\Parser\ParseClass; |
|
| 11 | -use Muleta\Utils\Debugger\ErrorHelper; |
|
| 12 | -use Integrations\Models\Integration as IntegrationModel; |
|
| 13 | -use ReflectionGenerator; |
|
| 14 | 7 | use Exception; |
| 15 | -use Muleta\Utils\Extratores\ClasserExtractor; |
|
| 8 | +use Integrations\Models\Integration as IntegrationModel; |
|
| 16 | 9 | use Muleta\Contracts\Output\OutputableTrait; |
| 10 | +use Muleta\Utils\Debugger\ErrorHelper; |
|
| 11 | +use Muleta\Utils\Extratores\ClasserExtractor; |
|
| 17 | 12 | |
| 18 | 13 | class Connector |
| 19 | 14 | { |
@@ -71,6 +71,7 @@ |
||
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * Recupera dados em cima de um get de uma api |
| 74 | + * @param string $path |
|
| 74 | 75 | */ |
| 75 | 76 | public function get($path) |
| 76 | 77 | { |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors\Pipedrive; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | -use App\Models\User; |
|
| 7 | - |
|
| 8 | 5 | class Create extends Pipedrive |
| 9 | 6 | { |
| 10 | 7 | public function project(Project $project) |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors\Pipedrive; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | -use App\Models\User; |
|
| 7 | - |
|
| 8 | 5 | class Update extends Pipedrive |
| 9 | 6 | { |
| 10 | 7 | public function organization(Organization $organization) |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors\Pipedrive; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | -use App\Models\User; |
|
| 7 | - |
|
| 8 | 5 | class Create extends Pipedrive |
| 9 | 6 | { |
| 10 | 7 | public function project(Project $project) |