Completed
Push — 3.0 ( e35e67...dd376e )
by Ian
43:15
created
src/Resources/assets/datatables/extensions/Scroller/examples/data/ssp.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,19 +29,19 @@  discard block
 block discarded – undo
29 29
 // parameter represents the DataTables column identifier. In this case simple
30 30
 // indexes
31 31
 $columns = array(
32
-	array( 'db' => 'id',         'dt' => 0 ),
33
-	array( 'db' => 'firstname',  'dt' => 1 ),
34
-	array( 'db' => 'surname',    'dt' => 2 ),
35
-	array( 'db' => 'zip',        'dt' => 3 ),
36
-	array( 'db' => 'country',    'dt' => 4 )
32
+    array( 'db' => 'id',         'dt' => 0 ),
33
+    array( 'db' => 'firstname',  'dt' => 1 ),
34
+    array( 'db' => 'surname',    'dt' => 2 ),
35
+    array( 'db' => 'zip',        'dt' => 3 ),
36
+    array( 'db' => 'country',    'dt' => 4 )
37 37
 );
38 38
 
39 39
 // SQL server connection information
40 40
 $sql_details = array(
41
-	'user' => '',
42
-	'pass' => '',
43
-	'db'   => '',
44
-	'host' => ''
41
+    'user' => '',
42
+    'pass' => '',
43
+    'db'   => '',
44
+    'host' => ''
45 45
 );
46 46
 
47 47
 
@@ -53,6 +53,6 @@  discard block
 block discarded – undo
53 53
 require( '../../../../examples/server_side/scripts/ssp.class.php' );
54 54
 
55 55
 echo json_encode(
56
-	SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
56
+    SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
57 57
 );
58 58
 
Please login to merge, or discard this patch.
src/Providers/DashboardServiceProvider.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         // Load & Publish views.
49 49
         $this->loadViewsFrom(__DIR__ . '/../Resources/views', $namespace);
50 50
         $this->publishes([
51
-          __DIR__ . '/../Resources/views' => base_path('resources/views/vendor/' . $namespace),
51
+            __DIR__ . '/../Resources/views' => base_path('resources/views/vendor/' . $namespace),
52 52
         ], 'views');
53 53
 
54 54
         // Load translations.
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
         $migrations = realpath(__DIR__ . '/../Database/Migrations');
73 73
 
74 74
         $this->publishes([
75
-          $migrations => database_path('/migrations'),
75
+            $migrations => database_path('/migrations'),
76 76
         ], 'migrations');
77 77
 
78 78
         // Publish assets.
79 79
         $this->publishes([
80
-          __DIR__ . '/../Resources/assets' => public_path('vendor/laraflock'),
80
+            __DIR__ . '/../Resources/assets' => public_path('vendor/laraflock'),
81 81
         ], 'public');
82 82
 
83 83
         // Setup interfaces.
@@ -152,26 +152,26 @@  discard block
 block discarded – undo
152 152
     {
153 153
         // Bind the Auth Repository Interface
154 154
         $this->app->bind(
155
-          'Laraflock\Dashboard\Repositories\Auth\AuthRepositoryInterface',
156
-          config('laraflock.dashboard.authRepositoryClass')
155
+            'Laraflock\Dashboard\Repositories\Auth\AuthRepositoryInterface',
156
+            config('laraflock.dashboard.authRepositoryClass')
157 157
         );
158 158
 
159 159
         // Bind the Permission Repository Interface
160 160
         $this->app->bind(
161
-          'Laraflock\Dashboard\Repositories\Permission\PermissionRepositoryInterface',
162
-          config('laraflock.dashboard.permissionRepositoryClass')
161
+            'Laraflock\Dashboard\Repositories\Permission\PermissionRepositoryInterface',
162
+            config('laraflock.dashboard.permissionRepositoryClass')
163 163
         );
164 164
 
165 165
         // Bind the Role Repository Interface
166 166
         $this->app->bind(
167
-          'Laraflock\Dashboard\Repositories\Role\RoleRepositoryInterface',
168
-          config('laraflock.dashboard.roleRepositoryClass')
167
+            'Laraflock\Dashboard\Repositories\Role\RoleRepositoryInterface',
168
+            config('laraflock.dashboard.roleRepositoryClass')
169 169
         );
170 170
 
171 171
         // Bind the User Repository Interface
172 172
         $this->app->bind(
173
-          'Laraflock\Dashboard\Repositories\User\UserRepositoryInterface',
174
-          config('laraflock.dashboard.userRepositoryClass')
173
+            'Laraflock\Dashboard\Repositories\User\UserRepositoryInterface',
174
+            config('laraflock.dashboard.userRepositoryClass')
175 175
         );
176 176
 
177 177
         // Bind the Module Repository Interface
Please login to merge, or discard this patch.
src/Controllers/UsersController.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function create()
41 41
     {
42 42
         $roles = $this->roleRepositoryInterface->getAll()
43
-                                               ->lists('name', 'slug');
43
+                                                ->lists('name', 'slug');
44 44
 
45 45
         return $this->view('users.create')
46 46
                     ->with('roles', $roles);
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
             Flash::error($e->getMessage());
62 62
 
63 63
             return redirect()
64
-              ->route('users.create')
65
-              ->withErrors($e->getErrors())
66
-              ->withInput();
64
+                ->route('users.create')
65
+                ->withErrors($e->getErrors())
66
+                ->withInput();
67 67
         }
68 68
 
69 69
         Flash::success(trans('dashboard::dashboard.flash.user.create.success'));
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         }
88 88
 
