Skip to content

Commit

Permalink
Merge pull request #47 from laravolt/analysis-8P4Z7P
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
uyab authored Oct 10, 2019
2 parents 72f2699 + aadf795 commit 87804db
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
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

0 comments on commit 87804db

Please sign in to comment.