@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +use Faker\Generator as Faker; |
|
| 3 | 4 | use Transmissor\Models\Group; |
| 4 | 5 | use Transmissor\Models\User; |
| 5 | -use Faker\Generator as Faker; |
|
| 6 | 6 | |
| 7 | 7 | $factory->define(Transmissor\Models\Debt::class, function (Faker $faker) { |
| 8 | 8 | return [ |
@@ -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 Transmissor\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,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Transmissor\Console\Commands; |
| 4 | 4 | |
| 5 | -use Transmissor\Services\TransmissorService; |
|
| 6 | 5 | use Illuminate\Console\Command; |
| 6 | +use Transmissor\Services\TransmissorService; |
|
| 7 | 7 | |
| 8 | 8 | class SendRemindersCommand extends Command |
| 9 | 9 | { |
@@ -4,9 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | 6 | use Transmissor\Http\Controllers\Controller; |
| 7 | -use Transmissor\Services\NotificationService; |
|
| 8 | 7 | use Transmissor\Http\Requests\NotificationCreateRequest; |
| 9 | 8 | use Transmissor\Http\Requests\NotificationUpdateRequest; |
| 9 | +use Transmissor\Services\NotificationService; |
|
| 10 | 10 | |
| 11 | 11 | class NotificationController extends Controller |
| 12 | 12 | { |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * Store a newly created resource in storage. |
| 52 | 52 | * |
| 53 | - * @param \Illuminate\Http\NotificationCreateRequest $request |
|
| 54 | - * @return \Illuminate\Http\Response |
|
| 53 | + * @param NotificationCreateRequest $request |
|
| 54 | + * @return \Illuminate\Http\RedirectResponse |
|
| 55 | 55 | */ |
| 56 | 56 | public function store(NotificationCreateRequest $request) |
| 57 | 57 | { |
@@ -81,9 +81,9 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * Update the specified resource in storage. |
| 83 | 83 | * |
| 84 | - * @param \Illuminate\Http\NotificationUpdateRequest $request |
|
| 84 | + * @param NotificationUpdateRequest $request |
|
| 85 | 85 | * @param int $id |
| 86 | - * @return \Illuminate\Http\Response |
|
| 86 | + * @return \Illuminate\Http\RedirectResponse |
|
| 87 | 87 | */ |
| 88 | 88 | public function update(NotificationUpdateRequest $request, $id) |
| 89 | 89 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * Remove the specified resource from storage. |
| 101 | 101 | * |
| 102 | 102 | * @param int $id |
| 103 | - * @return \Illuminate\Http\Response |
|
| 103 | + * @return \Illuminate\Http\RedirectResponse |
|
| 104 | 104 | */ |
| 105 | 105 | public function destroy(Request $request, $id) |
| 106 | 106 | { |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Transmissor\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Transmissor\Conversations\RegisterGroupConversation; |
|
| 6 | 5 | use BotMan\BotMan\BotMan; |
| 6 | +use Transmissor\Conversations\RegisterGroupConversation; |
|
| 7 | 7 | |
| 8 | 8 | class GroupsController extends Controller |
| 9 | 9 | { |
@@ -39,7 +39,6 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * Display the specified resource. |
| 41 | 41 | * |
| 42 | - * @param int $id |
|
| 43 | 42 | * @return \Illuminate\Http\Response |
| 44 | 43 | */ |
| 45 | 44 | public function read($uuid) |
@@ -54,7 +53,7 @@ discard block |
||
| 54 | 53 | * Remove the specified resource from storage. |
| 55 | 54 | * |
| 56 | 55 | * @param int $id |
| 57 | - * @return \Illuminate\Http\Response |
|
| 56 | + * @return \Illuminate\Http\RedirectResponse |
|
| 58 | 57 | */ |
| 59 | 58 | public function delete($id) |
| 60 | 59 | { |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Transmissor\Http\Middleware; |
| 4 | 4 | |
| 5 | -use Transmissor\Models\User; |
|
| 6 | 5 | use BotMan\BotMan\BotMan; |
| 7 | 6 | use BotMan\BotMan\Interfaces\Middleware\Received; |
| 8 | 7 | use BotMan\BotMan\Messages\Incoming\IncomingMessage; |
| 9 | 8 | use Illuminate\Support\Facades\Hash; |
| 9 | +use Transmissor\Models\User; |
|
| 10 | 10 | use Transmissor\Services\UserService; |
| 11 | 11 | |
| 12 | 12 | class LoadUserMiddleware implements Received |
@@ -2,11 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Transmissor\Models; |
| 4 | 4 | |
| 5 | -use Illuminate\Database\Eloquent\Model as EloquentModel; |
|
| 6 | -use Illuminate\Database\Eloquent\Builder; |
|
| 7 | -use Illuminate\Support\Facades\Hash; |
|
| 8 | 5 | use App\Sitec\Business; |
| 9 | 6 | use Auth; |
| 7 | +use Illuminate\Database\Eloquent\Builder; |
|
| 8 | +use Illuminate\Database\Eloquent\Model as EloquentModel; |
|
| 10 | 9 | |
| 11 | 10 | class Model extends EloquentModel |
| 12 | 11 | { |
@@ -4,12 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Transmissor\Models; |
| 6 | 6 | |
| 7 | -use App\Contants\Tables; |
|
| 8 | -use Illuminate\Database\Eloquent\Collection; |
|
| 9 | 7 | use App\Models\Model; |
| 10 | - |
|
| 11 | -use Population\Manipule\Entities\NotificationEntity; |
|
| 12 | -use Population\Manipule\Builders\NotificationBuilder; |
|
| 8 | +use Illuminate\Database\Eloquent\Collection; |
|
| 13 | 9 | |
| 14 | 10 | /** |
| 15 | 11 | * Class Notification. |