89 89
         $currentRoles = $user->getRoles()
90
-                             ->lists('name');
90
+                                ->lists('name');
91 91
 
92 92
         if (empty($currentRoles)) {
93 93
             $currentRoles = new Collection(['name' => 'Not Available']);
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $currentRoles = implode(', ', $currentRoles->toArray());
98 98
 
99 99
         $roles = $this->roleRepositoryInterface->getAll()
100
-                                               ->lists('name', 'slug');
100
+                                                ->lists('name', 'slug');
101 101
 
102 102
         return $this->view('users.edit')
103 103
                     ->with(['user' => $user, 'currentRoles' => $currentRoles, 'roles' => $roles]);
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
             Flash::error($e->getMessage());
120 120
 
121 121
             return redirect()
122
-              ->route('users.edit', ['id' => $id])
123
-              ->withErrors($e->getErrors())
124
-              ->withInput();
122
+                ->route('users.edit', ['id' => $id])
123
+                ->withErrors($e->getErrors())
124
+                ->withInput();
125 125
         } catch (UsersException $e) {
126 126
             Flash::error($e->getMessage());
127 127
 
Please login to merge, or discard this patch.
src/Controllers/AccountController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
                 Flash::error($e->getMessage());
47 47
 
48 48
                 return redirect()
49
-                  ->route('account.edit')
50
-                  ->withErrors($e->getErrors())
51
-                  ->withInput();
49
+                    ->route('account.edit')
50
+                    ->withErrors($e->getErrors())
51
+                    ->withInput();
52 52
             } catch (UsersException $e) {
53 53
                 Flash::error($e->getMessage());
54 54
 
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
                 Flash::error($e->getMessage());
68 68
 
69 69
                 return redirect()
70
-                  ->route('account.edit')
71
-                  ->withErrors($e->getErrors());
70
+                    ->route('account.edit')
71
+                    ->withErrors($e->getErrors());
72 72
             } catch (AuthenticationException $e) {
73 73
                 Flash::error(trans('dashboard::dashboard.flash.password.fail'));
74 74
 
75 75
                 return redirect()
76
-                  ->route('account.edit');
76
+                    ->route('account.edit');
77 77
             }
78 78
 
79 79
             Flash::success(trans('dashboard::dashboard.flash.password.success'));
Please login to merge, or discard this patch.
src/Controllers/AuthController.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
             Flash::error($e->getMessage());
66 66
 
67 67
             return redirect()
68
-              ->route('auth.login')
69
-              ->withErrors($e->getErrors());
68
+                ->route('auth.login')
69
+                ->withErrors($e->getErrors());
70 70
         } catch (AuthenticationException $e) {
71 71
             Flash::error($e->getMessage());
72 72
 
@@ -113,15 +113,15 @@  discard block
 block discarded – undo
113 113
             Flash::error($e->getMessage());
114 114
 
115 115
             return redirect()
116
-              ->route('auth.register')
117
-              ->withErrors($e->getErrors())
118
-              ->withInput();
116
+                ->route('auth.register')
117
+                ->withErrors($e->getErrors())
118
+                ->withInput();
119 119
         } catch (RolesException $e) {
120 120
             Flash::error($e->getMessage());
121 121
 
122 122
             return redirect()
123
-              ->route('auth.register')
124
-              ->withInput();
123
+                ->route('auth.register')
124
+                ->withInput();
125 125
         }
126 126
 
127 127
         if (!config('laraflock.dashboard.activations')) {
@@ -182,15 +182,15 @@  discard block
 block discarded – undo
182 182
             Flash::error($e->getMessage());
183 183
 
184 184
             return redirect()
185
-              ->route('auth.activate')
186
-              ->withErrors($e->getErrors())
187
-              ->withInput();
185
+                ->route('auth.activate')
186
+                ->withErrors($e->getErrors())
187
+                ->withInput();
188 188
         } catch (AuthenticationException $e) {
189 189
             Flash::error($e->getMessage());
190 190
 
191 191
             return redirect()
192
-              ->route('auth.activate')
193
-              ->withInput();
192
+                ->route('auth.activate')
193
+                ->withInput();
194 194
         }
195 195
 
196 196
         Flash::success(trans('dashboard::dashboard.flash.activation.success'));
