Completed
Push — master ( 8df45b...9d0042 )
by Sherif
02:28 queued 11s
created
src/Modules/Core/Http/Controllers/SettingController.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -11,37 +11,37 @@
 block discarded – undo
11 11
 
12 12
 class SettingController extends BaseApiController
13 13
 {
14
-    /**
15
-     * Init new object.
16
-     *
17
-     * @param   SettingRepository $repo
18
-     * @param   CoreConfig        $config
19
-     * @return  void
20
-     */
21
-    public function __construct(SettingRepository $repo, CoreConfig $config)
22
-    {
23
-        parent::__construct($repo, $config, 'App\Modules\Core\Http\Resources\Setting');
24
-    }
14
+	/**
15
+	 * Init new object.
16
+	 *
17
+	 * @param   SettingRepository $repo
18
+	 * @param   CoreConfig        $config
19
+	 * @return  void
20
+	 */
21
+	public function __construct(SettingRepository $repo, CoreConfig $config)
22
+	{
23
+		parent::__construct($repo, $config, 'App\Modules\Core\Http\Resources\Setting');
24
+	}
25 25
 
26
-    /**
27
-     * Update the given model to storage.
28
-     *
29
-     * @param UpdateSetting $request
30
-     * @return \Illuminate\Http\Response
31
-     */
32
-    public function update(UpdateSetting $request)
33
-    {
34
-        return new $this->modelResource($this->repo->save($request->all()));
35
-    }
26
+	/**
27
+	 * Update the given model to storage.
28
+	 *
29
+	 * @param UpdateSetting $request
30
+	 * @return \Illuminate\Http\Response
31
+	 */
32
+	public function update(UpdateSetting $request)
33
+	{
34
+		return new $this->modelResource($this->repo->save($request->all()));
35
+	}
36 36
 
37
-    /**
38
-     * Save list of settings.
39
-     *
40
-     * @param Request $request
41
-     * @return \Illuminate\Http\Response
42
-     */
43
-    public function saveMany(Request $request)
44
-    {
45
-        return new GeneralResource($this->repo->saveMany($request->all()));
46
-    }
37
+	/**
38
+	 * Save list of settings.
39
+	 *
40
+	 * @param Request $request
41
+	 * @return \Illuminate\Http\Response
42
+	 */
43
+	public function saveMany(Request $request)
44
+	{
45
+		return new GeneralResource($this->repo->saveMany($request->all()));
46
+	}
47 47
 }
Please login to merge, or discard this patch.
src/Modules/Core/Http/Requests/UpdateSetting.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -6,26 +6,26 @@
 block discarded – undo
6 6
 
7 7
 class UpdateSetting extends FormRequest
8 8
 {
9
-    /**
10
-     * Determine if the user is authorized to make this request.
11
-     *
12
-     * @return bool
13
-     */
14
-    public function authorize()
15
-    {
16
-        return true;
17
-    }
9
+	/**
10
+	 * Determine if the user is authorized to make this request.
11
+	 *
12
+	 * @return bool
13
+	 */
14
+	public function authorize()
15
+	{
16
+		return true;
17
+	}
18 18
 
19
-    /**
20
-     * Get the validation rules that apply to the request.
21
-     *
22
-     * @return array
23
-     */
24
-    public function rules()
25
-    {
26
-        return [
27
-            'id'    => 'required|exists:settings,id',
28
-            'value' => 'required|string'
29
-        ];
30
-    }
19
+	/**
20
+	 * Get the validation rules that apply to the request.
21
+	 *
22
+	 * @return array
23
+	 */
24
+	public function rules()
25
+	{
26
+		return [
27
+			'id'    => 'required|exists:settings,id',
28
+			'value' => 'required|string'
29
+		];
30
+	}
31 31
 }
Please login to merge, or discard this patch.
src/Modules/Core/Database/Seeds/AssignRelationsSeeder.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -6,27 +6,27 @@
 block discarded – undo
6 6
 
7 7
 class AssignRelationsSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-        $adminGroupId = \DB::table('groups')->where('name', 'admin')->select('id')->first()->id;
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		$adminGroupId = \DB::table('groups')->where('name', 'admin')->select('id')->first()->id;
17 17
 
