Completed
Push — master ( 7e51b9...91e5b0 )
by Sherif
04:01 queued 01:33
created
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/ResetPassword.php 2 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	 * Get the notification's delivery channels.
25 25
 	 *
26 26
 	 * @param  mixed  $notifiable
27
-	 * @return array
27
+	 * @return string[]
28 28
 	 */
29 29
 	public function via($notifiable)
30 30
 	{
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.
Modules/Notifications/Database/Factories/PushNotificationDeviceFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$factory->define(App\Modules\Notifications\PushNotificationDevice::class, function (Faker\Generator $faker) {
3
+$factory->define(App\Modules\Notifications\PushNotificationDevice::class, function(Faker\Generator $faker) {
4 4
 	return [
5 5
 		'device_token' => $faker->sha1(),
6 6
 		'user_id'      => $faker->randomDigitNotNull(),
Please login to merge, or discard this patch.
src/Modules/Notifications/Database/Factories/NotificationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$factory->define(App\Modules\Notifications\Notification::class, function (Faker\Generator $faker) {
3
+$factory->define(App\Modules\Notifications\Notification::class, function(Faker\Generator $faker) {
4 4
 	return [
5 5
 		'type'            => '',
6 6
 		'notifiable_type' => '',
Please login to merge, or discard this patch.
src/Modules/Notifications/Database/Seeds/AssignRelationsSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 		/**
19 19
 		 * Assign the permissions to the admin group.
20 20
 		 */
21
-		\DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['notifications', 'pushNotificationDevices'])->each(function ($permission) use ($adminGroupId) {
21
+		\DB::table('permissions')->orderBy('created_at', 'asc')->whereIn('model', ['notifications', 'pushNotificationDevices'])->each(function($permission) use ($adminGroupId) {
22 22
 			\DB::table('groups_permissions')->insert(
23 23
 				[
24 24
 				'permission_id' => $permission->id,
Please login to merge, or discard this patch.
src/Modules/Notifications/Database/Seeds/ClearDataSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 	 */
14 14
 	public function run()
15 15
 	{
16
-		$permissions  = \DB::table('permissions')->whereIn('model', ['notifications', 'pushNotificationDevices']);
16
+		$permissions = \DB::table('permissions')->whereIn('model', ['notifications', 'pushNotificationDevices']);
17 17
 		\DB::table('groups_permissions')->whereIn('permission_id', $permissions->pluck('id'))->delete();
18 18
 		$permissions->delete();
19 19
 	}
Please login to merge, or discard this patch.
Database/Migrations/2017_11_22_162811_create_failed_jobs_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 	 */
14 14
 	public function up()
15 15
 	{
16
-		Schema::create('failed_jobs', function (Blueprint $table) {
16
+		Schema::create('failed_jobs', function(Blueprint $table) {
17 17
 			$table->bigIncrements('id');
18 18
 			$table->text('connection');
19 19
 			$table->text('queue');
Please login to merge, or discard this patch.