Please login to merge, or discard this patch.
src/Controllers/PermissionsController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
             Flash::error($e->getMessage());
58 58
 
59 59
             return redirect()
60
-              ->route('permissions.create')
61
-              ->withErrors($e->getErrors())
62
-              ->withInput();
60
+                ->route('permissions.create')
61
+                ->withErrors($e->getErrors())
62
+                ->withInput();
63 63
         }
64 64
 
65 65
         Flash::success(trans('dashboard::dashboard.flash.permission.create.success'));
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
             Flash::error($e->getMessage());
102 102
 
103 103
             return redirect()
104
-              ->route('permissions.edit', ['id' => $id])
105
-              ->withErrors($e->getErrors())
106
-              ->withInput();
104
+                ->route('permissions.edit', ['id' => $id])
105
+                ->withErrors($e->getErrors())
106
+                ->withInput();
107 107
         } catch (PermissionsException $e) {
108 108
             Flash::error($e->getMessage());
109 109
 
Please login to merge, or discard this patch.
src/Controllers/RolesController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
             Flash::error($e->getMessage());
58 58
 
59 59
             return redirect()
60
-              ->route('roles.create')
61
-              ->withErrors($e->getErrors())
62
-              ->withInput();
60
+                ->route('roles.create')
61
+                ->withErrors($e->getErrors())
62
+                ->withInput();
63 63
         }
64 64
 
65 65
         Flash::success(trans('dashboard::dashboard.flash.role.create.success'));
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
             Flash::error($e->getMessage());
104 104
 
105 105
             return redirect()
106
-              ->route('roles.edit', ['id' => $id])
107
-              ->withErrors($e->getErrors())
108
-              ->withInput();
106
+                ->route('roles.edit', ['id' => $id])
107
+                ->withErrors($e->getErrors())
108
+                ->withInput();
109 109
         } catch (RolesException $e) {
110 110
             Flash::error($e->getMessage());
111 111
 
Please login to merge, or discard this patch.
src/Repositories/Auth/AuthRepository.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
     public function authenticate(array $data)
68 68
     {
69 69
         $this->rules = [
70
-          'email'    => 'required|email',
71
-          'password' => 'required',
70
+            'email'    => 'required|email',
71
+            'password' => 'required',
72 72
         ];
73 73
 
74 74
         $remember = false;
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
     public function register(array $data, $validate = true)
93 93
     {
94 94
         $this->rules = [
95
-          'email'                 => 'required|unique:users',
96
-          'password'              => 'required|confirmed',
97
-          'password_confirmation' => 'required',
95
+            'email'                 => 'required|unique:users',
96
+            'password'              => 'required|confirmed',
97
+            'password_confirmation' => 'required',
98 98
         ];
99 99
 
100 100
         if ($validate) {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         }
127 127
 
128 128
         $role->users()
129
-             ->attach($user);
129
+                ->attach($user);
130 130
 
131 131
         if (!$activation = $this->illuminateActivationRepository->create($user)) {
132 132
             throw new AuthenticationException(trans('dashboard::dashboard.errors.auth.activation.create'));
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
     public function registerAndActivate(array $data, $validate = true)
142 142
     {
143 143
         $this->rules = [
144
-          'email'                 => 'required|unique:users',
145
-          'password'              => 'required|confirmed',
146
-          'password_confirmation' => 'required',
144
+            'email'                 => 'required|unique:users',
145
+            'password'              => 'required|confirmed',
146
+            'password_confirmation' => 'required',
147 147
         ];
148 148
 
149 149
         if ($validate) {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         }
166 166
 
167 167
         $role->users()
168
-             ->attach($user);
168
+                ->attach($user);
169 169
 
170 170
         return;
171 171
     }
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
     public function activate(array $data, $validate = true)
177 177
     {
178 178
         $this->rules = [
179
-          'email'           => 'required|email',
180
-          'activation_code' => 'required',
179
+            'email'           => 'required|email',
180
+            'activation_code' => 'required',
181 181
         ];
182 182
 
183 183
         if ($validate) {
Please login to merge, or discard this patch.
src/Repositories/Role/RoleRepository.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
     public function create(array $data, $validate = true)
69 69
     {
70 70
         $this->rules = [
71
-          'slug' => 'required|alpha_dash|unique:roles',
72
-          'name' => 'required|alpha_dash|unique:roles',
71
+            'slug' => 'required|alpha_dash|unique:roles',
72
+            'name' => 'required|alpha_dash|unique:roles',
73 73
         ];
74 74
 
75 75
         if ($validate) {
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
 
86 86
         try {
87 87
             $role = $this->sentinel->getRoleRepository()
88
-                                   ->createModel()
89
-                                   ->create($data);
88
+                                    ->createModel()
89
+                                    ->create($data);
90 90
         } catch (QueryException $e) {
91 91
             throw new RolesException(trans('dashboard::dashboard.errors.role.create'));
92 92
         }
Please login to merge, or discard this patch.