Completed
Push — master ( 2d22de...e2d103 )
by Sherif
02:14
created
src/Modules/Acl/Database/Seeds/AssignRelationsSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         /**
19 19
          * Assign the permissions to the admin group.
20 20
          */
21
-        \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['users', 'permissions', 'groups', 'oauthClients'])->each(function ($permission) use ($adminGroupId) {
21
+        \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['users', 'permissions', 'groups', 'oauthClients'])->each(function($permission) use ($adminGroupId) {
22 22
             \DB::table('groups_permissions')->insert(
23 23
                 [
24 24
                 'permission_id' => $permission->id,
Please login to merge, or discard this patch.
src/Modules/Acl/Proxy/LoginProxy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         $response = \ApiConsumer::post('/oauth/token', $data);
53 53
 
54
-        if (! $response->isSuccessful()) {
54
+        if ( ! $response->isSuccessful()) {
55 55
             if ($grantType == 'refresh_token') {
56 56
                 \ErrorHandler::invalidRefreshToken();
57 57
             }
Please login to merge, or discard this patch.
src/Modules/Acl/Routes/api.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Route::group(['prefix' => 'acl'], function () {
14
+Route::group(['prefix' => 'acl'], function() {
15 15
 
16
-    Route::group(['prefix' => 'users'], function () {
16
+    Route::group(['prefix' => 'users'], function() {
17 17
         
18 18
         Route::get('list/{sortBy?}/{desc?}', 'UsersController@index');
19 19
         Route::get('find/{id}', 'UsersController@find');
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         Route::post('group/{groupName}/{perPage?}/{sortBy?}/{desc?}', 'UsersController@group');
45 45
     });
46 46
 
47
-    Route::group(['prefix' => 'groups'], function () {
47
+    Route::group(['prefix' => 'groups'], function() {
48 48
 
49 49
         Route::get('list/{sortBy?}/{desc?}', 'GroupsController@index');
50 50
         Route::get('find/{id}', 'GroupsController@find');
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         Route::post('assignpermissions', 'GroupsController@assignpermissions');
61 61
     });
62 62
     
63
-    Route::group(['prefix' => 'permissions'], function () {
63
+    Route::group(['prefix' => 'permissions'], function() {
64 64
         
65 65
         Route::get('list/{sortBy?}/{desc?}', 'PermissionsController@index');
66 66
         Route::get('find/{id}', 'PermissionsController@find');
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         Route::post('paginateby/{perPage?}/{sortBy?}/{desc?}', 'PermissionsController@paginateby');
72 72
     });
73 73
 
74
-    Route::group(['prefix' => 'oauth/clients'], function () {
74
+    Route::group(['prefix' => 'oauth/clients'], function() {
75 75
         
76 76
         Route::get('list/{sortBy?}/{desc?}', 'OauthClientsController@index');
77 77
         Route::get('find/{id}', 'OauthClientsController@find');
Please login to merge, or discard this patch.
src/Modules/Acl/ModelObservers/AclUserObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function updated($model)
37 37
     {
38 38
         if ($model->isDirty('blocked') && $model->blocked) {
39
-            $model->tokens()->each(function ($token) {
39
+            $model->tokens()->each(function($token) {
40 40
 
41 41
                 \Core::users()->revokeAccessToken($token);
42 42
             });
Please login to merge, or discard this patch.
src/Modules/Acl/Repositories/GroupRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function assignPermissions($groupId, $permissionIds)
25 25
     {
26
-        \DB::transaction(function () use ($groupId, $permissionIds) {
26
+        \DB::transaction(function() use ($groupId, $permissionIds) {
27 27
             $group = $this->find($groupId);
28 28
             $group->permissions()->detach();
29 29
             $group->permissions()->attach($permissionIds);
Please login to merge, or discard this patch.
src/Modules/Core/Database/Factories/SettingFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$factory->define(App\Modules\Core\Settings::class, function (Faker\Generator $faker) {
3
+$factory->define(App\Modules\Core\Settings::class, function(Faker\Generator $faker) {
4 4
     return [
5 5
         'name'       => $faker->randomElement(['Company Name', 'Title', 'Header Image']),
6 6
         'value'      => $faker->word(),
Please login to merge, or discard this patch.
src/Modules/Core/Database/Migrations/2016_01_24_123630_settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('settings', function (Blueprint $table) {
15
+        Schema::create('settings', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('name', 100);
18 18
             $table->string('key', 100)->unique();
Please login to merge, or discard this patch.
src/Modules/Core/Database/Seeds/AssignRelationsSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         /**
19 19
          * Assign the permissions to the admin group.
20 20
          */
21
-        \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['settings'])->each(function ($permission) use ($adminGroupId) {
21
+        \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['settings'])->each(function($permission) use ($adminGroupId) {
22 22
             \DB::table('groups_permissions')->insert(
23 23
                 [
24 24
                 'permission_id' => $permission->id,
Please login to merge, or discard this patch.
src/Modules/Core/Decorators/CachingDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         if ($this->cacheConfig && $this->cacheConfig == 'cache') {
84 84
             $page     = \Request::get('page') !== null ? \Request::get('page') : '1';
85 85
             $cacheKey = $name.$page.\Session::get('locale').serialize($arguments);
86
-            return $this->cache->tags([$this->cacheTag])->rememberForever($cacheKey, function () use ($arguments, $name) {
86
+            return $this->cache->tags([$this->cacheTag])->rememberForever($cacheKey, function() use ($arguments, $name) {
87 87
                 return call_user_func_array([$this->repo, $name], $arguments);
88 88
             });
89 89
         } elseif ($this->cacheConfig) {
Please login to merge, or discard this patch.