18
-        /**
19
-         * Assign the permissions to the admin group.
20
-         */
21
-        \DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['setting'])->each(function ($permission) use ($adminGroupId) {
22
-            \DB::table('groups_permissions')->insert(
23
-                [
24
-                'permission_id' => $permission->id,
25
-                'group_id'      => $adminGroupId,
26
-                'created_at'    => \DB::raw('NOW()'),
27
-                'updated_at'    => \DB::raw('NOW()')
28
-                ]
29
-            );
30
-        });
31
-    }
18
+		/**
19
+		 * Assign the permissions to the admin group.
20
+		 */
21
+		\DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['setting'])->each(function ($permission) use ($adminGroupId) {
22
+			\DB::table('groups_permissions')->insert(
23
+				[
24
+				'permission_id' => $permission->id,
25
+				'group_id'      => $adminGroupId,
26
+				'created_at'    => \DB::raw('NOW()'),
27
+				'updated_at'    => \DB::raw('NOW()')
28
+				]
29
+			);
30
+		});
31
+	}
32 32
 }
Please login to merge, or discard this patch.
src/Modules/Core/Database/Seeds/ClearDataSeeder.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 
7 7
 class ClearDataSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-        $permissions = \DB::table('permissions')->whereIn('model', ['setting']);
17
-        \DB::table('groups_permissions')->whereIn('permission_id', $permissions->pluck('id'))->delete();
18
-        $permissions->delete();
19
-    }
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		$permissions = \DB::table('permissions')->whereIn('model', ['setting']);
17
+		\DB::table('groups_permissions')->whereIn('permission_id', $permissions->pluck('id'))->delete();
18
+		$permissions->delete();
19
+	}
20 20
 }
Please login to merge, or discard this patch.
src/Modules/Core/Database/Seeds/SettingsTableSeeder.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -6,52 +6,52 @@
 block discarded – undo
6 6
 
7 7
 class SettingsTableSeeder extends Seeder
8 8
 {
9
-    /**
10
-     * Run the database seeds.
11
-     *
12
-     * @return void
13
-     */
14
-    public function run()
15
-    {
16
-        /**
17
-         * Insert the permissions related to settings table.
18
-         */
19
-        \DB::table('permissions')->insert(
20
-            [
21
-                /**
22
-                 * Settings model permissions.
23
-                 */
24
-                [
25
-                'name'       => 'index',
26
-                'model'      => 'setting',
27
-                'created_at' => \DB::raw('NOW()'),
28
-                'updated_at' => \DB::raw('NOW()')
29
-                ],
30
-                [
31
-                'name'       => 'find',
32
-                'model'      => 'setting',
33
-                'created_at' => \DB::raw('NOW()'),
34
-                'updated_at' => \DB::raw('NOW()')
35
-                ],
36
-                [
37
-                'name'       => 'update',
38
-                'model'      => 'setting',
39
-                'created_at' => \DB::raw('NOW()'),
40
-                'updated_at' => \DB::raw('NOW()')
41
-                ],
42
-                [
43
-                'name'       => 'delete',
44
-                'model'      => 'setting',
45
-                'created_at' => \DB::raw('NOW()'),
46
-                'updated_at' => \DB::raw('NOW()')
47
-                ],
48
-                [
49
-                'name'       => 'saveMany',
50
-                'model'      => 'setting',
51
-                'created_at' => \DB::raw('NOW()'),
52
-                'updated_at' => \DB::raw('NOW()')
53
-                ]
54
-            ]
55
-        );
56
-    }
9
+	/**
10
+	 * Run the database seeds.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function run()
15
+	{
16
+		/**
17
+		 * Insert the permissions related to settings table.
18
+		 */
19
+		\DB::table('permissions')->insert(
20
+			[
21
+				/**
22
+				 * Settings model permissions.
23
+				 */
24
+				[
25
+				'name'       => 'index',
26
+				'model'      => 'setting',
27
+				'created_at' => \DB::raw('NOW()'),
28
+				'updated_at' => \DB::raw('NOW()')
29
+				],
30
+				[
31
+				'name'       => 'find',
32
+				'model'      => 'setting',
33
+				'created_at' => \DB::raw('NOW()'),
34
+				'updated_at' => \DB::raw('NOW()')
35
+				],
36
+				[
37
+				'name'       => 'update',
38
+				'model'      => 'setting',
39
+				'created_at' => \DB::raw('NOW()'),
40
+				'updated_at' => \DB::raw('NOW()')
41
+				],
42
+				[
43
+				'name'       => 'delete',
44
+				'model'      => 'setting',
45
+				'created_at' => \DB::raw('NOW()'),
46
+				'updated_at' => \DB::raw('NOW()')
47
+				],
48
+				[
49
+				'name'       => 'saveMany',
50
+				'model'      => 'setting',
51
+				'created_at' => \DB::raw('NOW()'),
52
+				'updated_at' => \DB::raw('NOW()')
53
+				]
54
+			]
55
+		);
56
+	}
57 57
 }
