@@ -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 Telefonica\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 | { |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | /** |
| 172 | 172 | * Get the services provided by the provider. |
| 173 | 173 | * |
| 174 | - * @return array |
|
| 174 | + * @return string[] |
|
| 175 | 175 | */ |
| 176 | 176 | public function provides() |
| 177 | 177 | { |
@@ -2,23 +2,16 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Telefonica; |
| 4 | 4 | |
| 5 | -use Illuminate\Foundation\AliasLoader; |
|
| 5 | +use Illuminate\Support\Facades\View; |
|
| 6 | 6 | use Illuminate\Support\ServiceProvider; |
| 7 | 7 | use Telefonica\Services\TelefonicaService; |
| 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 Support\Traits\Providers\ConsoleTools; |
| 18 | 14 | |
| 19 | -use Telefonica\Facades\Telefonica as TelefonicaFacade; |
|
| 20 | -use Illuminate\Contracts\Events\Dispatcher; |
|
| 21 | - |
|
| 22 | 15 | |
| 23 | 16 | class TelefonicaProvider extends ServiceProvider |
| 24 | 17 | { |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Telefonica\Models\Digital; |
| 4 | 4 | |
| 5 | +use Integrations\Models\Integration; |
|
| 5 | 6 | use Support\Models\Base; |
| 6 | 7 | use Support\Traits\Models\ComplexRelationamentTrait; |
| 7 | -use Integrations\Models\Integration; |
|
| 8 | 8 | use Telefonica\Models\Actors\Business; |
| 9 | 9 | |
| 10 | 10 | class Account extends Base |
@@ -97,7 +97,6 @@ |
||
| 97 | 97 | /** |
| 98 | 98 | * Cancel an order. |
| 99 | 99 | * |
| 100 | - * @param int $id |
|
| 101 | 100 | * |
| 102 | 101 | * @return Persons |
| 103 | 102 | */ |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Population\Services; |
| 4 | 4 | |
| 5 | -use Informate\Models\Refund; |
|
| 6 | -use SierraTecnologia\Crypto\Services\Crypto; |
|
| 7 | 5 | use Illuminate\Support\Facades\Config; |
| 6 | +use Informate\Models\Refund; |
|
| 8 | 7 | use Population\Repositories\PersonRepository; |
| 8 | +use SierraTecnologia\Crypto\Services\Crypto; |
|
| 9 | 9 | |
| 10 | 10 | class PersonService |
| 11 | 11 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Telefonica\Traits; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | - |
|
| 7 | 5 | trait AsFofocavel |
| 8 | 6 | { |
| 9 | 7 | |
@@ -2,22 +2,21 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Telefonica\Traits; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | 5 | // Podem Seguir |
| 6 | +use Overtrue\LaravelFollow\Traits\CanBookmark; |
|
| 7 | +use Overtrue\LaravelFollow\Traits\CanFavorite; |
|
| 7 | 8 | use Overtrue\LaravelFollow\Traits\CanFollow; |
| 8 | 9 | use Overtrue\LaravelFollow\Traits\CanLike; |
| 9 | -use Overtrue\LaravelFollow\Traits\CanFavorite; |
|
| 10 | 10 | use Overtrue\LaravelFollow\Traits\CanSubscribe; |
| 11 | 11 | use Overtrue\LaravelFollow\Traits\CanVote; |
| 12 | -use Overtrue\LaravelFollow\Traits\CanBookmark; |
|
| 13 | 12 | // Podem Serem Seguidos |
| 14 | 13 | use Overtrue\LaravelFollow\Traits\CanBeFollowed; |
| 15 | 14 | |
| 15 | +use Stalker\Traits\HasPhoto; |
|
| 16 | 16 | use Support\Traits\Models\HasPersonality; |
| 17 | -use Telefonica\Traits\MakeEconomicActions; |
|
| 18 | -use Telefonica\Traits\HasTask; |
|
| 19 | 17 | use Telefonica\Traits\HasRoutine; |
| 20 | -use Stalker\Traits\HasPhoto; |
|
| 18 | +use Telefonica\Traits\HasTask; |
|
| 19 | +use Telefonica\Traits\MakeEconomicActions; |
|
| 21 | 20 | |
| 22 | 21 | trait AsOrganization |
| 23 | 22 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Telefonica\Traits; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | - |
|
| 7 | 5 | |
| 8 | 6 | trait HasContacts |
| 9 | 7 | { |
@@ -218,6 +218,9 @@ |
||
| 218 | 218 | return $this; |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | + /** |
|
| 222 | + * @param string $type |
|
| 223 | + */ |
|
| 221 | 224 | protected static function convertToRoutine($values, $type = null, $locale = null) |
| 222 | 225 | { |
| 223 | 226 | return collect($values)->map( |
@@ -5,12 +5,12 @@ |
||
| 5 | 5 | */ |
| 6 | 6 | namespace Telefonica\Traits; |
| 7 | 7 | |
| 8 | -use InvalidArgumentException; |
|
| 9 | -use Illuminate\Database\Eloquent\Model; |
|
| 8 | +use Casa\Models\Economic\Routine; |
|
| 10 | 9 | use Illuminate\Database\Eloquent\Builder; |
| 11 | 10 | use Illuminate\Database\Eloquent\Collection; |
| 11 | +use Illuminate\Database\Eloquent\Model; |
|
| 12 | 12 | use Illuminate\Database\Eloquent\Relations\MorphToMany; |
| 13 | -use Casa\Models\Economic\Routine; |
|
| 13 | +use InvalidArgumentException; |
|
| 14 | 14 | |
| 15 | 15 | trait HasRoutine |
| 16 | 16 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Telefonica\Traits; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | - |
|
| 7 | 5 | trait HasServicesAndAccounts |
| 8 | 6 | { |
| 9 | 7 | /** |