Completed
Push — master ( 8c1b4a...207227 )
by Renato
17:33 queued 12:31
created
app/Models/User.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,14 +102,14 @@  discard block
 block discarded – undo
102 102
 
103 103
     public function labels($feature)
104 104
     {
105
-        return $this->{$feature}->map(function ($obj) {
105
+        return $this->{$feature}->map(function($obj) {
106 106
             return $obj->labels;
107 107
         })->flatten(1)->unique('id');
108 108
     }
109 109
 
110 110
     public function productBacklogs($product_backlog_id = null)
111 111
     {
112
-        return $this->organizations->map(function ($organization) use ($product_backlog_id) {
112
+        return $this->organizations->map(function($organization) use ($product_backlog_id) {
113 113
             $obj = $organization->productBacklog()
114 114
                 ->with('sprints')
115 115
                 ->with('favorite')
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
     public function team()
156 156
     {
157
-        return $this->organizations->map(function ($obj) {
157
+        return $this->organizations->map(function($obj) {
158 158
             return $obj->users;
159 159
         })->flatten(1)->unique('id');
160 160
         //->where('id', '!=', Auth::user()->id);
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
     public function activities()
164 164
     {
165
-        return $this->team()->map(function ($obj) {
165
+        return $this->team()->map(function($obj) {
166 166
             return $obj->statuses;
167 167
         })->flatten(1)->sortByDesc('id')->take(6);
168 168
     }
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,10 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 namespace GitScrum\Models;
9 9
 
10
-use Illuminate\Database\Eloquent\Model;
11
-use Illuminate\Foundation\Auth\User as Authenticatable;
12
-use GitScrum\Classes\Helper;
13 10
 use Carbon\Carbon;
11
+use GitScrum\Classes\Helper;
12
+use Illuminate\Foundation\Auth\User as Authenticatable;
14 13
 
15 14
 class User extends Authenticatable
16 15
 {
Please login to merge, or discard this patch.
app/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         /*
23 23
          * Authenticate the user's personal channel...
24 24
          */
25
-        Broadcast::channel('App.User.*', function ($user, $userId) {
25
+        Broadcast::channel('App.User.*', function($user, $userId) {
26 26
             return (int) $user->id === (int) $userId;
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         Route::group([
50 50
             'middleware' => 'web',
51 51
             'namespace' => $this->namespace,
52
-        ], function ($router) {
52
+        ], function($router) {
53 53
             require base_path('routes/web.php');
54 54
         });
55 55
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             'middleware' => 'api',
66 66
             'namespace' => $this->namespace,
67 67
             'prefix' => 'api',
68
-        ], function ($router) {
68
+        ], function($router) {
69 69
             require base_path('routes/api.php');
70 70
         });
71 71
     }
Please login to merge, or discard this patch.
app/Http/Controllers/ProductBacklogController.php 2 patches
Doc Comments   +2 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @param \Illuminate\Http\Request $request
54 54
      *
55
-     * @return \Illuminate\Http\Response
55
+     * @return \Illuminate\Http\RedirectResponse
56 56
      */
57 57
     public function store(Request $request)
58 58
     {
@@ -65,7 +65,6 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * Display the specified resource.
67 67
      *
68
-     * @param int $id
69 68
      *
70 69
      * @return \Illuminate\Http\Response
71 70
      */
@@ -82,7 +81,6 @@  discard block
 block discarded – undo
82 81
     /**
83 82
      * Show the form for editing the specified resource.
84 83
      *
85
-     * @param int $id
86 84
      *
87 85
      * @return \Illuminate\Http\Response
88 86
      */
@@ -105,9 +103,8 @@  discard block
 block discarded – undo
105 103
      * Update the specified resource in storage.
106 104
      *
107 105
      * @param \Illuminate\Http\Request $request
108
-     * @param int                      $id
109 106
      *
110
-     * @return \Illuminate\Http\Response
107
+     * @return \Illuminate\Http\RedirectResponse
111 108
      */
112 109
     public function update(Request $request, $slug)
113 110
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
  */
8 8
 namespace GitScrum\Http\Controllers;
9 9
 
10
-use Illuminate\Http\Request;
10
+use Auth;
11 11
 use GitScrum\Classes\Github;
12 12
 use GitScrum\Models\User;
13
-use Auth;
13
+use Illuminate\Http\Request;
14 14
 
15 15
 class UserController extends Controller
16 16
 {
Please login to merge, or discard this patch.
app/Classes/Github.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@
 block discarded – undo
3 3
 namespace GitScrum\Classes;
4 4
 
5 5
 use Auth;
6
-use GitScrum\Repository;
6
+use Carbon\Carbon;
7 7
 use GitScrum\Branch;
8 8
 use GitScrum\Commit;
9
-use GitScrum\Models\User;
10 9
 use GitScrum\Models\Organization;
11 10
 use GitScrum\Models\ProductBacklog;
12
-use Carbon\Carbon;
11
+use GitScrum\Models\User;
12
+use GitScrum\Repository;
13 13
 
14 14
 class Github
15 15
 {
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthController.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,13 +7,12 @@
 block discarded – undo
7 7
  */
8 8
 namespace GitScrum\Http\Controllers\Auth;
9 9
 
10
-use GitScrum\Http\Requests\AuthRequest;
11
-use GitScrum\Models\User;
10
+use Auth;
11
+use Carbon\Carbon;
12 12
 use GitScrum\Classes\UserClass;
13 13
 use GitScrum\Http\Controllers\Controller;
14
-use Carbon\Carbon;
14
+use GitScrum\Http\Requests\AuthRequest;
15 15
 use Socialite;
16
-use Auth;
17 16
 
18 17
 class AuthController extends Controller
19 18
 {
Please login to merge, or discard this patch.
app/Http/Controllers/NoteController.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
  */
8 8
 namespace GitScrum\Http\Controllers;
9 9
 
10
-use Illuminate\Http\Request;
10
+use Auth;
11
+use Carbon\Carbon;
11 12
 use GitScrum\Http\Requests\NoteRequest;
12 13
 use GitScrum\Models\Note;
13
-use Carbon\Carbon;
14
-use Auth;
14
+use Illuminate\Http\Request;
15 15
 
16 16
 class NoteController extends Controller
17 17
 {
Please login to merge, or discard this patch.
app/Http/Requests/IssueRequest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
  */
8 8
 namespace GitScrum\Http\Requests;
9 9
 
10
-use Illuminate\Foundation\Http\FormRequest;
11 10
 use GitScrum\Models\Sprint;
11
+use Illuminate\Foundation\Http\FormRequest;
12 12
 
13 13
 class IssueRequest extends FormRequest
14 14
 {
Please login to merge, or discard this patch.
app/Observers/AttachmentObserver.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 namespace GitScrum\Observers;
9 9
 
10
-use GitScrum\Models\Status;
11
-use GitScrum\Models\Attachment;
12 10
 use Auth;
11
+use GitScrum\Models\Attachment;
12
+use GitScrum\Models\Status;
13 13
 
14 14
 class AttachmentObserver
15 15
 {
Please login to merge, or discard this patch.