Completed
Push — master ( e7dd5d...c2209b )
by Renato
07:25 queued 02:51
created
app/Models/Commit.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     public function totalLines()
76 76
     {
77
-        $lines = $this->files->map(function ($file) {
77
+        $lines = $this->files->map(function($file) {
78 78
             return count(preg_split('/\R/', $file->raw));
79 79
         });
80 80
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
     public function totalAdditions()
85 85
     {
86
-        $additions = $this->files->map(function ($file) {
86
+        $additions = $this->files->map(function($file) {
87 87
             return $file->additions;
88 88
         });
89 89
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     public function totalChanges()
94 94
     {
95
-        $changes = $this->files->map(function ($file) {
95
+        $changes = $this->files->map(function($file) {
96 96
             return $file->changes;
97 97
         });
98 98
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
     public function totalDeletions()
103 103
     {
104
-        $deletions = $this->files->map(function ($file) {
104
+        $deletions = $this->files->map(function($file) {
105 105
             return $file->deletions;
106 106
         });
107 107
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
     public function totalPHPCS($type = 'ERROR')
112 112
     {
113
-        $errors = $this->files->map(function ($file) use ($type) {
113
+        $errors = $this->files->map(function($file) use ($type) {
114 114
             return $file->filePhpcs()->where('type', '=', $type)->groupBy('type')->count();
115 115
         });
116 116
 
Please login to merge, or discard this patch.
app/Models/UserStory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
     public function activities()
94 94
     {
95 95
         $activities = $this->issues()
96
-            ->with('statuses')->get()->map(function ($issue) {
96
+            ->with('statuses')->get()->map(function($issue) {
97 97
                 return $issue->statuses;
98
-            })->flatten(1)->map(function ($statuses) {
98
+            })->flatten(1)->map(function($statuses) {
99 99
                 return $statuses;
100 100
             })->sortByDesc('created_at');
101 101
 
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
 
107 107
     public function issuesHasUsers($total = 3)
108 108
     {
109
-        $users = $this->issues->map(function ($issue) {
109
+        $users = $this->issues->map(function($issue) {
110 110
             return $issue->users;
111
-        })->reject(function ($value) {
111
+        })->reject(function($value) {
112 112
             return $value == null;
113 113
         })->flatten(1)->unique('id')->splice(0, $total);
114 114
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
     public function issueStatus()
119 119
     {
120
-        $status = $this->issues->map(function ($issue) {
120
+        $status = $this->issues->map(function($issue) {
121 121
             return $issue->status;
122 122
         })->groupBy('slug')->all();
123 123
 
Please login to merge, or discard this patch.
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   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  */
8 8
 namespace GitScrum\Models;
9 9
 
10
-use Illuminate\Database\Eloquent\Model;
11 10
 use Illuminate\Foundation\Auth\User as Authenticatable;
12 11
 use GitScrum\Classes\Helper;
13 12
 use Carbon\Carbon;
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 1 patch
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.