Completed
Push — master ( 91df31...876b8b )
by Sherif
01:12
created
src/Modules/Reporting/Report.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,16 +9,16 @@
 block discarded – undo
9 9
 class Report extends Model
10 10
 {
11 11
 
12
-    use SoftDeletes;
13
-    protected $table = 'reports';
14
-    protected $dates = ['created_at', 'updated_at', 'deleted_at'];
15
-    protected $hidden = ['deleted_at'];
16
-    protected $guarded = ['id'];
17
-    public $fillable = ['report_name', 'view_name'];
12
+	use SoftDeletes;
13
+	protected $table = 'reports';
14
+	protected $dates = ['created_at', 'updated_at', 'deleted_at'];
15
+	protected $hidden = ['deleted_at'];
16
+	protected $guarded = ['id'];
17
+	public $fillable = ['report_name', 'view_name'];
18 18
     
19
-    public static function boot()
20
-    {
21
-        parent::boot();
22
-        Report::observe(ReportObserver::class);
23
-    }
19
+	public static function boot()
20
+	{
21
+		parent::boot();
22
+		Report::observe(ReportObserver::class);
23
+	}
24 24
 }
Please login to merge, or discard this patch.
src/Modules/Users/Routes/api.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -15,29 +15,29 @@
 block discarded – undo
15 15
 
16 16
 Route::group(['prefix' => 'users'], function () {
17 17
     
18
-    Route::get('/', 'UserController@index');
19
-    Route::get('{id}', 'UserController@show');
20
-    Route::post('/', 'UserController@store');
21
-    Route::patch('{id}', 'UserController@update');
22
-    Route::delete('{id}', 'UserController@destroy');
23
-    Route::patch('restore/{id}', 'UserController@restore');
24
-    Route::patch('block/{id}', 'UserController@block');
25
-    Route::patch('unblock/{id}', 'UserController@unblock');
26
-    Route::patch('assign/roles/{id}', 'UserController@assignRoles');
18
+	Route::get('/', 'UserController@index');
19
+	Route::get('{id}', 'UserController@show');
20
+	Route::post('/', 'UserController@store');
21
+	Route::patch('{id}', 'UserController@update');
22
+	Route::delete('{id}', 'UserController@destroy');
23
+	Route::patch('restore/{id}', 'UserController@restore');
24
+	Route::patch('block/{id}', 'UserController@block');
25
+	Route::patch('unblock/{id}', 'UserController@unblock');
26
+	Route::patch('assign/roles/{id}', 'UserController@assignRoles');
27 27
 
28
-    Route::group(['prefix' => 'account'], function () {
28
+	Route::group(['prefix' => 'account'], function () {
29 29
 
30
-        Route::get('my', 'UserController@account');
31
-        Route::get('logout', 'UserController@logout');
32
-        Route::post('refresh/token', 'UserController@refreshToken');
33
-        Route::post('save', 'UserController@saveProfile');
34
-        Route::post('register', 'UserController@register');
35
-        Route::post('login', 'UserController@login');
36
-        Route::post('login/social', 'UserController@loginSocial');
37
-        Route::post('send/reset', 'UserController@sendReset');
38
-        Route::post('reset/password', 'UserController@resetPassword');
39
-        Route::post('change/password', 'UserController@changePassword');
40
-        Route::post('confirm/email', 'UserController@confirmEmail');
41
-        Route::post('resend/email/confirmation', 'UserController@resendEmailConfirmation');
42
-    });
30
+		Route::get('my', 'UserController@account');
31
+		Route::get('logout', 'UserController@logout');
32
+		Route::post('refresh/token', 'UserController@refreshToken');
33
+		Route::post('save', 'UserController@saveProfile');
34
+		Route::post('register', 'UserController@register');
35
+		Route::post('login', 'UserController@login');
36
+		Route::post('login/social', 'UserController@loginSocial');
37
+		Route::post('send/reset', 'UserController@sendReset');
38
+		Route::post('reset/password', 'UserController@resetPassword');
39
+		Route::post('change/password', 'UserController@changePassword');
40
+		Route::post('confirm/email', 'UserController@confirmEmail');
41
+		Route::post('resend/email/confirmation', 'UserController@resendEmailConfirmation');
42
+	});
43 43
 });
