Skip to content

Commit b5505d4

Browse files
Merge remote-tracking branch 'origin/master' into master
2 parents 221f695 + c154e3a commit b5505d4

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

src/Models/Family.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace GenealogiaWebsite\LaravelGedcom\Models;
44

55
use Illuminate\Database\Eloquent\Model;
6-
use GenealogiaWebsite\LaravelGedcom\Models\Person;
76

87
class Family extends Model
98
{

src/Models/Person.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace GenealogiaWebsite\LaravelGedcom\Models;
44

5-
use GenealogiaWebsite\LaravelGedcom\Models\Family;
6-
use GenealogiaWebsite\LaravelGedcom\Models\PersonEvent;
7-
use GenealogiaWebsite\LaravelGedcom\Models\Place;
85
use Illuminate\Database\Eloquent\Model;
96

107
class Person extends Model

src/Utils/GedcomParser.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ class GedcomParser
3131

3232
public function parse($conn, string $filename, string $slug, bool $progressBar = false)
3333
{
34+
//start calculating the time
35+
$time_start = microtime(true);
36+
3437
$this->conn = $conn;
3538
error_log('PARSE LOG : +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++'.$conn);
3639
$parser = new \PhpGedcom\Parser();
@@ -214,6 +217,11 @@ public function parse($conn, string $filename, string $slug, bool $progressBar =
214217
}
215218

216219
if ($progressBar === true) {
220+
//Record end time and calculate total execution time
221+
$time_end = microtime(true);
222+
$execution_time = ($time_end - $time_start);
223+
error_log("\nTotal Execution Time: ".round($execution_time).' Seconds');
224+
217225
$bar->finish();
218226
}
219227
}

src/Utils/Importer/Caln.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ public static function read($conn, $caln, $group = null, $gid = null)
2727
'gid' => $gid,
2828
'medi' => $medi,
2929
];
30-
$_caln = MCaln::on($conn)->updateOrCreate($key, $data);
30+
$_caln = MCaln::on($conn)->updateOrCreate($key, $data);
3131
}
3232
}

src/migrations/2020_01_01_120000_create_people_table.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ public function up()
3232

3333
$table->timestamps();
3434
});
35-
3635
}
3736
}
3837

3938
public function down()
4039
{
41-
4240
Schema::dropIfExists('people');
4341
}
4442
}

0 commit comments

Comments
 (0)