Completed
Push — master ( 8df45b...9d0042 )
by Sherif
02:28 queued 11s
created
lang/ar/passwords.php 1 patch
Indentation   +6 added lines, -6 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
     | Password Reminder Language Lines
8 8
     |--------------------------------------------------------------------------
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
     |
14 14
     */
15 15
 
16
-    'password' => 'يجب أن لا يقل طول كلمة السر عن ستة أحرف، كما يجب أن تتطابق مع حقل التأكيد',
17
-    'reset'    => 'تمت إعادة تعيين كلمة السر',
18
-    'sent'     => 'تم إرسال تفاصيل استعادة كلمة السر الخاصة بك إلى بريدك الإلكتروني',
19
-    'token'    => '.رمز استعادة كلمة السر الذي أدخلته غير صحيح',
20
-    'user'     => 'لم يتم العثور على أيّ حسابٍ بهذا العنوان الإلكتروني',
16
+	'password' => 'يجب أن لا يقل طول كلمة السر عن ستة أحرف، كما يجب أن تتطابق مع حقل التأكيد',
17
+	'reset'    => 'تمت إعادة تعيين كلمة السر',
18
+	'sent'     => 'تم إرسال تفاصيل استعادة كلمة السر الخاصة بك إلى بريدك الإلكتروني',
19
+	'token'    => '.رمز استعادة كلمة السر الذي أدخلته غير صحيح',
20
+	'user'     => 'لم يتم العثور على أيّ حسابٍ بهذا العنوان الإلكتروني',
21 21
 
22 22
 ];
Please login to merge, or discard this patch.
files/AuthServiceProvider.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -8,31 +8,31 @@
 block discarded – undo
8 8
 
9 9
 class AuthServiceProvider extends ServiceProvider
10 10
 {
11
-    /**
12
-     * The policy mappings for the application.
13
-     *
14
-     * @var array
15
-     */
16
-    protected $policies = [
17
-        'App\Model' => 'App\Policies\ModelPolicy',
18
-    ];
11
+	/**
12
+	 * The policy mappings for the application.
13
+	 *
14
+	 * @var array
15
+	 */
16
+	protected $policies = [
17
+		'App\Model' => 'App\Policies\ModelPolicy',
18
+	];
19 19
 
20
-    /**
21
-     * Register any authentication / authorization services.
22
-     *
23
-     * @return void
24
-     */
25
-    public function boot()
26
-    {
27
-        $this->registerPolicies();
20
+	/**
21
+	 * Register any authentication / authorization services.
22
+	 *
23
+	 * @return void
24
+	 */
25
+	public function boot()
26
+	{
27
+		$this->registerPolicies();
28 28
 
29
-        Passport::routes(function ($router) {
30
-            $router->forAuthorization();
31
-            $router->forAccessTokens();
32
-            $router->forPersonalAccessTokens();
33
-            $router->forTransientTokens();
34
-        });
35
-        Passport::tokensExpireIn(\Carbon\Carbon::now()->addMinutes(10));
36
-        Passport::refreshTokensExpireIn(\Carbon\Carbon::now()->addDays(10));
37
-    }
29
+		Passport::routes(function ($router) {
30
+			$router->forAuthorization();
31
+			$router->forAccessTokens();
32
+			$router->forPersonalAccessTokens();
33
+			$router->forTransientTokens();
34
+		});
35
+		Passport::tokensExpireIn(\Carbon\Carbon::now()->addMinutes(10));
36
+		Passport::refreshTokensExpireIn(\Carbon\Carbon::now()->addDays(10));
37
+	}
38 38
 }
Please login to merge, or discard this patch.
files/BroadcastServiceProvider.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@
 block discarded – undo
7 7
 
8 8
 class BroadcastServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * Bootstrap any application services.
12
-     *
13
-     * @return void
14
-     */
15
-    public function boot()
16
-    {
17
-        Broadcast::routes(['middleware' => ['auth:api']]);
10
+	/**
11
+	 * Bootstrap any application services.
12
+	 *
13
+	 * @return void
14
+	 */
15
+	public function boot()
16
+	{
17
+		Broadcast::routes(['middleware' => ['auth:api']]);
18 18
 
19
-        require base_path('routes/channels.php');
20
-    }
19
+		require base_path('routes/channels.php');
20
+	}
21 21
 }
Please login to merge, or discard this patch.
files/channels.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,5 +12,5 @@
 block discarded – undo
12 12
 */
13 13
 
14 14
 Broadcast::channel('users.{id}', function ($user, $id) {
15
-    return (int) $user->id === (int) $id;
15
+	return (int) $user->id === (int) $id;
16 16
 });
Please login to merge, or discard this patch.
src/Modules/Notifications/Notification.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -5,23 +5,23 @@
 block discarded – undo
5 5
 class Notification extends DatabaseNotification