Please login to merge, or discard this patch.
files/auth.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-    /*
5
+	/*
6 6
     |--------------------------------------------------------------------------
7 7
     | Authentication Defaults
8 8
     |--------------------------------------------------------------------------
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
     |
14 14
     */
15 15
 
16
-    'defaults' => [
17
-        'guard' => 'web',
18
-        'passwords' => 'users',
19
-    ],
16
+	'defaults' => [
17
+		'guard' => 'web',
18
+		'passwords' => 'users',
19
+	],
20 20
 
21
-    /*
21
+	/*
22 22
     |--------------------------------------------------------------------------
23 23
     | Authentication Guards
24 24
     |--------------------------------------------------------------------------
@@ -35,19 +35,19 @@  discard block
 block discarded – undo
35 35
     |
36 36
     */
37 37
 
38
-    'guards' => [
39
-        'web' => [
40
-            'driver' => 'session',
41
-            'provider' => 'users',
42
-        ],
38
+	'guards' => [
39
+		'web' => [
40
+			'driver' => 'session',
41
+			'provider' => 'users',
42
+		],
43 43
 
44
-        'api' => [
45
-            'driver' => 'passport',
46
-            'provider' => 'users',
47
-        ],
48
-    ],
44
+		'api' => [
45
+			'driver' => 'passport',
46
+			'provider' => 'users',
47
+		],
48
+	],
49 49
 
50
-    /*
50
+	/*
51 51
     |--------------------------------------------------------------------------
52 52
     | User Providers
53 53
     |--------------------------------------------------------------------------
@@ -64,19 +64,19 @@  discard block
 block discarded – undo
64 64
     |
65 65
     */
66 66
 
67
-    'providers' => [
68
-        'users' => [
69
-            'driver' => 'eloquent',
70
-            'model' => App\Modules\Users\AclUser::class,
71
-        ],
67
+	'providers' => [
68
+		'users' => [
69
+			'driver' => 'eloquent',
70
+			'model' => App\Modules\Users\AclUser::class,
71
+		],
72 72
 
73
-        // 'users' => [
74
-        //     'driver' => 'database',
75
-        //     'table' => 'users',
76
-        // ],
77
-    ],
73
+		// 'users' => [
74
+		//     'driver' => 'database',
75
+		//     'table' => 'users',
76
+		// ],
77
+	],
78 78
 
79
-    /*
79
+	/*
80 80
     |--------------------------------------------------------------------------
81 81
     | Resetting Passwords
82 82
     |--------------------------------------------------------------------------
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
     |
92 92
     */
93 93
 
94
-    'passwords' => [
95
-        'users' => [
96
-            'provider' => 'users',
97
-            'table' => 'password_resets',
98
-            'expire' => 60,
99
-        ],
100
-    ],
94
+	'passwords' => [
95
+		'users' => [
96
+			'provider' => 'users',
97
+			'table' => 'password_resets',
98
+			'expire' => 60,
99
+		],
100
+	],
101 101
 
102 102
 ];
Please login to merge, or discard this patch.
config/skeleton.php 1 patch
Indentation   +136 added lines, -136 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-    /*
5
+	/*
6 6
     |--------------------------------------------------------------------------
7 7
     | Disable Confirm Email
8 8
     |--------------------------------------------------------------------------
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
     |
12 12
     */
13 13
 
