Completed
Push — master ( 6554a3...90d2ed )
by Ricardo
06:26
created
src/Events/FieldChangeEvent.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Fabrica\Events;
4 4
 
5 5
 use Fabrica\Events\Event;
6
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
7 6
 use Illuminate\Queue\SerializesModels;
8 7
 
9 8
 class FieldChangeEvent extends Event
Please login to merge, or discard this patch.
src/Events/IssueEvent.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Fabrica\Events;
3 3
 
4 4
 use Fabrica\Events\Event;
5
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
6 5
 use Illuminate\Queue\SerializesModels;
7 6
 
8 7
 class IssueEvent extends Event
Please login to merge, or discard this patch.
src/Events/ModuleEvent.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Fabrica\Events;
3 3
 
4 4
 use Fabrica\Events\Event;
5
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
6 5
 use Illuminate\Queue\SerializesModels;
7 6
 
8 7
 class ModuleEvent extends Event
Please login to merge, or discard this patch.
src/Events/PriorityConfigChangeEvent.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Fabrica\Events;
4 4
 
5 5
 use Fabrica\Events\Event;
6
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
7 6
 use Illuminate\Queue\SerializesModels;
8 7
 
9 8
 class PriorityConfigChangeEvent extends Event
Please login to merge, or discard this patch.
src/Events/ResolutionConfigChangeEvent.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Fabrica\Events;
4 4
 
5 5
 use Fabrica\Events\Event;
6
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
7 6
 use Illuminate\Queue\SerializesModels;
8 7
 
9 8
 class ResolutionConfigChangeEvent extends Event
Please login to merge, or discard this patch.
src/Events/SprintEvent.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Fabrica\Events;
3 3
 
4 4
 use Fabrica\Events\Event;
5
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
6 5
 use Illuminate\Queue\SerializesModels;
7 6
 
8 7
 class SprintEvent extends Event
Please login to merge, or discard this patch.
src/Events/WikiEvent.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Fabrica\Events;
3 3
 
4 4
 use Fabrica\Events\Event;
5
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
6 5
 use Illuminate\Queue\SerializesModels;
7 6
 
8 7
 class WikiEvent extends Event
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * Create a new event instance.
19 19
      *
20
+     * @param string $project_key
20 21
      * @return void
21 22
      */
22 23
     public function __construct($project_key, $user, array $param=[])
Please login to merge, or discard this patch.
src/Events/VersionEvent.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Fabrica\Events;
3 3
 
4 4
 use Fabrica\Events\Event;
5
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
6 5
 use Illuminate\Queue\SerializesModels;
7 6
 
8 7
 class VersionEvent extends Event
Please login to merge, or discard this patch.
src/Listeners/ActivityAddListener.php 2 patches
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -2,23 +2,16 @@
 block discarded – undo
2 2
 namespace Fabrica\Listeners;
3 3
 
4 4
 use DB;
5
-use Fabrica\Events\DcoumentEvent;
6 5
 use Fabrica\Events\Event;
7 6
 use Fabrica\Events\FileDelEvent;
8 7
 use Fabrica\Events\FileUploadEvent;
9 8
 use Fabrica\Events\IssueEvent;
10
-use Fabrica\Events\ModuleEvent;
11 9
 use Fabrica\Events\SprintEvent;
12 10
 use Fabrica\Events\VersionEvent;
13 11
 use Fabrica\Events\WikiEvent;
14 12
 
15 13
 use Fabrica\Project\Eloquent\File;
16 14
 
17
-use Fabrica\Project\Provider;
18
-use Illuminate\Contracts\Queue\ShouldQueue;
19
-
20
-use Illuminate\Queue\InteractsWithQueue;
21
-
22 15
 class ActivityAddListener
23 16
 {
24 17
     /**
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * Handle the event.
35 35
      *
36
-     * @param  FileChangeEvent $event
36
+     * @param  Event $event
37 37
      * @return void
38 38
      */
39 39
     public function handle(Event $event)
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * @param  array  $user
66 66
      * @param  string $file_id
67 67
      * @param  string $event_key
68
-     * @return void
68
+     * @return string
69 69
      */
70 70
     public function addFileActivity(string $project_key, string $issue_id, $user, $file_id, $event_key)
71 71
     {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @param  string $project_key
86 86
      * @param  object $user
87 87
      * @param  array  $param
88
-     * @return void
88
+     * @return string
89 89
      */
90 90
     public function addProjectActivity($project_key, $user, array $param)
91 91
     {
@@ -98,10 +98,9 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @param  string $project_key
100 100
      * @param  string $issue_id
101
-     * @param  string $event_key
102 101
      * @param  object $user
103 102
      * @param  array  $param
104
-     * @return void
103
+     * @return string
105 104
      */
106 105
     public function addIssueActivity(string $project_key, string $issue_id, $user, array $param)
107 106
     {
Please login to merge, or discard this patch.