6 6
 {
7 7
 
8
-    public function getCreatedAtAttribute($value)
9
-    {
10
-        return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
11
-    }
8
+	public function getCreatedAtAttribute($value)
9
+	{
10
+		return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
11
+	}
12 12
 
13
-    public function getUpdatedAtAttribute($value)
14
-    {
15
-        return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
16
-    }
13
+	public function getUpdatedAtAttribute($value)
14
+	{
15
+		return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
16
+	}
17 17
 
18
-    public function getDeletedAtAttribute($value)
19
-    {
20
-        return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
21
-    }
18
+	public function getDeletedAtAttribute($value)
19
+	{
20
+		return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString();
21
+	}
22 22
 
23
-    public function getReadAtAttribute($value)
24
-    {
25
-        return ! $value ? false : \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
26
-    }
23
+	public function getReadAtAttribute($value)
24
+	{
25
+		return ! $value ? false : \Carbon\Carbon::parse($value)->addHours(\Session::get('timeZoneDiff'))->toDateTimeString();
26
+	}
27 27
 }
Please login to merge, or discard this patch.
src/Modules/Notifications/Database/Factories/NotificationFactory.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $factory->define(App\Modules\Notifications\Notification::class, function (Faker\Generator $faker) {
4
-    return [
5
-        'type'            => '',
6
-        'notifiable_type' => '',
7
-        'notifiable_id'   => '',
8
-        'data'            => '',
9
-        'read_at'         => null,
10
-        'created_at'      => $faker->dateTimeBetween('-1 years', 'now'),
11
-        'updated_at'      => $faker->dateTimeBetween('-1 years', 'now')
12
-    ];
4
+	return [
5
+		'type'            => '',
6
+		'notifiable_type' => '',
7
+		'notifiable_id'   => '',
8
+		'data'            => '',
9
+		'read_at'         => null,
10
+		'created_at'      => $faker->dateTimeBetween('-1 years', 'now'),
11
+		'updated_at'      => $faker->dateTimeBetween('-1 years', 'now')
12
+	];
13 13
 });
Please login to merge, or discard this patch.
src/Modules/Notifications/Resources/Lang/ar/notifications.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     
5
-    /**
6
-     * Here goes your notification messages.
7
-     */
5
+	/**
6
+	 * Here goes your notification messages.
7
+	 */
8 8
 
9 9
 ];
Please login to merge, or discard this patch.
src/Modules/Notifications/Providers/RouteServiceProvider.php 1 patch
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -7,73 +7,73 @@
 block discarded – undo
7 7
 
8 8
 class RouteServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * This namespace is applied to your controller routes.
12
-     *
13
-     * In addition, it is set as the URL generator's root namespace.
14
-     *
15
-     * @var string
16
-     */
17
-    protected $namespace = 'App\Modules\Notifications\Http\Controllers';
10
+	/**
11
+	 * This namespace is applied to your controller routes.
12
+	 *
13
+	 * In addition, it is set as the URL generator's root namespace.
14
+	 *
15
+	 * @var string
16
+	 */
17
+	protected $namespace = 'App\Modules\Notifications\Http\Controllers';
18 18
 
19
-    /**
20
-     * Define your route model bindings, pattern filters, etc.
21
-     *
22
-     * @return void
23
-     */
24
-    public function boot()
25
-    {
26
-        //
19
+	/**
20
+	 * Define your route model bindings, pattern filters, etc.
21
+	 *
22
+	 * @return void
23
+	 */
24
+	public function boot()
25
+	{
26
+		//
27 27
 
28
-        parent::boot();
29
-    }
28
+		parent::boot();
29
+	}
30 30
 
31
-    /**
32
-     * Define the routes for the module.
33
-     *
34
-     * @return void
35
-     */
36
-    public function map()
37
-    {
38
-        $this->mapWebRoutes();
31
+	/**
32
+	 * Define the routes for the module.
33
+	 *
34
+	 * @return void
35
+	 */
36
+	public function map()
37
+	{
38
+		$this->mapWebRoutes();
39 39
 
40
-        $this->mapApiRoutes();
40
+		$this->mapApiRoutes();
41 41
 
42
-        //
43
-    }
42
+		//
43
+	}
44 44
 
45
-    /**
46
-     * Define the "web" routes for the module.
47
-     *
48
-     * These routes all receive session state, CSRF protection, etc.
49
-     *
50
-     * @return void
51
-     */
52
-    protected function mapWebRoutes()
53
-    {
54
-        Route::group([
55
-            'middleware' => 'web',
56
-            'namespace'  => $this->namespace,
57
-        ], function ($router) {
58
-            require module_path('notifications', 'Routes/web.php');
59
-        });
60
-    }
45
+	/**
46
+	 * Define the "web" routes for the module.
47
+	 *
48
+	 * These routes all receive session state, CSRF protection, etc.
49
+	 *
50
+	 * @return void
51
+	 */
52
+	protected function mapWebRoutes()
53
+	{
54
+		Route::group([
55
+			'middleware' => 'web',
56
+			'namespace'  => $this->namespace,
57
+		], function ($router) {
58
+			require module_path('notifications', 'Routes/web.php');
59
+		});
60
+	}
61 61
 