14
-    'disable_confirm_email' => env('DISABLE_CONFIRM_EMAIL', false),
14
+	'disable_confirm_email' => env('DISABLE_CONFIRM_EMAIL', false),
15 15
 
16
-    /*
16
+	/*
17 17
     |--------------------------------------------------------------------------
18 18
     | Confirm Email URL
19 19
     |--------------------------------------------------------------------------
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
     |
23 23
     */
24 24
    
25
-    'confrim_email_url' => env('CONFIRM_EMAIL_URL'),
25
+	'confrim_email_url' => env('CONFIRM_EMAIL_URL'),
26 26
 
27
-    /*
27
+	/*
28 28
     |--------------------------------------------------------------------------
29 29
     | Reset Password URL
30 30
     |--------------------------------------------------------------------------
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
     |
34 34
     */
35 35
    
36
-    'reset_password_url' => env('RESET_PASSWORD_URL'),
36
+	'reset_password_url' => env('RESET_PASSWORD_URL'),
37 37
 
38
-    /*
38
+	/*
39 39
     |--------------------------------------------------------------------------
40 40
     | Passport Client Id
41 41
     |--------------------------------------------------------------------------
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
     |
45 45
     */
46 46
    
47
-    'passport_client_id' => env('PASSWORD_CLIENT_ID'),
47
+	'passport_client_id' => env('PASSWORD_CLIENT_ID'),
48 48
 
49
-    /*
49
+	/*
50 50
     |--------------------------------------------------------------------------
51 51
     | Passport Client Secret
52 52
     |--------------------------------------------------------------------------
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
     |
56 56
     */
57 57
    
58
-    'passport_client_secret' => env('PASSWORD_CLIENT_SECRET'),
58
+	'passport_client_secret' => env('PASSWORD_CLIENT_SECRET'),
59 59
 
60
-    /*
60
+	/*
61 61
     |--------------------------------------------------------------------------
62 62
     | Social Pass
63 63
     |--------------------------------------------------------------------------
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
     |
67 67
     */
68 68
 
69
-    'social_pass' => env('SOCIAL_PASS', false),
69
+	'social_pass' => env('SOCIAL_PASS', false),
70 70
 
71
-    /*
71
+	/*
72 72
     |--------------------------------------------------------------------------
73 73
     | Relations Between Models
74 74
     |--------------------------------------------------------------------------
@@ -77,88 +77,88 @@  discard block
 block discarded – undo
77 77
     |
78 78
     */
79 79
     
