Skip to content

Commit ff91d26

Browse files
curtisdelicataStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 2c2a528 commit ff91d26

37 files changed

+72
-173
lines changed

src/Events/GedComProgressSent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
use Illuminate\Broadcasting\Channel;
66
use Illuminate\Broadcasting\InteractsWithSockets;
7-
use Illuminate\Broadcasting\PresenceChannel;
8-
use Illuminate\Broadcasting\PrivateChannel;
97
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
108
use Illuminate\Foundation\Events\Dispatchable;
119
use Illuminate\Queue\SerializesModels;
1210

1311
class GedComProgressSent implements ShouldBroadcast
1412
{
15-
use Dispatchable, InteractsWithSockets, SerializesModels;
13+
use Dispatchable;
14+
use InteractsWithSockets;
15+
use SerializesModels;
1616

1717
public $slug;
1818
public $total;

src/Models/Addr.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44

55
use Illuminate\Database\Eloquent\Model;
66

7-
87
/**
9-
* @property int $id
8+
* @property int $id
109
* @property string $adr1
1110
* @property string $adr2
1211
* @property string $city
@@ -18,8 +17,6 @@
1817
*/
1918
class Addr extends Model
2019
{
21-
22-
2320
/**
2421
* The "type" of the auto-incrementing ID.
2522
*

src/Models/Author.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44

55
use Illuminate\Database\Eloquent\Model;
66

7-
87
class Author extends Model
98
{
10-
11-
129
protected $fillable = ['description', 'is_active', 'name'];
1310

1411
protected $attributes = ['is_active' => false];

src/Models/Chan.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,17 @@
44

55
use Illuminate\Database\Eloquent\Model;
66

7-
87
/**
9-
* @property int $id
8+
* @property int $id
109
* @property string $group
11-
* @property int $gid
10+
* @property int $gid
1211
* @property string $date
1312
* @property string $time
1413
* @property string $created_at
1514
* @property string $updated_at
1615
*/
1716
class Chan extends Model
1817
{
19-
20-
2118
/**
2219
* The "type" of the auto-incrementing ID.
2320
*

src/Models/Citation.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
namespace GenealogiaWebsite\LaravelGedcom\Models;
44

5-
use GenealogiaWebsite\LaravelGedcom\Models\Source;
65
use Illuminate\Database\Eloquent\Model;
76

8-
97
class Citation extends Model
108
{
11-
12-
139
protected $fillable = ['name', 'description', 'repository_id', 'volume', 'page', 'is_active', 'confidence', 'source_id'];
1410

1511
protected $attributes = ['is_active' => false];

src/Models/Event.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
class Event extends Model
88
{
9-
109
protected $gedcom_event_names = [];
1110

1211
public function place()

src/Models/Family.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44

55
use Illuminate\Database\Eloquent\Model;
66
use LaravelEnso\People\Models\Person;
7-
// use GenealogiaWebsite\LaravelGedcom\Models\Person;
87

8+
// use GenealogiaWebsite\LaravelGedcom\Models\Person;
99

1010
class Family extends Model
1111
{
12-
13-
1412
protected $fillable = ['description', 'is_active', 'husband_id', 'wife_id', 'type_id', 'chan', 'nchi', 'rin'];
1513

1614
protected $attributes = ['is_active' => false];
@@ -61,13 +59,14 @@ public function addEvent($title, $date, $place, $description = '')
6159
$event = FamilyEvent::updateOrCreate(
6260
[
6361
'family_id' => $this->id,
64-
'title' => $title,
62+
'title' => $title,
6563
],
6664
[
67-
'family_id' => $this->id,
68-
'title' => $title,
65+
'family_id' => $this->id,
66+
'title' => $title,
6967
'description' => $description,
70-
]);
68+
]
69+
);
7170
if ($date) {
7271
$event->date = $date;
7372
$event->save();

src/Models/FamilyEvent.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
namespace GenealogiaWebsite\LaravelGedcom\Models;
44

5-
use Illuminate\Database\Eloquent\SoftDeletes;
6-
75
use GenealogiaWebsite\LaravelGedcom\Observers\EventActionsObserver;
6+
use Illuminate\Database\Eloquent\SoftDeletes;
87

98
class FamilyEvent extends Event
109
{
1110
use SoftDeletes;
1211

13-
1412
/**
1513
* The attributes that should be mutated to dates.
1614
*

src/Models/FamilySlgs.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44

55
use Illuminate\Database\Eloquent\Model;
66

7-
87
/**
9-
* @property int $id
10-
* @property int $family_id
8+
* @property int $id
9+
* @property int $family_id
1110
* @property string $stat
1211
* @property string $date
1312
* @property string $plac
@@ -17,8 +16,6 @@
1716
*/
1817
class FamilySlgs extends Model
1918
{
20-
21-
2219
/**
2320
* The "type" of the auto-incrementing ID.
2421
*

src/Models/ImportJob.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use Illuminate\Database\Eloquent\Model;
66

77
/**
8-
* @property int $id
9-
* @property int $user_id
8+
* @property int $id
9+
* @property int $user_id
1010
* @property string $slug
1111
* @property string $status
1212
* @property string $created_at

0 commit comments

Comments
 (0)