Completed
Push — master ( 7e51b9...91e5b0 )
by Sherif
04:01 queued 01:33
created
src/Modules/Notifications/Notification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use Illuminate\Notifications\DatabaseNotification;
4 4
 use Illuminate\Database\Eloquent\SoftDeletes;
5 5
 
6
-class Notification extends DatabaseNotification{
6
+class Notification extends DatabaseNotification {
7 7
 
8 8
 	public function getCreatedAtAttribute($value)
9 9
 	{
Please login to merge, or discard this patch.
src/Modules/Notifications/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		Route::group([
55 55
 			'middleware' => 'web',
56 56
 			'namespace'  => $this->namespace,
57
-		], function ($router) {
57
+		], function($router) {
58 58
 			require module_path('notifications', 'Routes/web.php');
59 59
 		});
60 60
 	}
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 			'middleware' => 'api',
73 73
 			'namespace'  => $this->namespace,
74 74
 			'prefix'     => 'api',
75
-		], function ($router) {
75
+		], function($router) {
76 76
 			require module_path('notifications', 'Routes/api.php');
77 77
 		});
78 78
 	}
Please login to merge, or discard this patch.
src/Modules/Notifications/Repositories/NotificationRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	 */
71 71
 	public function notify($users, $notification, $notificationData = false)
72 72
 	{
73
-		$notification = 'App\Modules\Notifications\Notifications\\' . $notification;
73
+		$notification = 'App\Modules\Notifications\Notifications\\'.$notification;
74 74
 		\Notification::send($users, new $notification($notificationData));
75 75
 	}
76 76
 }
Please login to merge, or discard this patch.
src/Modules/Notifications/Repositories/PushNotificationDeviceRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 		$notificationBuilder = new PayloadNotificationBuilder($title);
50 50
 		$dataBuilder         = new PayloadDataBuilder();
51 51
 
52
-		$optionBuilder->setTimeToLive(60*20);
52
+		$optionBuilder->setTimeToLive(60 * 20);
53 53
 		$notificationBuilder->setBody($message);
54 54
 		$dataBuilder->addData($data);
55 55
 
Please login to merge, or discard this patch.
src/Modules/Notifications/PushNotificationDevice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use Illuminate\Database\Eloquent\Model;
4 4
 use Illuminate\Database\Eloquent\SoftDeletes;
5 5
 
6
-class PushNotificationDevice extends Model{
6
+class PushNotificationDevice extends Model {
7 7
 
8 8
 	use SoftDeletes;
9 9
 	protected $table    = 'push_notifications_devices';
Please login to merge, or discard this patch.
src/Modules/Notifications/Notifications/ConfirmEmail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,6 +43,6 @@
 block discarded – undo
43 43
 			->subject('Email verification')
44 44
 			->line('Email verification')
45 45
 			->line('To validate your email click on the button below')
46
-			->action('Verify your email', config('skeleton.confrim_email_url') . '/' . $notifiable->confirmation_code);
46
+			->action('Verify your email', config('skeleton.confrim_email_url').'/'.$notifiable->confirmation_code);
47 47
 	}
48 48
 }
49 49
\ No newline at end of file
Please login to merge, or discard this patch.
src/Modules/Notifications/Notifications/ResetPassword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
 			->subject('Reset passowrd')
46 46
 			->line('Reset passowrd')
47 47
 			->line('To reset your password click on the button below')
48
-			->action('Reset password', config('skeleton.reset_password_url') . '/' . $this->token);
48
+			->action('Reset password', config('skeleton.reset_password_url').'/'.$this->token);
49 49
 	}
50 50
 }
51 51
\ No newline at end of file
Please login to merge, or discard this patch.
Notifications/Http/Controllers/PushNotificationsDevicesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 	 * to preform actions like (add, edit ... etc).
13 13
 	 * @var string
14 14
 	 */
15
-	protected $model            = 'pushNotificationDevices';
15
+	protected $model = 'pushNotificationDevices';
16 16
 
17 17
 	/**
18 18
 	 * List of all route actions that the base api controller
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	 * to check before add.
27 27
 	 * @var array
28 28
 	 */
29
-	protected $validationRules  = [
29
+	protected $validationRules = [
30 30
 	'device_token' => 'required|string|max:255',
31 31
 	'user_id'      => 'required|exists:users,id'
32 32
 	];
Please login to merge, or discard this patch.
src/Modules/Notifications/Http/Controllers/NotificationsController.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
 	 * to preform actions like (add, edit ... etc).
13 13
 	 * @var string
14 14
 	 */
15
-	protected $model            = 'notifications';
15
+	protected $model = 'notifications';
16 16
 
17 17
 	/**
18 18
 	 * List of all route actions that the base api controller
Please login to merge, or discard this patch.