Completed
Push — master ( 1a5a62...492dd2 )
by Joao
12:42 queued 09:26
created
src/Models/Logs.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         if ($value > 0)
39 39
             if ($user = Sentinel::findUserById($value))
40 40
                 if ($user != null)
41
-                    return $user->first_name . ' ' . $user->last_name . ' (ID: ' . $user->id . ')';
41
+                    return $user->first_name.' '.$user->last_name.' (ID: '.$user->id.')';
42 42
 
43 43
         return $value;
44 44
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         if ($value > 0)
55 55
             if ($user = Sentinel::findUserById($value))
56 56
                 if ($user != null)
57
-                    return $user->first_name . ' ' . $user->last_name . ' (ID: ' . $user->id . ')';
57
+                    return $user->first_name.' '.$user->last_name.' (ID: '.$user->id.')';
58 58
 
59 59
         return $value;
60 60
     }
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,10 +35,11 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function getCreatedByAttribute($value)
37 37
     {
38
-        if ($value > 0)
39
-            if ($user = Sentinel::findUserById($value))
38
+        if ($value > 0) {
39
+                    if ($user = Sentinel::findUserById($value))
40 40
                 if ($user != null)
41 41
                     return $user->first_name . ' ' . $user->last_name . ' (ID: ' . $user->id . ')';
42
+        }
42 43
 
43 44
         return $value;
44 45
     }
@@ -51,10 +52,11 @@  discard block
 block discarded – undo
51 52
      */
52 53
     public function getTargetAttribute($value)
53 54
     {
54
-        if ($value > 0)
55
-            if ($user = Sentinel::findUserById($value))
55
+        if ($value > 0) {
56
+                    if ($user = Sentinel::findUserById($value))
56 57
                 if ($user != null)
57 58
                     return $user->first_name . ' ' . $user->last_name . ' (ID: ' . $user->id . ')';
59
+        }
58 60
 
59 61
         return $value;
60 62
     }
Please login to merge, or discard this patch.
src/Models/Settings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
         $str = explode("* ", $this->description);
29 29
         $choices = array();
30 30
 
31
-        foreach($str as $st)
31
+        foreach ($str as $st)
32 32
         {
33 33
             preg_match('/(?P<digit>\d+) - (?P<name>\w+)/', $st, $matches);
34 34
             if (sizeof($matches) > 0) {
35
-                $st = str_replace("*/","",$st);
36
-                $st = str_replace("/*","",$st);
37
-                $choices[$matches[1]] = explode($matches[1] . ' - ', $st)[1];
35
+                $st = str_replace("*/", "", $st);
36
+                $st = str_replace("/*", "", $st);
37
+                $choices[$matches[1]] = explode($matches[1].' - ', $st)[1];
38 38
             }
39 39
         }
40 40
 
Please login to merge, or discard this patch.
src/baseServiceProvider.php 2 patches
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,8 +71,9 @@  discard block
 block discarded – undo
71 71
         ], 'routes');
72 72
 
73 73
         // Include the routes file
74
-        if(file_exists(base_path("app/Http/base_routes.php")))
75
-            include base_path("app/Http/base_routes.php");
74
+        if(file_exists(base_path("app/Http/base_routes.php"))) {
75
+                    include base_path("app/Http/base_routes.php");
76
+        }
76 77
     }
77 78
 
