| @@ -13,7 +13,7 @@ discard block | ||
| 13 | 13 | /** | 
| 14 | 14 | * Register an updated model event with the dispatcher. | 
| 15 | 15 | * | 
| 16 | - * @param \Closure|string $callback | |
| 16 | + * @param Closure $callback | |
| 17 | 17 | * | 
| 18 | 18 | * @return void | 
| 19 | 19 | */ | 
| @@ -22,7 +22,7 @@ discard block | ||
| 22 | 22 | /** | 
| 23 | 23 | * Register a created model event with the dispatcher. | 
| 24 | 24 | * | 
| 25 | - * @param \Closure|string $callback | |
| 25 | + * @param Closure $callback | |
| 26 | 26 | * | 
| 27 | 27 | * @return void | 
| 28 | 28 | */ | 
| @@ -31,7 +31,7 @@ discard block | ||
| 31 | 31 | /** | 
| 32 | 32 | * Register a deleted model event with the dispatcher. | 
| 33 | 33 | * | 
| 34 | - * @param \Closure|string $callback | |
| 34 | + * @param Closure $callback | |
| 35 | 35 | * | 
| 36 | 36 | * @return void | 
| 37 | 37 | */ | 
| @@ -5,8 +5,8 @@ | ||
| 5 | 5 | namespace Integrations\Cacheable; | 
| 6 | 6 | |
| 7 | 7 | use Closure; | 
| 8 | -use Illuminate\Database\Eloquent\Model; | |
| 9 | 8 | use Illuminate\Database\Eloquent\Builder; | 
| 9 | +use Illuminate\Database\Eloquent\Model; | |
| 10 | 10 | |
| 11 | 11 | trait CacheableEloquent | 
| 12 | 12 |  { | 
| @@ -2,11 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors\Cloudflare; | 
| 4 | 4 | |
| 5 | -use Log; | |
| 6 | -use App\Models\User; | |
| 7 | -use Cloudflare\Zone\Pagerules; | |
| 8 | -use Cloudflare\Zone\Dns; | |
| 9 | - | |
| 10 | 5 | class Create extends Cloudflare | 
| 11 | 6 |  { | 
| 12 | 7 | public function newDnsZone(Project $project) | 
| @@ -57,6 +57,9 @@ discard block | ||
| 57 | 57 | return $this; | 
| 58 | 58 | } | 
| 59 | 59 | |
| 60 | + /** | |
| 61 | + * @param string $errorMessage | |
| 62 | + */ | |
| 60 | 63 | public function setError($errorMessage, $code = 0) | 
| 61 | 64 |      { | 
| 62 | 65 | $this->error = $errorMessage; | 
| @@ -79,6 +82,7 @@ discard block | ||
| 79 | 82 | |
| 80 | 83 | /** | 
| 81 | 84 | * Recupera dados em cima de um get de uma api | 
| 85 | + * @param string $path | |
| 82 | 86 | */ | 
| 83 | 87 | public function get($path) | 
| 84 | 88 |      { | 
| @@ -2,26 +2,11 @@ | ||
| 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 | - | |
| 9 | -use Integrations\Models\Token; | |
| 10 | - | |
| 11 | -use Integrations\Connectors\Github\Github; | |
| 12 | -use Integrations\Connectors\Amazon\Amazon; | |
| 13 | -use Integrations\Connectors\Gitlab\Gitlab; | |
| 14 | -use Integrations\Connectors\Jira\Jira; | |
| 15 | -use Integrations\Connectors\Novare\Novare; | |
| 16 | -use Integrations\Connectors\Pipedrive\Pipedrive; | |
| 17 | -use Integrations\Connectors\Sentry\Sentry; | |
| 18 | -use Integrations\Connectors\Testlink\Testlink; | |
| 19 | -use Integrations\Connectors\Zoho\Zoho; | |
| 20 | -use Support\Components\Coders\Parser\ParseClass; | |
| 21 | -use Muleta\Utils\Debugger\ErrorHelper; | |
| 22 | -use Integrations\Models\Integration as IntegrationModel; | |
| 23 | -use ReflectionGenerator; | |
| 6 | + | |
| 24 | 7 | use Exception; | 
| 8 | +use Integrations\Models\Integration as IntegrationModel; | |
| 9 | +use Muleta\Utils\Debugger\ErrorHelper; | |
| 25 | 10 | use Muleta\Utils\Extratores\ClasserExtractor; | 
| 26 | 11 | use Support\Contracts\Output\OutputableTrait; | 
| 27 | 12 | |
| @@ -2,9 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors\Dropbox; | 
| 4 | 4 | |
| 5 | -use Log; | |
| 6 | -use App\Models\User; | |
| 7 | - | |
| 8 | 5 | class Post extends Dropbox | 
| 9 | 6 |  { | 
| 10 | 7 | |
| @@ -2,9 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors\Dropbox; | 
| 4 | 4 | |
| 5 | -use Log; | |
| 6 | -use App\Models\User; | |
| 7 | - | |
| 8 | 5 | class Relation extends Dropbox | 
| 9 | 6 |  { | 
| 10 | 7 | |
| @@ -2,9 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors\Gitlab; | 
| 4 | 4 | |
| 5 | -use Illuminate\Database\Eloquent\Model; | |
| 6 | -use Log; | |
| 7 | -use App\Models\User; | |
| 8 | 5 | use Integrations\Connectors\Connector; | 
| 9 | 6 | |
| 10 | 7 | class Gitlab extends Connector | 
| @@ -2,9 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors\Googledrive; | 
| 4 | 4 | |
| 5 | -use Log; | |
| 6 | -use App\Models\User; | |
| 7 | - | |
| 8 | 5 | class Post extends Googledrive | 
| 9 | 6 |  { | 
| 10 | 7 | |
| @@ -2,9 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors\Googledrive; | 
| 4 | 4 | |
| 5 | -use Log; | |
| 6 | -use App\Models\User; | |
| 7 | - | |
| 8 | 5 | class Relation extends Googledrive | 
| 9 | 6 |  { | 
| 10 | 7 | |
| @@ -2,9 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Integrations\Connectors\Instagram; | 
| 4 | 4 | |
| 5 | -use Log; | |
| 6 | -use App\Models\User; | |
| 7 | - | |
| 8 | 5 | class Post extends Instagram | 
| 9 | 6 |  { | 
| 10 | 7 | |