Completed
Push — master ( 8c1b4a...207227 )
by Renato
17:33 queued 12:31
created
app/Classes/Phpcs.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@  discard block
 block discarded – undo
22 22
         $this->convertToLines($result);
23 23
     }
24 24
 
25
+    /**
26
+     * @param string $result
27
+     */
25 28
     private function addSuggestionFix($result)
26 29
     {
27 30
         $arr = explode('<br />', nl2br($result));
@@ -47,6 +50,9 @@  discard block
 block discarded – undo
47 50
         }
48 51
     }
49 52
 
53
+    /**
54
+     * @param string $result
55
+     */
50 56
     private function convertToLines($result)
51 57
     {
52 58
         $arr = explode('<br />', nl2br($result));
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace GitScrum\Classes;
4 4
 
5
-use Storage;
6 5
 use GitScrum\CommitFile;
7 6
 use GitScrum\CommitFilePhpcs;
7
+use Storage;
8 8
 
9 9
 class Phpcs
10 10
 {
Please login to merge, or discard this patch.
app/Http/Controllers/IssueController.php 2 patches
Doc Comments   +3 added lines, -7 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @param \Illuminate\Http\Request $request
97 97
      *
98
-     * @return \Illuminate\Http\Response
98
+     * @return \Illuminate\Http\RedirectResponse
99 99
      */
100 100
     public function store(IssueRequest $request)
101 101
     {
@@ -112,7 +112,6 @@  discard block
 block discarded – undo
112 112
     /**
113 113
      * Display the specified resource.
114 114
      *
115
-     * @param int $id
116 115
      *
117 116
      * @return \Illuminate\Http\Response
118 117
      */
@@ -141,7 +140,6 @@  discard block
 block discarded – undo
141 140
     /**
142 141
      * Show the form for editing the specified resource.
143 142
      *
144
-     * @param int $id
145 143
      *
146 144
      * @return \Illuminate\Http\Response
147 145
      */
@@ -173,9 +171,8 @@  discard block
 block discarded – undo
173 171
      * Update the specified resource in storage.
174 172
      *
175 173
      * @param \Illuminate\Http\Request $request
176
-     * @param int                      $id
177 174
      *
178
-     * @return \Illuminate\Http\Response
175
+     * @return \Illuminate\Http\RedirectResponse
179 176
      */
180 177
     public function update(IssueRequest $request, $slug)
181 178
     {
@@ -212,9 +209,8 @@  discard block
 block discarded – undo
212 209
     /**
213 210
      * Remove the specified resource from storage.
214 211
      *
215
-     * @param int $id
216 212
      *
217
-     * @return \Illuminate\Http\Response
213
+     * @return \Illuminate\Http\RedirectResponse
218 214
      */
219 215
     public function destroy($slug)
220 216
     {
Please login to merge, or discard this patch.
Unused Use Statements   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@
 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\IssueRequest;
12
-use GitScrum\Models\Sprint;
13
-use GitScrum\Models\UserStory;
14
-use GitScrum\Models\Issue;
13
+use GitScrum\Models\ConfigIssueEffort;
15 14
 use GitScrum\Models\ConfigStatus;
16
-use GitScrum\Models\Organization;
15
+use GitScrum\Models\Issue;
17 16
 use GitScrum\Models\IssueType;
18
-use GitScrum\Models\ConfigIssueEffort;
19
-use Carbon\Carbon;
20
-use Auth;
17
+use GitScrum\Models\Organization;
18
+use GitScrum\Models\Sprint;
19
+use GitScrum\Models\UserStory;
20
+use Illuminate\Http\Request;
21 21
 
22 22
 class IssueController extends Controller
23 23
 {
Please login to merge, or discard this patch.
app/Http/Controllers/SprintController.php 2 patches
Doc Comments   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Store a newly created resource in storage.
64 64
      *
65
-     * @param GitScrum\Http\Requests\SprintRequest $request
65
+     * @param SprintRequest $request
66 66
      *
67
-     * @return \Illuminate\Http\Response
67
+     * @return \Illuminate\Http\RedirectResponse
68 68
      */
69 69
     public function store(SprintRequest $request)
70 70
     {
@@ -111,7 +111,6 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * Show the form for editing the specified resource.
113 113
      *
114
-     * @param int $id
115 114
      *
116 115
      * @return \Illuminate\Http\Response
117 116
      */
@@ -128,9 +127,8 @@  discard block
 block discarded – undo
128 127
      * Update the specified resource in storage.
129 128
      *
130 129
      * @param \Illuminate\Http\Request $request
131
-     * @param int                      $id
132 130
      *
133
-     * @return \Illuminate\Http\Response
131
+     * @return \Illuminate\Http\RedirectResponse
134 132
      */
135 133
     public function update(SprintRequest $request, $slug)
136 134
     {
@@ -144,9 +142,8 @@  discard block
 block discarded – undo
144 142
     /**
145 143
      * Remove the specified resource from storage.
146 144
      *
147
-     * @param int $id
148 145
      *
149
-     * @return \Illuminate\Http\Response
146
+     * @return \Illuminate\Http\RedirectResponse
150 147
      */
151 148
     public function destroy(Request $request)
152 149
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 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 Auth;
10 11
 use GitScrum\Http\Requests\SprintRequest;
11 12
 use GitScrum\Models\ProductBacklog;
12 13
 use GitScrum\Models\Sprint;
13
-use Auth;
14 14
 use Illuminate\Http\Request;
15 15
 
16 16
 class SprintController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,6 @@
 block discarded – undo
70 70
     /**
71 71
      * Display the specified resource.
72 72
      *
73
-     * @param int $id
74 73
      *
75 74
      * @return \Illuminate\Http\Response
76 75
      */
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/Http/Controllers/UserIssueController.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,9 +87,8 @@
 block discarded – undo
87 87
      * Update the specified resource in storage.
88 88
      *
89 89
      * @param \Illuminate\Http\Request $request
90
-     * @param int                      $id
91 90
      *
92
-     * @return \Illuminate\Http\Response
91
+     * @return \Illuminate\Http\RedirectResponse|null
93 92
      */
94 93
     public function update(Request $request, $slug)
95 94
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 namespace GitScrum\Http\Controllers;
9 9
 
10
-use Illuminate\Http\Request;
11 10
 use GitScrum\Models\Issue;
12 11
 use GitScrum\Models\User;
12
+use Illuminate\Http\Request;
13 13
 
14 14
 class UserIssueController extends Controller
15 15
 {
Please login to merge, or discard this patch.
app/Http/Controllers/UserStoryController.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   +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;
11
-use GitScrum\Models\UserStory;
10
+use Auth;
12 11
 use GitScrum\Models\ConfigPriority;
13 12
 use GitScrum\Models\ProductBacklog;
14
-use Auth;
13
+use GitScrum\Models\UserStory;
14
+use Illuminate\Http\Request;
15 15
 
16 16
 class UserStoryController extends Controller
17 17
 {
Please login to merge, or discard this patch.
app/Models/Status.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -74,6 +74,9 @@
 block discarded – undo
74 74
         return Carbon::createFromFormat('Y-m-d H:i:s', $this->attributes['created_at'])->diffForHumans();
75 75
     }
76 76
 
77
+    /**
78
+     * @param string $alias
79
+     */
77 80
     public function track($alias, $model)
78 81
     {
79 82
         if (!isset($model->config_status_id)) {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 namespace GitScrum\Models;
9 9
 
10
+use Carbon\Carbon;
10 11
 use Illuminate\Database\Eloquent\Model;
11 12
 use Illuminate\Database\Eloquent\SoftDeletes;
12
-use Carbon\Carbon;
13 13
 
14 14
 class Status extends Model
15 15
 {
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.