Completed
Push — master ( e7dd5d...f635d3 )
by Renato
05:30
created
app/Observers/SprintObserver.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
  */
8 8
 namespace GitScrum\Observers;
9 9
 
10
-use GitScrum\Models\Sprint;
11
-use GitScrum\Models\ConfigStatus;
12
-use GitScrum\Classes\Helper;
13 10
 use Auth;
11
+use GitScrum\Classes\Helper;
12
+use GitScrum\Models\ConfigStatus;
13
+use GitScrum\Models\Sprint;
14 14
 
15 15
 class SprintObserver
16 16
 {
Please login to merge, or discard this patch.
app/Observers/StatusObserver.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\Observers;
9 9
 
10
-use GitScrum\Models\Status;
11 10
 use Auth;
11
+use GitScrum\Models\Status;
12 12
 
13 13
 class StatusObserver
14 14
 {
Please login to merge, or discard this patch.
app/Observers/UserStoryObserver.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\UserStory;
11
-use GitScrum\Classes\Helper;
12 10
 use Auth;
11
+use GitScrum\Classes\Helper;
12
+use GitScrum\Models\UserStory;
13 13
 
14 14
 class UserStoryObserver
15 15
 {
Please login to merge, or discard this patch.
routes/api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 |
14 14
 */
15 15
 
16
-Route::get('/user', function (Request $request) {
16
+Route::get('/user', function(Request $request) {
17 17
     return $request->user();
18 18
 })->middleware('auth:api');
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 | to using a Closure or controller method. Build something great!
11 11
 |
12 12
 */
13
-Route::get('/', function () {
13
+Route::get('/', function() {
14 14
     return redirect()->route('auth.login');
15 15
 })->name('home');
16 16
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 Route::get('/profile/{username}', 'UserController@show')->name('user.profile');
19 19
 
20 20
 Route::get('/logout', 'Auth\AuthController@logout')->name('auth.logout');
21
-Route::group(['prefix' => 'auth', 'middleware' => ['guest']], function () {
21
+Route::group(['prefix' => 'auth', 'middleware' => ['guest']], function() {
22 22
     Route::get('/register', 'Auth\AuthController@register')->name('auth.register');
23 23
     Route::get('/login', 'Auth\AuthController@login')->name('auth.login');
24 24
     Route::get('/dologin', 'Auth\AuthController@dologin')->name('auth.dologin');
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     Route::get('/github/callback', 'Auth\AuthController@handleProviderCallback');
27 27
 });
28 28
 
29
-Route::group(['prefix' => 'product-backlogs'], function () {
29
+Route::group(['prefix' => 'product-backlogs'], function() {
30 30
     Route::get('/list/{mode?}', 'ProductBacklogController@index')->name('product_backlogs.index');
31 31
     Route::get('/show/{slug}', 'ProductBacklogController@show')->name('product_backlogs.show');
32 32
     Route::get('/create', 'ProductBacklogController@create')->name('product_backlogs.create');
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     Route::post('/update/{slug}', 'ProductBacklogController@update')->name('product_backlogs.update');
36 36
 });
37 37
 
38
-Route::group(['prefix' => 'sprints', 'middleware' => ['sprint.expired', 'global.activities']], function () {
38
+Route::group(['prefix' => 'sprints', 'middleware' => ['sprint.expired', 'global.activities']], function() {
39 39
     Route::get('/planning/{slug}/issues', 'IssueController@index')->name('issues.index');
40 40
     Route::get('/list/{mode?}/{slug_product_backlog?}', 'SprintController@index')->name('sprints.index');
41 41
     Route::get('/show/{slug}', 'SprintController@show')->name('sprints.show');
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     Route::delete('/destroy', 'SprintController@destroy')->name('sprints.delete');
47 47
 });
48 48
 
49
-Route::group(['prefix' => 'user-stories'], function () {
49
+Route::group(['prefix' => 'user-stories'], function() {
50 50
     Route::get('/list/{mode?}/{slug_product_backlog?}', 'SprintController@index')->name('user_stories.index');
51 51
     Route::get('/show/{slug}', 'UserStoryController@show')->name('user_stories.show');
52 52
     Route::get('/create/{slug_product_backlog?}', 'UserStoryController@create')->name('user_stories.create');
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     Route::post('/update/{slug}', 'UserStoryController@update')->name('user_stories.update');
56 56
 });
57 57
 
58
-Route::group(['prefix' => 'issues', 'middleware' => ['issue']], function () {
58
+Route::group(['prefix' => 'issues', 'middleware' => ['issue']], function() {
59 59
     Route::get('/show/{slug}', 'IssueController@show')->name('issues.show');
60 60
     Route::get('/create/{slug_sprint?}/{slug_user_story?}', 'IssueController@create')->name('issues.create');
61 61
     Route::post('/store', 'IssueController@store')->name('issues.store');
@@ -65,47 +65,47 @@  discard block
 block discarded – undo
65 65
     Route::get('/status-update/{slug}/{status}', 'IssueController@statusUpdate')->name('issues.status.update');
66 66
 });
67 67
 
68
-Route::group(['prefix' => 'user-issue'], function () {
68
+Route::group(['prefix' => 'user-issue'], function() {
69 69
     Route::get('/list/{username}/{slug_type?}/{mode?}', 'UserIssueController@index')->name('user_issue.index');
70 70
     Route::post('/update/{slug}', 'UserIssueController@update')->name('user_issue.update');
71 71
 });
72 72
 
73
-Route::group(['prefix' => 'issue-types'], function () {
73
+Route::group(['prefix' => 'issue-types'], function() {
74 74
     Route::get('/sprint/{slug_sprint}/{slug_type?}', 'IssueTypeController@index')->name('issue_types.index');
75 75
 });
76 76
 
77
-Route::group(['prefix' => 'commits'], function () {
77
+Route::group(['prefix' => 'commits'], function() {
78 78
     Route::get('/show/{sha}', 'CommitController@show')->name('commits.show');
79 79
 });
80 80
 
81
-Route::group(['prefix' => 'notes'], function () {
81
+Route::group(['prefix' => 'notes'], function() {
82 82
     Route::get('/--------', 'NoteController@store')->name('notes.show');
83 83
     Route::post('/store', 'NoteController@store')->name('notes.store');
84 84
     Route::get('/update/{slug}', 'NoteController@update')->name('notes.update');
85 85
     Route::get('/destroy/{id}', 'NoteController@destroy')->name('notes.destroy');
86 86
 });
87 87
 
88
-Route::group(['prefix' => 'comments'], function () {
88
+Route::group(['prefix' => 'comments'], function() {
89 89
     Route::get('/--------', 'CommentController@store')->name('comments.show');
90 90
     Route::post('/store', 'CommentController@store')->name('comments.store');
91 91
     Route::get('/destroy/{id}', 'CommentController@destroy')->name('comments.destroy');
92 92
 });
93 93
 
94
-Route::group(['prefix' => 'labels'], function () {
94
+Route::group(['prefix' => 'labels'], function() {
95 95
     Route::get('/{model}/{slug_label?}', 'LabelController@index')->name('labels.index');
96 96
     Route::post('/store', 'LabelController@store')->name('labels.store');
97 97
 });
98 98
 
99
-Route::group(['prefix' => 'favorites'], function () {
99
+Route::group(['prefix' => 'favorites'], function() {
100 100
     Route::get('/store/{type}/{id}', 'FavoriteController@store')->name('favorites.store');
101 101
     Route::get('/destroy/{type}/{id}', 'FavoriteController@destroy')->name('favorites.destroy');
102 102
 });
103 103
 
104
-Route::group(['prefix' => 'attachments'], function () {
104
+Route::group(['prefix' => 'attachments'], function() {
105 105
     Route::get('/--------', 'AttachmentController@store')->name('attachments.show');
106 106
     Route::post('/store', 'AttachmentController@store')->name('attachments.store');
107 107
 });
108 108
 
109
-Route::group(['prefix' => 'teams'], function () {
109
+Route::group(['prefix' => 'teams'], function() {
110 110
     Route::get('/members', 'TeamController@index')->name('team.index');
111 111
 });
Please login to merge, or discard this patch.
routes/console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 |
14 14
 */
15 15
 
16
-Artisan::command('inspire', function () {
16
+Artisan::command('inspire', function() {
17 17
     $this->comment(Inspiring::quote());
18 18
 })->describe('Display an inspiring quote');
Please login to merge, or discard this patch.
database/factories/ModelFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-$factory->define(GitScrum\User::class, function (Faker\Generator $faker) {
14
+$factory->define(GitScrum\User::class, function(Faker\Generator $faker) {
15 15
     static $password;
16 16
 
17 17
     return [
Please login to merge, or discard this patch.
database/migrations/2016_11_21_160842_create_favorites_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
      */
11 11
     public function up()
12 12
     {
13
-        Schema::create('favorites', function (Blueprint $table) {
13
+        Schema::create('favorites', function(Blueprint $table) {
14 14
             $table->increments('id');
15 15
             $table->string('favoriteable_type', 45)->nullable();
16 16
             $table->integer('favoriteable_id')->unsigned()->nullable();
Please login to merge, or discard this patch.
migrations/2016_11_21_160844_add_foreign_keys_to_pull_requests_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
      */
11 11
     public function up()
12 12
     {
13
-        Schema::table('pull_requests', function (Blueprint $table) {
13
+        Schema::table('pull_requests', function(Blueprint $table) {
14 14
             $table->foreign('base_branch_id', 'fk_pull_requests_base_branch_id')->references('id')->on('branches')->onUpdate('NO ACTION')->onDelete('NO ACTION');
15 15
             $table->foreign('head_branch_id', 'fk_pull_requests_head_branch_id')->references('id')->on('branches')->onUpdate('NO ACTION')->onDelete('NO ACTION');
16 16
         });
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function down()
23 23
     {
24
-        Schema::table('pull_requests', function (Blueprint $table) {
24
+        Schema::table('pull_requests', function(Blueprint $table) {
25 25
             $table->dropForeign('fk_pull_requests_base_branch_id');
26 26
             $table->dropForeign('fk_pull_requests_head_branch_id');
27 27
         });
Please login to merge, or discard this patch.