78 79
     /**
@@ -88,8 +89,9 @@  discard block
 block discarded – undo
88 89
             $users = array_get($config, 'models.User');
89 90
             $model = array_get($config, 'models.Group');
90 91
 
91
-            if (class_exists($model) && method_exists($model, 'setUsersModel'))
92
-                forward_static_call_array([$model, 'setUsersModel'], [$users]);
92
+            if (class_exists($model) && method_exists($model, 'setUsersModel')) {
93
+                            forward_static_call_array([$model, 'setUsersModel'], [$users]);
94
+            }
93 95
 
94 96
             return new UserRepository($users);
95 97
         });
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -49,41 +49,41 @@  discard block
 block discarded – undo
49 49
     {
50 50
         // Publish our views
51 51
         $this->publishes([
52
-            __DIR__ .  '/views' => base_path("resources/views")
52
+            __DIR__.'/views' => base_path("resources/views")
53 53
         ]);
54 54
 
55 55
         // Publish our lang
56 56
         $this->publishes([
57
-            __DIR__ .  '/lang' => base_path("resources/lang")
57
+            __DIR__.'/lang' => base_path("resources/lang")
58 58
         ]);
59 59
 
60 60
         // Publish our public
61 61
         $this->publishes([
62
-            __DIR__ .  '/public' => base_path("public")
62
+            __DIR__.'/public' => base_path("public")
63 63
         ]);
64 64
 
65 65
         // Publish our migrations
66 66
         $this->publishes([
67
-            __DIR__ .  '/migrations' => base_path("database/migrations")
67
+            __DIR__.'/migrations' => base_path("database/migrations")
68 68
         ], 'migrations');
69 69
 
70 70
         // Publish our migrations
71 71
         $this->publishes([
72
-            __DIR__ .  '/seeds' => base_path("database/seeds")
72
+            __DIR__.'/seeds' => base_path("database/seeds")
73 73
         ], 'seeds');
74 74
 
75 75
         // Publish a config file
76 76
         $this->publishes([
77
-            __DIR__ . '/config' => base_path('/config')
77
+            __DIR__.'/config' => base_path('/config')
78 78
         ], 'config');
79 79
 
80 80
         // Publish our routes
81 81
         $this->publishes([
82
-            __DIR__ .  '/routes.php' => base_path("app/Http/base_routes.php")
82
+            __DIR__.'/routes.php' => base_path("app/Http/base_routes.php")
83 83
         ], 'routes');
84 84
 
85 85
         // Include the routes file
86
-        if(file_exists(base_path("app/Http/base_routes.php")))
86
+        if (file_exists(base_path("app/Http/base_routes.php")))
87 87
             include base_path("app/Http/base_routes.php");
88 88
     }
89 89
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     protected function registerUsers()
96 96
     {
97
-        $this->app->singleton('jlourenco.user', function ($app) {
97
+        $this->app->singleton('jlourenco.user', function($app) {
98 98
             $config = $app['config']->get('jlourenco.base');
99 99
 
100 100
             $users = array_get($config, 'models.User');
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     protected function registerGroups()
116 116
     {
117
-        $this->app->singleton('jlourenco.group', function ($app) {
117
+        $this->app->singleton('jlourenco.group', function($app) {
118 118
             $config = $app['config']->get('jlourenco.base');
119 119
 
120 120
             $model = array_get($config, 'base.models.Group');
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     protected function registerSettings()
132 132
     {
133
-        $this->app->singleton('jlourenco.settings', function ($app) {
133
+        $this->app->singleton('jlourenco.settings', function($app) {
134 134
             $config = $app['config']->get('jlourenco.base');
135 135
 
136 136
             $model = array_get($config, 'models.Settings');
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     protected function registerLog()
148 148
     {
149
-        $this->app->singleton('jlourenco.log', function ($app) {
149
+        $this->app->singleton('jlourenco.log', function($app) {
150 150
             $config = $app['config']->get('jlourenco.base');
151 151
 
152 152
             $model = array_get($config, 'models.Logs');
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     protected function registerVisits()
164 164
     {
165
-        $this->app->singleton('jlourenco.visits', function ($app) {
165
+        $this->app->singleton('jlourenco.visits', function($app) {
166 166
             $config = $app['config']->get('jlourenco.base');
167 167
 
168 168
             $model = array_get($config, 'models.Visits');
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     protected function registerJobs()
180 180
     {
181
-        $this->app->singleton('jlourenco.jobs', function ($app) {
181
+        $this->app->singleton('jlourenco.jobs', function($app) {
182 182
             $config = $app['config']->get('jlourenco.base');
183 183
 
184 184
             $model = array_get($config, 'models.Jobs');
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     protected function registerBase()
196 196
     {
197
-        $this->app->singleton('base', function ($app) {
197
+        $this->app->singleton('base', function($app) {
198 198
             $base = new Base($app['jlourenco.settings'], $app['jlourenco.user'], $app['jlourenco.log'], $app['jlourenco.visits'], $app['jlourenco.jobs']);
199 199
 
200 200
             return $base;
Please login to merge, or discard this patch.
src/Repositories/SettingsRepository.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,9 @@
 block discarded – undo
20 20
      */
21 21
     public function __construct($model = null)
22 22
     {
23
-        if (isset($model))
24
-            $this->model = $model;
23
+        if (isset($model)) {
24
+                    $this->model = $model;
25
+        }
25 26
     }
26 27
 
