Merge pull request #49 from jonnybarnes/analysis-8A3ReV
Apply fixes from StyleCI
This commit is contained in:
commit
4c3d2f6ab1
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