Skip to content

Commit 1b337d1

Browse files
Merge pull request #47 from familytree365/analysis-Yjbm0A
Apply fixes from StyleCI
2 parents dab114d + 4dc7429 commit 1b337d1

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

src/Utils/GedcomParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
use FamilyTree365\LaravelGedcom\Utils\Importer\Sour;
1313
use FamilyTree365\LaravelGedcom\Utils\Importer\Subm;
1414
use FamilyTree365\LaravelGedcom\Utils\Importer\Subn;
15+
use Gedcom\Parser;
1516
use Illuminate\Console\OutputStyle;
1617
use Illuminate\Support\Facades\Log;
17-
use Gedcom\Parser;
1818
use Symfony\Component\Console\Input\StringInput;
1919
use Symfony\Component\Console\Output\StreamOutput;
2020

src/Utils/GedcomWriter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use FamilyTree365\LaravelGedcom\Models\Source;
1212
use FamilyTree365\LaravelGedcom\Models\Subm;
1313
use FamilyTree365\LaravelGedcom\Models\Subn;
14-
use Illuminate\Console\OutputStyle;
1514
use Gedcom\Parser;
15+
use Illuminate\Console\OutputStyle;
1616
use Symfony\Component\Console\Input\StringInput;
1717
use Symfony\Component\Console\Output\StreamOutput;
1818

src/migrations/2021_05_28_121021_add_index_key_people_table.php

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ class AddIndexKeyPeopleTable extends Migration
1313
*/
1414
public function up()
1515
{
16-
17-
if (Schema::hasTable('people')) {
18-
Schema::table('people', function (Blueprint $table) {
19-
if (Schema::hasColumn('people', 'uid')) {
20-
$table->index(['id', 'uid']);
21-
}
22-
});
23-
}
16+
if (Schema::hasTable('people')) {
17+
Schema::table('people', function (Blueprint $table) {
18+
if (Schema::hasColumn('people', 'uid')) {
19+
$table->index(['id', 'uid']);
20+
}
21+
});
22+
}
2423
}
2524

2625
/**
@@ -30,13 +29,12 @@ public function up()
3029
*/
3130
public function down()
3231
{
33-
34-
if (Schema::hasTable('people')) {
35-
Schema::table('people', function (Blueprint $table) {
36-
if (Schema::hasColumn('people', 'uid')) {
37-
$table->dropIndex(['id', 'uid']);
38-
}
39-
});
40-
}
32+
if (Schema::hasTable('people')) {
33+
Schema::table('people', function (Blueprint $table) {
34+
if (Schema::hasColumn('people', 'uid')) {
35+
$table->dropIndex(['id', 'uid']);
36+
}
37+
});
38+
}
4139
}
4240
}

0 commit comments

Comments
 (0)