Merge pull request #49 from jonnybarnes/analysis-8A3ReV

Apply fixes from StyleCI
This commit is contained in:
Jonny Barnes 2017-03-24 11:36:20 +00:00 committed by GitHub
commit 4c3d2f6ab1

View file

@ -30,7 +30,7 @@ class NoteService
//uri of form http://host/places/slug, we want slug
//get the URL path, then take last part, we can hack with basename
//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();
$note->place()->associate($place);
}