80
-    'relations' => [
81
-        'user' => [
82
-            'list'       => [],
83
-            'find'       => [],
84
-            'findby'     => [],
85
-            'paginate'   => [],
86
-            'paginateby' => [],
87
-            'first'      => [],
88
-            'search'     => [],
89
-            'account'    => [],
90
-            'group'      => [],
91
-            'deleted'    => [],
92
-        ],
93
-        'permission' => [
94
-            'list'       => [],
95
-            'find'       => [],
96
-            'findby'     => [],
97
-            'paginate'   => [],
98
-            'paginateby' => [],
99
-            'first'      => [],
100
-            'search'     => [],
101
-            'deleted'    => [],
102
-        ],
103
-        'group' => [
104
-            'list'       => [],
105
-            'find'       => [],
106
-            'findby'     => [],
107
-            'paginate'   => [],
108
-            'paginateby' => [],
109
-            'first'      => [],
110
-            'search'     => [],
111
-            'deleted'    => [],
112
-        ],
113
-        'oauthClient' => [
114
-            'list'       => [],
115
-            'find'       => [],
116
-            'findby'     => [],
117
-            'paginate'   => [],
118
-            'paginateby' => [],
119
-            'first'      => [],
120
-            'search'     => [],
121
-            'account'    => [],
122
-            'group'      => [],
123
-            'deleted'    => [],
124
-        ],
125
-        'notification' => [
126
-            'list'   => [],
127
-            'unread' => [],
128
-        ],
129
-        'pushNotificationDevice' => [
130
-            'list'       => [],
131
-            'find'       => [],
132
-            'findby'     => [],
133
-            'paginate'   => [],
134
-            'paginateby' => [],
135
-            'first'      => [],
136
-            'search'     => [],
137
-            'deleted'    => [],
138
-        ],
139
-        'report' => [
140
-            'list'       => [],
141
-            'find'       => [],
142
-            'findby'     => [],
143
-            'paginate'   => [],
144
-            'paginateby' => [],
145
-            'first'      => [],
146
-            'search'     => [],
147
-            'deleted'    => [],
148
-        ],
149
-        'setting' => [
150
-            'list'       => [],
151
-            'find'       => [],
152
-            'findby'     => [],
153
-            'paginate'   => [],
154
-            'paginateby' => [],
155
-            'first'      => [],
156
-            'search'     => [],
157
-            'deleted'    => [],
158
-        ]
159
-    ],
80
+	'relations' => [
81
+		'user' => [
82
+			'list'       => [],
83
+			'find'       => [],
84
+			'findby'     => [],
85
+			'paginate'   => [],
86
+			'paginateby' => [],
87
+			'first'      => [],
88
+			'search'     => [],
89
+			'account'    => [],
90
+			'group'      => [],
91
+			'deleted'    => [],
92
+		],
93
+		'permission' => [
94
+			'list'       => [],
95
+			'find'       => [],
96
+			'findby'     => [],
97
+			'paginate'   => [],
98
+			'paginateby' => [],
99
+			'first'      => [],
100
+			'search'     => [],
101
+			'deleted'    => [],
102
+		],
103
+		'group' => [
104
+			'list'       => [],
105
+			'find'       => [],
106
+			'findby'     => [],
107
+			'paginate'   => [],
108
+			'paginateby' => [],
109
+			'first'      => [],
110
+			'search'     => [],
111
+			'deleted'    => [],
112
+		],
113
+		'oauthClient' => [
114
+			'list'       => [],
115
+			'find'       => [],
116
+			'findby'     => [],
117
+			'paginate'   => [],
118
+			'paginateby' => [],
119
+			'first'      => [],
120
+			'search'     => [],
121
+			'account'    => [],
122
+			'group'      => [],
123
+			'deleted'    => [],
124
+		],
125
+		'notification' => [
126
+			'list'   => [],
127
+			'unread' => [],
128
+		],
129
+		'pushNotificationDevice' => [
130
+			'list'       => [],
131
+			'find'       => [],
132
+			'findby'     => [],
133
+			'paginate'   => [],
134
+			'paginateby' => [],
135
+			'first'      => [],
136
+			'search'     => [],
137
+			'deleted'    => [],
138
+		],
139
+		'report' => [
140
+			'list'       => [],
141
+			'find'       => [],
142
+			'findby'     => [],
143
+			'paginate'   => [],
144
+			'paginateby' => [],
145
+			'first'      => [],
146
+			'search'     => [],
147
+			'deleted'    => [],
148
+		],
149
+		'setting' => [
150
+			'list'       => [],
151
+			'find'       => [],
152
+			'findby'     => [],
153
+			'paginate'   => [],
154
+			'paginateby' => [],
155
+			'first'      => [],
156
+			'search'     => [],
157
+			'deleted'    => [],
158
+		]
159
+	],
160 160
 
161
-    /*
161
+	/*
162 162
     |--------------------------------------------------------------------------
163 163
     | Cache Configurations
164 164
     |--------------------------------------------------------------------------
@@ -167,46 +167,46 @@  discard block
 block discarded – undo
167 167
     |
168 168
     */
169 169
 