Please login to merge, or discard this patch.
src/Modules/Permissions/Permission.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -10,21 +10,21 @@
 block discarded – undo
10 10
 class Permission extends Model
11 11
 {
12 12
 
13
-    use SoftDeletes;
14
-    protected $table = 'permissions';
15
-    protected $dates = ['created_at', 'updated_at', 'deleted_at'];
16
-    protected $hidden = ['deleted_at'];
17
-    protected $guarded = ['id'];
18
-    public $fillable = ['name', 'model'];
13
+	use SoftDeletes;
14
+	protected $table = 'permissions';
15
+	protected $dates = ['created_at', 'updated_at', 'deleted_at'];
16
+	protected $hidden = ['deleted_at'];
17
+	protected $guarded = ['id'];
18
+	public $fillable = ['name', 'model'];
19 19
     
20
-    public function roles()
21
-    {
22
-        return $this->belongsToMany(Role::class, 'permission_role', 'permission_id', 'role_id')->whereNull('permission_role.deleted_at')->withTimestamps();
23
-    }
20
+	public function roles()
21
+	{
22
+		return $this->belongsToMany(Role::class, 'permission_role', 'permission_id', 'role_id')->whereNull('permission_role.deleted_at')->withTimestamps();
23
+	}
24 24
 
25
-    public static function boot()
26
-    {
27
-        parent::boot();
28
-        Permission::observe(PermissionObserver::class);
29
-    }
25
+	public static function boot()
26
+	{
27
+		parent::boot();
28
+		Permission::observe(PermissionObserver::class);
29
+	}
30 30
 }
Please login to merge, or discard this patch.
src/Modules/Roles/Role.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -11,26 +11,26 @@
 block discarded – undo
11 11
 class Role extends Model
12 12
 {
13 13
 
14
-    use SoftDeletes;
15
-    protected $table = 'roles';
16
-    protected $dates = ['created_at', 'updated_at', 'deleted_at'];
17
-    protected $hidden = ['deleted_at'];
18
-    protected $guarded = ['id'];
19
-    public $fillable = ['name'];
14
+	use SoftDeletes;
15
+	protected $table = 'roles';
16
+	protected $dates = ['created_at', 'updated_at', 'deleted_at'];
17
+	protected $hidden = ['deleted_at'];
18
+	protected $guarded = ['id'];
19
+	public $fillable = ['name'];
20 20
 
21
-    public function users()
22
-    {
23
-        return $this->belongsToMany(AclUser::class, 'role_user', 'role_id', 'user_id')->whereNull('role_user.deleted_at')->withTimestamps();
24
-    }
21
+	public function users()
22
+	{
23
+		return $this->belongsToMany(AclUser::class, 'role_user', 'role_id', 'user_id')->whereNull('role_user.deleted_at')->withTimestamps();
24
+	}
25 25
 
26
-    public function permissions()
27
-    {
28
-        return $this->belongsToMany(Permission::class, 'permission_role', 'role_id', 'permission_id')->whereNull('permission_role.deleted_at')->withTimestamps();
29
-    }
26
+	public function permissions()
27
+	{
28
+		return $this->belongsToMany(Permission::class, 'permission_role', 'role_id', 'permission_id')->whereNull('permission_role.deleted_at')->withTimestamps();
29
+	}
30 30
 
31
-    public static function boot()
32
-    {
33
-        parent::boot();
34
-        Role::observe(RoleObserver::class);
35
-    }
31
+	public static function boot()
32
+	{
33
+		parent::boot();
34
+		Role::observe(RoleObserver::class);
35
+	}
36 36
 }
Please login to merge, or discard this patch.
src/Modules/Roles/Routes/api.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
 
16 16
 Route::group(['prefix' => 'roles'], function () {
17 17
 
18
-    Route::get('/', 'RoleController@index');
19
-    Route::get('{id}', 'RoleController@show');
20
-    Route::post('/', 'RoleController@store');
21
-    Route::patch('{id}', 'RoleController@update');
22
-    Route::delete('{id}', 'RoleController@destroy');
23
-    Route::patch('restore/{id}', 'RoleController@restore');
24
-    Route::patch('assign/permissions/{id}', 'RoleController@assignPermissions');
18
+	Route::get('/', 'RoleController@index');
19
+	Route::get('{id}', 'RoleController@show');
20
+	Route::post('/', 'RoleController@store');
21
+	Route::patch('{id}', 'RoleController@update');
22
+	Route::delete('{id}', 'RoleController@destroy');
23
+	Route::patch('restore/{id}', 'RoleController@restore');
24
+	Route::patch('assign/permissions/{id}', 'RoleController@assignPermissions');
25 25
 });