27 28
     /**
Please login to merge, or discard this patch.
src/Repositories/VisitsRepository.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,9 @@
 block discarded – undo
20 20
      */
21 21
     public function __construct($model = null)
22 22
     {
23
-        if (isset($model))
24
-            $this->model = $model;
23
+        if (isset($model)) {
24
+                    $this->model = $model;
25
+        }
25 26
     }
26 27
 
27 28
     /**
Please login to merge, or discard this patch.
src/Repositories/LogRepository.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,9 @@
 block discarded – undo
20 20
      */
21 21
     public function __construct($model = null)
22 22
     {
23
-        if (isset($model))
24
-            $this->model = $model;
23
+        if (isset($model)) {
24
+                    $this->model = $model;
25
+        }
25 26
     }
26 27
 
27 28
     /**
Please login to merge, or discard this patch.
src/Controllers/GroupsController.php 4 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * Group update form processing page.
88 88
      *
89 89
      * @param  int      $id
90
-     * @return Redirect
90
+     * @return \Illuminate\Http\RedirectResponse
91 91
      */
92 92
     public function postEdit($id = null)
93 93
     {
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * Group create form processing.
166 166
      *
167
-     * @return Redirect
167
+     * @return \Illuminate\Http\RedirectResponse
168 168
      */
169 169
     public function postCreate()
170 170
     {
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      * Delete the given group.
233 233
      *
234 234
      * @param  int      $id
235
-     * @return Redirect
235
+     * @return \Illuminate\Http\RedirectResponse
236 236
      */
237 237
     public function getDelete($id = null)
238 238
     {
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -1,11 +1,7 @@
 block discarded – undo
1 1
 <?php namespace jlourenco\base\Controllers;
2 2
 
3
-use Illuminate\Http\Request;
4
-use App\Http\Requests;
5 3
 use App\Http\Controllers\Controller;
6
-use Blog;
7 4
 use Sentinel;
8
-use Searchy;
9 5
 use Validator;
10 6
 use Input;
11 7
 use Base;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $group = Sentinel::getRoleRepository()->find($id);
64 64
 
65 65
         // Get the group's information
66
-        if($group == null)
66
+        if ($group == null)
67 67
         {
68 68
             // Prepare the error message
69 69
             $error = Lang::get('base.groups.not_found');
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         // Was the post updated?
129 129
         if ($group->save())
130 130
         {
131
-            Base::Log('Group (' . $group->id . ' - ' . $group->name . ') was edited.');
131
+            Base::Log('Group ('.$group->id.' - '.$group->name.') was edited.');
132 132
 
133 133
             // Prepare the success message
134 134
             $success = Lang::get('base.groups.changed');
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
         $group->save();
197 197
 
198
-        Base::Log('A new group (' . $group->id . ' - ' . $group->name . ') was created.');
198
+        Base::Log('A new group ('.$group->id.' - '.$group->name.') was created.');
199 199
 
200 200
         // Redirect to the home page with success menu
201 201
         return Redirect::route("groups")->with('success', Lang::get('base.groups.created'));
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             return Redirect::route('groups')->with('error', $error);
249 249
         }
250 250
 
251
-        Base::Log('Group (' . $group->id . ' - ' . $group->name . ') was deleted.');
251
+        Base::Log('Group ('.$group->id.' - '.$group->name.') was deleted.');
252 252
 
253 253
         // Delete the group
254 254
         $group->delete();
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,8 +76,9 @@  discard block
 block discarded – undo
76 76
 
77 77
         $groups2 = Sentinel::getRoleRepository()->all(['id', 'name']);
78 78
 
79
-        foreach ($groups2 as $g)
80
-            $groups[$g->id] = $g->name;
79
+        foreach ($groups2 as $g) {
80
+                    $groups[$g->id] = $g->name;
81
+        }
81 82
 
82 83
         // Show the page
83 84
         return View('admin.groups.edit', compact('group', 'groups'));
@@ -154,8 +155,9 @@  discard block
 block discarded – undo
154 155
 
155 156
         $groups2 = Sentinel::getRoleRepository()->all(['id', 'name']);
156 157
 
157
-        foreach ($groups2 as $g)
158
-            $groups[$g->id] = $g->name;
158
+        foreach ($groups2 as $g) {
159
+                    $groups[$g->id] = $g->name;
160
+        }
159 161
 
160 162
         // Show the page
161 163
         return View('admin.groups.create', compact('groups'));
@@ -184,8 +186,9 @@  discard block
 block discarded – undo
184 186
 
185 187
         $group = Sentinel::getRoleRepository()->findBySlug($slug);
186 188
 
187
-        if ($group != null)
188
-            return Redirect::route("groups")->with('error', Lang::get('base.groups.already_exists'));
189
+        if ($group != null) {
190
+                    return Redirect::route("groups")->with('error', Lang::get('base.groups.already_exists'));
191
+        }
189 192
 
190 193
         $group = Sentinel::getRoleRepository()->create([
191 194
             'name' => Input::get('name'),
Please login to merge, or discard this patch.
src/routes.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * All the "restricted area" routes
7 7
  * are defined here.
8 8
  */
9
-Route::group(array('prefix' => '/', 'middleware' => 'webPublic'), function ()
9
+Route::group(array('prefix' => '/', 'middleware' => 'webPublic'), function()
10 10
 {
11 11
 
12 12
     /**
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
     /* POST */ Route::post('login', 'jlourenco\base\Controllers\AuthController@postSignin');
39 39
 
40 40
     /* GET  */ Route::get('register', array('as' => 'register', 'uses' => 'jlourenco\base\Controllers\AuthController@getSignup'));
41
-    /* POST */ Route::post('register', array('as' => 'register','uses' => 'jlourenco\base\Controllers\AuthController@postSignup'));
41
+    /* POST */ Route::post('register', array('as' => 'register', 'uses' => 'jlourenco\base\Controllers\AuthController@postSignup'));
42 42
 
43 43
     /* GET  */ Route::get('forgot-password', array('as' => 'forgot-password', 'uses' => 'jlourenco\base\Controllers\AuthController@getLostPassword'));
44
-    /* POST */ Route::post('forgot-password', array('as' => 'forgot-password','uses' => 'jlourenco\base\Controllers\AuthController@postForgotPassword'));
44
+    /* POST */ Route::post('forgot-password', array('as' => 'forgot-password', 'uses' => 'jlourenco\base\Controllers\AuthController@postForgotPassword'));
45 45
 
46 46
     # Forgot Password Confirmation
47 47
     Route::get('forgot-password/{userId}/{passwordResetCode}', array('as' => 'forgot-password-confirm', 'uses' => 'jlourenco\base\Controllers\AuthController@getForgotPasswordConfirm'));
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     Route::get('activate/{userId}/{activationCode}', array('as' => 'activate', 'uses' => 'jlourenco\base\Controllers\AuthController@getActivate'));
55 55
 
56 56
     # User account
57
-    Route::group(array('middleware' => 'auth'), function () {
57
+    Route::group(array('middleware' => 'auth'), function() {
58 58
         Route::get('profile', array('as' => 'profile', 'uses' => 'jlourenco\base\Controllers\UsersController@myAccount'));
59 59
         Route::post('profile', 'jlourenco\base\Controllers\UsersController@updateAccount');
60 60
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
  * All the "restricted area" routes
71 71
  * are defined here.
72 72
  */
73
-Route::group(array('prefix' => '/admin', 'middleware' => ['webAdmin', 'auth']), function ()
73
+Route::group(array('prefix' => '/admin', 'middleware' => ['webAdmin', 'auth']), function()
74 74
 {
75 75
 
76 76
     # Dashboard
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /* POST */ Route::post('settings/{id}/edit', array('as' => 'settings.update', 'uses' => 'jlourenco\base\Controllers\SettingsController@update'));
90 90
 
91 91
     # User Management
92
-    Route::group(array('prefix' => 'users'), function () {
92
+    Route::group(array('prefix' => 'users'), function() {
93 93
         Route::get('/list', array('as' => 'users', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminIndex'));
94 94
         Route::get('/pending', array('as' => 'users.pending', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminPending'));
95 95
         Route::get('/blocked', array('as' => 'users.blocked', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminBlocked'));
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         Route::get('/list/{userId}/delete', array('as' => 'delete/user', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminDelete'));
103 103
         Route::get('/list/{userId}/confirm-delete', array('as' => 'confirm-delete/user', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminModalDelete'));
104 104
         Route::get('/list/{userId}/restore', array('as' => 'restore/user', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminRestore'));
105
-        Route::get('deleted',array('as' => 'users.deleted', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminDeletedUsers'));
105
+        Route::get('deleted', array('as' => 'users.deleted', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminDeletedUsers'));
106 106
         Route::get('/list/{userId}', array('as' => 'users.show', 'uses' => 'jlourenco\base\Controllers\UsersController@adminShow'));
107 107
 
108 108
         Route::get('/list/{userId}/confirm-remove/{groupId}', array('as' => 'confirm-remove/group', 'uses' => 'jlourenco\base\Controllers\UsersController@getAdminModalRemoveGroup'));
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     });
113 113
 
114 114
     # Groups Management
115
-    Route::group(array('prefix' => 'groups'), function () {
115
+    Route::group(array('prefix' => 'groups'), function() {
116 116
         Route::get('/list', array('as' => 'groups', 'uses' => 'jlourenco\base\Controllers\GroupsController@index'));
117 117
         Route::get('/create', array('as' => 'create.group', 'uses' => 'jlourenco\base\Controllers\GroupsController@getCreate'));
118 118
         Route::post('/create', 'jlourenco\base\Controllers\GroupsController@postCreate');
Please login to merge, or discard this patch.
src/migrations/2016_01_14_235300_create_base_tables.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public function up()
15 15
     {
16 16
 
17
-        Schema::create('User', function (Blueprint $table) {
17
+        Schema::create('User', function(Blueprint $table) {
18 18
             $table->increments('id');
19 19
             $table->string('username', 25)->nullable()->unique();
20 20
             $table->string('password', 60)->nullable();
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
             $table->creation();
38 38
         });
39 39
 
40
-        Schema::table('User', function (Blueprint $table) {
40
+        Schema::table('User', function(Blueprint $table) {
41 41
             $table->creationRelation();
42 42
         });
43 43
 
44
-        Schema::create('Visits', function (Blueprint $table) {
44
+        Schema::create('Visits', function(Blueprint $table) {
45 45
             $table->increments('id');
46 46
             $table->string('url')->nullable();
47 47
             $table->string('ip', 15)->nullable();
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             $table->timestamps();
61 61
         });
62 62
 
63
-        Schema::create('Logs', function (Blueprint $table) {
63
+        Schema::create('Logs', function(Blueprint $table) {
64 64
             $table->increments('id');
65 65
             $table->text('log');
66 66
             $table->integer('target')->nullable();
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
             $table->creation();
70 70
         });
71 71
 
72
-        Schema::table('Logs', function (Blueprint $table) {
72
+        Schema::table('Logs', function(Blueprint $table) {
73 73
             $table->creationRelation();
74 74
         });
75 75
 
76
-        Schema::create('Settings', function (Blueprint $table) {
76
+        Schema::create('Settings', function(Blueprint $table) {
77 77
             $table->increments('id');
78 78
             $table->string('friendly_name', 25);
79 79
             $table->string('name', 25);
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
             $table->creation();
84 84
         });
85 85
 
86
-        Schema::table('Settings', function (Blueprint $table) {
86
+        Schema::table('Settings', function(Blueprint $table) {
87 87
             $table->creationRelation();
88 88
         });
89 89
 
90
-        Schema::create('Group', function (Blueprint $table) {
90
+        Schema::create('Group', function(Blueprint $table) {
91 91
             $table->increments('id');
92 92
             $table->string('name', 25);
93 93
             $table->string('description', 250)->nullable();
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
             $table->unique('slug');
102 102
         });
103 103
 
104
-        Schema::table('Group', function (Blueprint $table) {
104
+        Schema::table('Group', function(Blueprint $table) {
105 105
             $table->creationRelation();
106 106
         });
107 107
 
108
-        Schema::create('Group_User', function (Blueprint $table) {
108
+        Schema::create('Group_User', function(Blueprint $table) {
109 109
             $table->increments('id');
110 110
             $table->integer('user')->unsigned();
111 111
             $table->integer('group')->unsigned();
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
             $table->foreign('group')->references('id')->on('Group');
119 119
         });
120 120
 
121
-        Schema::table('Group_User', function (Blueprint $table) {
121
+        Schema::table('Group_User', function(Blueprint $table) {
122 122
             $table->creationRelation();
123 123
         });
124 124
 
125
-        Schema::create('ActivityFeed', function (Blueprint $table) {
125
+        Schema::create('ActivityFeed', function(Blueprint $table) {
126 126
             $table->increments('id');
127 127
             $table->string('added_by', 150);
128 128
             $table->text('activity');
Please login to merge, or discard this patch.