170
-    'cache_config' => [
171
-        'oauthClient' => [
172
-            'cache' => [
173
-                'all',
174
-                'find',
175
-                'findBy',
176
-                'paginate',
177
-                'paginateBy',
178
-                'first',
179
-                'search',
180
-                'deleted'
181
-            ],
182
-            'clear' => [
183
-                'update'           => ['oauthClients', 'users', 'groups'],
184
-                'save'             => ['oauthClients', 'users', 'groups'],
185
-                'delete'           => ['oauthClients', 'users', 'groups'],
186
-                'restore'          => ['oauthClients', 'users', 'groups'],
187
-                'revoke'           => ['oauthClients', 'users', 'groups'],
188
-                'ubRevoke'         => ['oauthClients', 'users', 'groups'],
189
-                'regenerateSecret' => ['oauthClients', 'users', 'groups'],
190
-            ],
191
-        ],
192
-        'setting' => [
193
-            'cache' => [
194
-                'all',
195
-                'find',
196
-                'findBy',
197
-                'paginate',
198
-                'paginateBy',
199
-                'first',
200
-                'search',
201
-                'deleted'
202
-            ],
203
-            'clear' => [
204
-                'update'   => ['settings'],
205
-                'save'     => ['settings'],
206
-                'delete'   => ['settings'],
207
-                'restore'  => ['settings'],
208
-                'saveMany' => ['settings'],
209
-            ]
210
-        ]
211
-    ]
170
+	'cache_config' => [
171
+		'oauthClient' => [
172
+			'cache' => [
173
+				'all',
174
+				'find',
175
+				'findBy',
176
+				'paginate',
177
+				'paginateBy',
178
+				'first',
179
+				'search',
180
+				'deleted'
181
+			],
182
+			'clear' => [
183
+				'update'           => ['oauthClients', 'users', 'groups'],
184
+				'save'             => ['oauthClients', 'users', 'groups'],
185
+				'delete'           => ['oauthClients', 'users', 'groups'],
186
+				'restore'          => ['oauthClients', 'users', 'groups'],
187
+				'revoke'           => ['oauthClients', 'users', 'groups'],
188
+				'ubRevoke'         => ['oauthClients', 'users', 'groups'],
189
+				'regenerateSecret' => ['oauthClients', 'users', 'groups'],
190
+			],
191
+		],
192
+		'setting' => [
193
+			'cache' => [
194
+				'all',
195
+				'find',
196
+				'findBy',
197
+				'paginate',
198
+				'paginateBy',
199
+				'first',
200
+				'search',
201
+				'deleted'
202
+			],
203
+			'clear' => [
204
+				'update'   => ['settings'],
205
+				'save'     => ['settings'],
206
+				'delete'   => ['settings'],
207
+				'restore'  => ['settings'],
208
+				'saveMany' => ['settings'],
209
+			]
210
+		]
211
+	]
212 212
 ];
Please login to merge, or discard this patch.
src/ApiSkeletonServiceProvider.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -6,41 +6,41 @@
 block discarded – undo
6 6
 
7 7
 class ApiSkeletonServiceProvider extends ServiceProvider
