Apply fixes from StyleCI
This commit is contained in:
parent
48bfc3179c
commit
0da64e7295
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class NoteService
|
||||||
//uri of form http://host/places/slug, we want slug
|
//uri of form http://host/places/slug, we want slug
|
||||||
//get the URL path, then take last part, we can hack with basename
|
//get the URL path, then take last part, we can hack with basename
|
||||||
//as path looks like file path.
|
//as path looks like file path.
|
||||||
$slug = basename(parse_Url($data['location'], PHP_URL_PATH));
|
$slug = basename(parse_url($data['location'], PHP_URL_PATH));
|
||||||
$place = Place::where('slug', $slug)->first();
|
$place = Place::where('slug', $slug)->first();
|
||||||
$note->place()->associate($place);
|
$note->place()->associate($place);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue