Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #47

Merged
merged 1 commit into from
Oct 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Models/Kabupaten.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function provinsi()
public function getAddressAttribute()
{
return sprintf(
"%s, %s, Indonesia",
'%s, %s, Indonesia',
$this->name,
$this->provinsi->name
);
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Kecamatan.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function kabupaten()
public function getAddressAttribute()
{
return sprintf(
"%s, %s, %s, Indonesia",
'%s, %s, %s, Indonesia',
$this->name,
$this->kabupaten->name,
$this->kabupaten->provinsi->name
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Kelurahan.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function kecamatan()
public function getAddressAttribute()
{
return sprintf(
"%s, %s, %s, %s, Indonesia",
'%s, %s, %s, %s, Indonesia',
$this->name,
$this->kecamatan->name,
$this->kecamatan->kabupaten->name,
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Provinsi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Provinsi extends Province
public function getAddressAttribute()
{
return sprintf(
"%s, Indonesia",
'%s, Indonesia',
$this->name
);
}
Expand Down
1 change: 1 addition & 0 deletions src/Seeds/ProvincesSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public function run()
$data = array_map(function ($arr) {
$arr['meta'] = json_encode(['lat' => $arr['lat'], 'long' => $arr['long']]);
unset($arr['lat'], $arr['long']);

return $arr + ['created_at' => now(), 'updated_at' => now()];
}, $data);

Expand Down