@@ -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 | { |
@@ -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,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Telefonica\Services; |
4 | 4 | |
5 | +use Illuminate\Support\Facades\Config; |
|
5 | 6 | use Informate\Models\Refund; |
6 | 7 | use SierraTecnologia\Crypto\Services\Crypto; |
7 | -use Illuminate\Support\Facades\Config; |
|
8 | 8 | use Telefonica\Repositories\PersonRepository; |
9 | 9 | |
10 | 10 | class PersonService |
@@ -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,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 | /** |
@@ -225,6 +225,9 @@ |
||
225 | 225 | return $this; |
226 | 226 | } |
227 | 227 | |
228 | + /** |
|
229 | + * @param string $type |
|
230 | + */ |
|
228 | 231 | protected static function convertToTask($values, $type = null, $locale = null) |
229 | 232 | { |
230 | 233 | return collect($values)->map( |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Telefonica\Traits; |
4 | 4 | |
5 | -use InvalidArgumentException; |
|
6 | -use Illuminate\Database\Eloquent\Model; |
|
5 | +use Casa\Models\Calendar\Task; |
|
7 | 6 | use Illuminate\Database\Eloquent\Builder; |
8 | 7 | use Illuminate\Database\Eloquent\Collection; |
8 | +use Illuminate\Database\Eloquent\Model; |
|
9 | 9 | use Illuminate\Database\Eloquent\Relations\MorphToMany; |
10 | -use Casa\Models\Calendar\Task; |
|
10 | +use InvalidArgumentException; |
|
11 | 11 | |
12 | 12 | trait HasTask |
13 | 13 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Telefonica\Models\Digital; |
4 | 4 | |
5 | -use Support\Models\Base; |
|
6 | -use Muleta\Traits\Models\ComplexRelationamentTrait; |
|
7 | 5 | use Integrations\Models\Integration; |
6 | +use Muleta\Traits\Models\ComplexRelationamentTrait; |
|
7 | +use Support\Models\Base; |
|
8 | 8 | use Telefonica\Models\Actors\Business; |
9 | 9 | |
10 | 10 | class Account extends Base |
@@ -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,21 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Telefonica; |
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 | 9 | use Log; |
15 | 10 | use Muleta\Traits\Providers\ConsoleTools; |
16 | 11 | |
17 | -use Route; |
|
18 | - |
|
19 | -use Telefonica\Facades\Telefonica as TelefonicaFacade; |
|
20 | 12 | use Telefonica\Services\TelefonicaService; |
21 | 13 | |
22 | 14 | class TelefonicaProvider extends ServiceProvider |