Completed
Push — master ( d38d2f...df865b )
by Ricardo
06:27
created
database/factories/DebtFactory.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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 [
Please login to merge, or discard this patch.
src/Cacheable/CacheableEloquent.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Console/Commands/SendRemindersCommand.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Http/Api/ChatController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Transmissor\Http\Api;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7 5
 class ChatController extends Controller
8 6
 {
9 7
     /**
Please login to merge, or discard this patch.
src/Http/Controllers/Admin/NotificationController.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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($id)
106 106
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Http/Controllers/GroupsController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Http/Controllers/MessagesController.php 1 patch
Unused Use Statements   +5 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,19 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace Transmissor\Http\Controllers;
4 4
 
5
-use App\Models\User;
6
-use Carbon\Carbon;
5
+use App\Http\Requests\MessageRequest;
6
+use App\Jobs\SendNotifyMail;
7 7
 use App\Models\Message;
8 8
 use App\Models\Participant;
9 9
 use App\Models\Thread;
10
-use Illuminate\Database\Eloquent\ModelNotFoundException;
11
-use Illuminate\Support\Facades\Auth;
12
-use Illuminate\Support\Facades\Input;
13
-use Illuminate\Support\Facades\Session;
14
-use Illuminate\Http\Request;
10
+use App\Models\User;
15 11
 use App\Phphub\Markdown\Markdown;
16
-use App\Jobs\SendNotifyMail;
17
-use App\Http\Requests\MessageRequest;
12
+use Carbon\Carbon;
13
+use Illuminate\Support\Facades\Auth;
18 14
 
19 15
 class MessagesController extends Controller
20 16
 {
Please login to merge, or discard this patch.
src/Http/Controllers/User/MessagesController.php 1 patch
Unused Use Statements   +5 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,20 +2,16 @@
 block discarded – undo
2 2
 
3 3
 namespace Transmissor\Http\Controllers\User;
4 4
 
5
+use App\Jobs\SendNotifyMail;
5 6
 use App\Models\User;
7
+use App\Phphub\Markdown\Markdown;
6 8
 use Carbon\Carbon;
7
-use Transmissor\Models\Messenger\Message;
8
-use Transmissor\Models\Messenger\Participant;
9
-use Transmissor\Models\Messenger\Thread;
10
-use Illuminate\Database\Eloquent\ModelNotFoundException;
11 9
 use Illuminate\Support\Facades\Auth;
12
-use Illuminate\Support\Facades\Input;
13
-use Illuminate\Support\Facades\Session;
14
-use Illuminate\Http\Request;
15
-use App\Phphub\Markdown\Markdown;
16
-use App\Jobs\SendNotifyMail;
17 10
 use Support\Http\Requests\MessageRequest;
18 11
 use Transmissor\Http\Controllers\User\Controller;
12
+use Transmissor\Models\Messenger\Message;
13
+use Transmissor\Models\Messenger\Participant;
14
+use Transmissor\Models\Messenger\Thread;
19 15
 
20 16
 class MessagesController extends Controller
21 17
 {
Please login to merge, or discard this patch.
src/Http/Controllers/User/NotificationController.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use Auth;
6 6
 use Illuminate\Http\Request;
7
-use Transmissor\Services\NotificationService;
8 7
 use Transmissor\Http\Controllers\User\Controller;
8
+use Transmissor\Services\NotificationService;
9 9
 
10 10
 class NotificationController extends Controller
11 11
 {
Please login to merge, or discard this patch.