Please login to merge, or discard this patch.
src/Modules/Notifications/Routes/api.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 
14 14
 Route::group(['prefix' => 'notifications'], function () {
15 15
 
16
-    Route::get('/', 'NotificationController@index');
17
-    Route::get('unread', 'NotificationController@unread');
18
-    Route::patch('read/{id}', 'NotificationController@markAsRead');
19
-    Route::patch('read/all', 'NotificationController@markAllAsRead');
16
+	Route::get('/', 'NotificationController@index');
17
+	Route::get('unread', 'NotificationController@unread');
18
+	Route::patch('read/{id}', 'NotificationController@markAsRead');
19
+	Route::patch('read/all', 'NotificationController@markAllAsRead');
20 20
 });
Please login to merge, or discard this patch.
src/Modules/PushNotificationDevices/PushNotificationDevice.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -10,32 +10,32 @@
 block discarded – undo
10 10
 class PushNotificationDevice extends Model
11 11
 {
12 12
 
13
-    use SoftDeletes;
14
-    protected $table = 'push_notification_devices';
15
-    protected $dates = ['created_at', 'updated_at', 'deleted_at'];
16
-    protected $hidden = ['deleted_at', 'access_token'];
17
-    protected $guarded = ['id'];
18
-    public $fillable = ['device_token', 'user_id', 'access_token'];
13
+	use SoftDeletes;
14
+	protected $table = 'push_notification_devices';
15
+	protected $dates = ['created_at', 'updated_at', 'deleted_at'];
16
+	protected $hidden = ['deleted_at', 'access_token'];
17
+	protected $guarded = ['id'];
18
+	public $fillable = ['device_token', 'user_id', 'access_token'];
19 19
     
20
-    public function user()
21
-    {
22
-        return $this->belongsTo(AclUser::class);
23
-    }
20
+	public function user()
21
+	{
22
+		return $this->belongsTo(AclUser::class);
23
+	}
24 24
 
25
-    /**
26
-     * Encrypt the access_token attribute before
27
-     * saving it in the storage.
28
-     *
29
-     * @param string $value
30
-     */
31
-    public function setLoginTokenAttribute($value)
32
-    {
33
-        $this->attributes['access_token'] = encrypt($value);
34
-    }
25
+	/**
26
+	 * Encrypt the access_token attribute before
27
+	 * saving it in the storage.
28
+	 *
29
+	 * @param string $value
30
+	 */
31
+	public function setLoginTokenAttribute($value)
32
+	{
33
+		$this->attributes['access_token'] = encrypt($value);
34
+	}
35 35
 
36
-    public static function boot()
37
-    {
38
-        parent::boot();
39
-        PushNotificationDevice::observe(PushNotificationDeviceObserver::class);
40
-    }
36
+	public static function boot()
37
+	{
38
+		parent::boot();
39
+		PushNotificationDevice::observe(PushNotificationDeviceObserver::class);
40
+	}
41 41
 }
Please login to merge, or discard this patch.
Database/Seeds/PushNotificationDevicesTableSeeder.php 1 patch
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -6,64 +6,64 @@
 block discarded – undo
6 6
 
7 7
 class PushNotificationDevicesTableSeeder 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