62
-    /**
63
-     * Define the "api" routes for the module.
64
-     *
65
-     * These routes are typically stateless.
66
-     *
67
-     * @return void
68
-     */
69
-    protected function mapApiRoutes()
70
-    {
71
-        Route::group([
72
-            'middleware' => 'api',
73
-            'namespace'  => $this->namespace,
74
-            'prefix'     => 'api',
75
-        ], function ($router) {
76
-            require module_path('notifications', 'Routes/api.php');
77
-        });
78
-    }
62
+	/**
63
+	 * Define the "api" routes for the module.
64
+	 *
65
+	 * These routes are typically stateless.
66
+	 *
67
+	 * @return void
68
+	 */
69
+	protected function mapApiRoutes()
70
+	{
71
+		Route::group([
72
+			'middleware' => 'api',
73
+			'namespace'  => $this->namespace,
74
+			'prefix'     => 'api',
75
+		], function ($router) {
76
+			require module_path('notifications', 'Routes/api.php');
77
+		});
78
+	}
79 79
 }
Please login to merge, or discard this patch.
src/Modules/Notifications/Console/Commands/MakeNotificationsCommand.php 1 patch
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -4,65 +4,65 @@
 block discarded – undo
4 4
 
5 5
 class MakeNotificationsCommand extends GeneratorCommand
6 6
 {
7
-    /**
8
-     * The name and signature of the console command.
9
-     *
10
-     * @var string
11
-     */
12
-    protected $signature = 'make:module:notification
7
+	/**
8
+	 * The name and signature of the console command.
9
+	 *
10
+	 * @var string
11
+	 */
12
+	protected $signature = 'make:module:notification
13 13
 		{name : The name of the notification class.}';
14
-    /**
15
-     * The console command description.
16
-     *
17
-     * @var string
18
-     */
19
-    protected $description = 'Create a new module notification class';
20
-    /**
21
-     * String to store the command type.
22
-     *
23
-     * @var string
24
-     */
25
-    protected $type = 'Module notification';
26
-    /**
27
-     * Get the stub file for the generator.
28
-     *
29
-     * @return string
30
-     */
31
-    protected function getStub()
32
-    {
33
-        return __DIR__.'/stubs/notification.stub';
34
-    }
35
-    /**
36
-     * Get the destination class path.
37
-     *
38
-     * @param string $name
39
-     *
40
-     * @return string
41
-     */
42
-    protected function getPath($name)
43
-    {
44
-        return module_path('notifications', 'Notifications/'.$name.'.php');
45
-    }
46
-    /**
47
-     * Parse the name and format according to the root namespace.
48
-     *
49
-     * @param string $name
50
-     *
51
-     * @return string
52
-     */
53
-    protected function qualifyClass($name)
54
-    {
55
-        return $name;
56
-    }
57
-    /**
58
-     * Replace namespace in notification stub.
59
-     *
60
-     * @param string $name
61
-     *
62
-     * @return string
63
-     */
64
-    protected function getNamespace($name)
65
-    {
66
-        return module_class('notifications', 'Notifications');
67
-    }
14
+	/**
15
+	 * The console command description.
16
+	 *
17
+	 * @var string
18
+	 */
19
+	protected $description = 'Create a new module notification class';
20
+	/**
21
+	 * String to store the command type.
22
+	 *
23
+	 * @var string
24
+	 */
25
+	protected $type = 'Module notification';
26
+	/**
27
+	 * Get the stub file for the generator.
28
+	 *
29
+	 * @return string
30
+	 */
31
+	protected function getStub()
32
+	{
33
+		return __DIR__.'/stubs/notification.stub';
34
+	}
35
+	/**
36
+	 * Get the destination class path.
37
+	 *
38
+	 * @param string $name
39
+	 *
40
+	 * @return string
41
+	 */
42
+	protected function getPath($name)
43
+	{
44
+		return module_path('notifications', 'Notifications/'.$name.'.php');
45
+	}
46
+	/**
47
+	 * Parse the name and format according to the root namespace.
48
+	 *
49
+	 * @param string $name
50
+	 *
51
+	 * @return string
52
+	 */
53
+	protected function qualifyClass($name)
54
+	{
55
+		return $name;
56
+	}
57
+	/**
58
+	 * Replace namespace in notification stub.
59
+	 *
60
+	 * @param string $name
61
+	 *
62
+	 * @return string
63
+	 */
64
+	protected function getNamespace($name)
65
+	{
66
+		return module_class('notifications', 'Notifications');
67
+	}
68 68
 }
Please login to merge, or discard this patch.