8 8
 {
9
-    /**
10
-     * Perform post-registration booting of services.
11
-     *
12
-     * @return void
13
-     */
14
-    public function boot()
15
-    {
16
-        $this->publishes([
17
-            __DIR__.'/Modules'                               => app_path('Modules'),
18
-            __DIR__.'/Modules/Core/Resources/Assets'         => base_path('public/doc/assets'),
19
-            __DIR__.'/../lang'                               => base_path('resources/lang'),
20
-            __DIR__.'/../files/Handler.php'                  => app_path('Exceptions/Handler.php'),
21
-            __DIR__.'/../files/AuthServiceProvider.php'      => app_path('Providers/AuthServiceProvider.php'),
22
-            __DIR__.'/../files/BroadcastServiceProvider.php' => app_path('Providers/BroadcastServiceProvider.php'),
23
-            __DIR__.'/../files/Kernel.php'                   => app_path('Console/Kernel.php'),
24
-            __DIR__.'/../files/channels.php'                 => base_path('routes/channels.php'),
25
-            __DIR__.'/../phpcs.xml'                          => base_path('/phpcs.xml'),
26
-        ]);
9
+	/**
10
+	 * Perform post-registration booting of services.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function boot()
15
+	{
16
+		$this->publishes([
17
+			__DIR__.'/Modules'                               => app_path('Modules'),
18
+			__DIR__.'/Modules/Core/Resources/Assets'         => base_path('public/doc/assets'),
19
+			__DIR__.'/../lang'                               => base_path('resources/lang'),
20
+			__DIR__.'/../files/Handler.php'                  => app_path('Exceptions/Handler.php'),
21
+			__DIR__.'/../files/AuthServiceProvider.php'      => app_path('Providers/AuthServiceProvider.php'),
22
+			__DIR__.'/../files/BroadcastServiceProvider.php' => app_path('Providers/BroadcastServiceProvider.php'),
23
+			__DIR__.'/../files/Kernel.php'                   => app_path('Console/Kernel.php'),
24
+			__DIR__.'/../files/channels.php'                 => base_path('routes/channels.php'),
25
+			__DIR__.'/../phpcs.xml'                          => base_path('/phpcs.xml'),
26
+		]);
27 27
 
28
-        $this->publishes([
29
-            __DIR__.'/../config/skeleton.php' => config_path('skeleton.php'),
30
-            __DIR__.'/../files/auth.php'      => config_path('auth.php'),
31
-        ], 'config');
32
-    }
28
+		$this->publishes([
29
+			__DIR__.'/../config/skeleton.php' => config_path('skeleton.php'),
30
+			__DIR__.'/../files/auth.php'      => config_path('auth.php'),
31
+		], 'config');
32
+	}
33 33
 
34
-    /**
35
-     * Register any package services.
36
-     *
37
-     * @return void
38
-     */
39
-    public function register()
40
-    {
41
-        $this->mergeConfigFrom(
42
-            __DIR__.'/../config/skeleton.php',
43
-            'skeleton'
44
-        );
45
-    }
34
+	/**
35
+	 * Register any package services.
36
+	 *
37
+	 * @return void
38
+	 */
39
+	public function register()
40
+	{
41
+		$this->mergeConfigFrom(
42
+			__DIR__.'/../config/skeleton.php',
43
+			'skeleton'
44
+		);
45
+	}
46 46
 }
Please login to merge, or discard this patch.
src/Modules/Users/ModelObservers/AclUserObserver.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -6,62 +6,62 @@
 block discarded – undo
6 6
 class AclUserObserver
7 7
 {
8 8
 
9
-    public function saving($model)
10
-    {
11
-        if ($model->isDirty('profile_picture')) {
12
-            \Media::deleteImage($model->getOriginal('profile_picture'));
13
-        }
14
-    }
9
+	public function saving($model)
10
+	{
11
+		if ($model->isDirty('profile_picture')) {
12
+			\Media::deleteImage($model->getOriginal('profile_picture'));
13
+		}
14
+	}
15 15
 
16
-    public function saved($model)
17
-    {
18
-        //
19
-    }
16
+	public function saved($model)
17
+	{
18
+		//
19
+	}
20 20
 
21
-    public function creating($model)
22
-    {
23
-        //
24
-    }
21
+	public function creating($model)
22
+	{
23
+		//
24
+	}
25 25
 
26
-    public function created($model)
27
-    {
28
-        //
29
-    }
26
+	public function created($model)
27
+	{
28
+		//
29
+	}
30 30
 
31
-    public function updating($model)
32
-    {
33
-        //
34
-    }
31
+	public function updating($model)
32
+	{
33
+		//
34
+	}
35 35
 
36
-    public function updated($model)
37
-    {
38
-        if ($model->isDirty('blocked') && $model->blocked) {
39
-            $model->tokens()->each(function ($token) {
36
+	public function updated($model)
37
+	{
38
+		if ($model->isDirty('blocked') && $model->blocked) {
39
+			$model->tokens()->each(function ($token) {
40 40
 
41
-                \Core::users()->revokeAccessToken($token);
42
-            });
43
-        }
44
-    }
41
+				\Core::users()->revokeAccessToken($token);
42
+			});
43
+		}
44
+	}
45 45
 
46
-    public function deleting($model)
47
-    {
48
-        if ($model->getOriginal('id') == \Auth::id()) {
49
-            \ErrorHandler::noPermissions();
50
-        }
51
-    }
46
+	public function deleting($model)
47
+	{
48
+		if ($model->getOriginal('id') == \Auth::id()) {
49
+			\ErrorHandler::noPermissions();
50
+		}
51
+	}
52 52
 
53
-    public function deleted($model)
54
-    {
55
-        //
56
-    }
53
+	public function deleted($model)
54
+	{
55
+		//
56
+	}
57 57
 
58
-    public function restoring($model)
59
-    {
60
-        //
61
-    }
58
+	public function restoring($model)
59
+	{
60
+		//
61
+	}
62 62
 
63
-    public function restored($model)
64
-    {
65
-        //
66
-    }
63
+	public function restored($model)
64
+	{
65
+		//
66
+	}
67 67
 }
Please login to merge, or discard this patch.