-                 * pushNotificationDevices model permissions.
23
-                 */
24
-                [
25
-                'name'       => 'index',
26
-                'model'      => 'pushNotificationDevice',
27
-                'created_at' => \DB::raw('NOW()'),
28
-                'updated_at' => \DB::raw('NOW()')
29
-                ],
30
-                [
31
-                'name'       => 'show',
32
-                'model'      => 'pushNotificationDevice',
33
-                'created_at' => \DB::raw('NOW()'),
34
-                'updated_at' => \DB::raw('NOW()')
35
-                ],
36
-                [
37
-                'name'       => 'store',
38
-                'model'      => 'pushNotificationDevice',
39
-                'created_at' => \DB::raw('NOW()'),
40
-                'updated_at' => \DB::raw('NOW()')
41
-                ],
42
-                [
43
-                'name'       => 'update',
44
-                'model'      => 'pushNotificationDevice',
45
-                'created_at' => \DB::raw('NOW()'),
46
-                'updated_at' => \DB::raw('NOW()')
47
-                ],
48
-                [
49
-                'name'       => 'destroy',
50
-                'model'      => 'pushNotificationDevice',
51
-                'created_at' => \DB::raw('NOW()'),
52
-                'updated_at' => \DB::raw('NOW()')
53
-                ],
54
-                [
55
-                'name'       => 'deleted',
56
-                'model'      => 'pushNotificationDevice',
57
-                'created_at' => \DB::raw('NOW()'),
58
-                'updated_at' => \DB::raw('NOW()')
59
-                ],
60
-                [
61
-                'name'       => 'restore',
62
-                'model'      => 'pushNotificationDevice',
63
-                'created_at' => \DB::raw('NOW()'),
64
-                'updated_at' => \DB::raw('NOW()')
65
-                ]
66
-            ]
67
-        );
68
-    }
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
+				 * pushNotificationDevices model permissions.
23
+				 */
24
+				[
25
+				'name'       => 'index',
26
+				'model'      => 'pushNotificationDevice',
27
+				'created_at' => \DB::raw('NOW()'),
28
+				'updated_at' => \DB::raw('NOW()')
29
+				],
30
+				[
31
+				'name'       => 'show',
32
+				'model'      => 'pushNotificationDevice',
33
+				'created_at' => \DB::raw('NOW()'),
34
+				'updated_at' => \DB::raw('NOW()')
35
+				],
36
+				[
37
+				'name'       => 'store',
38
+				'model'      => 'pushNotificationDevice',
39
+				'created_at' => \DB::raw('NOW()'),
40
+				'updated_at' => \DB::raw('NOW()')
41
+				],
42
+				[
43
+				'name'       => 'update',
44
+				'model'      => 'pushNotificationDevice',
45
+				'created_at' => \DB::raw('NOW()'),
46
+				'updated_at' => \DB::raw('NOW()')
47
+				],
48
+				[
49
+				'name'       => 'destroy',
50
+				'model'      => 'pushNotificationDevice',
51
+				'created_at' => \DB::raw('NOW()'),
52
+				'updated_at' => \DB::raw('NOW()')
53
+				],
54
+				[
55
+				'name'       => 'deleted',
56
+				'model'      => 'pushNotificationDevice',
57
+				'created_at' => \DB::raw('NOW()'),
58
+				'updated_at' => \DB::raw('NOW()')
59
+				],
60
+				[
61
+				'name'       => 'restore',
62
+				'model'      => 'pushNotificationDevice',
63
+				'created_at' => \DB::raw('NOW()'),
64
+				'updated_at' => \DB::raw('NOW()')
65
+				]
66
+			]
67
+		);
68
+	}
69 69
 }
Please login to merge, or discard this patch.
src/Modules/PushNotificationDevices/Routes/api.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
 
16 16
 Route::group(['prefix' => 'push/notification/devices'], function () {
17 17
         
18
-    Route::get('/', 'PushNotificationDeviceController@index');
19
-    Route::get('{id}', 'PushNotificationDeviceController@show');
20
-    Route::post('/', 'PushNotificationDeviceController@store');
21
-    Route::patch('{id}', 'PushNotificationDeviceController@update');
22
-    Route::delete('{id}', 'PushNotificationDeviceController@destroy');
23
-    Route::patch('restore/{id}', 'PushNotificationDeviceController@restore');
24
-    Route::post('register/device', 'PushNotificationDeviceController@registerDevice');
18
+	Route::get('/', 'PushNotificationDeviceController@index');
19
+	Route::get('{id}', 'PushNotificationDeviceController@show');
20
+	Route::post('/', 'PushNotificationDeviceController@store');
21
+	Route::patch('{id}', 'PushNotificationDeviceController@update');
22
+	Route::delete('{id}', 'PushNotificationDeviceController@destroy');
23
+	Route::patch('restore/{id}', 'PushNotificationDeviceController@restore');
24
+	Route::post('register/device', 'PushNotificationDeviceController@registerDevice');
25 25
 });
Please login to merge, or discard this patch.