Fix issues found by phpcs
This commit is contained in:
parent
dd48adf243
commit
1a9efbac72
2 changed files with 20 additions and 4 deletions
|
@ -104,7 +104,10 @@ class MicropubClientController extends Controller
|
|||
'query' => ['q' => 'syndicate-to'],
|
||||
]);
|
||||
} catch (\GuzzleHttp\Exception\BadResponseException $e) {
|
||||
return redirect(route('micropub-client'))->with('error', 'Bad response when refreshing syndication targets');
|
||||
return redirect(route('micropub-client'))->with(
|
||||
'error',
|
||||
'Bad response when refreshing syndication targets'
|
||||
);
|
||||
}
|
||||
$body = (string) $response->getBody();
|
||||
$syndication = $this->parseSyndicationTargets($body);
|
||||
|
@ -178,7 +181,10 @@ class MicropubClientController extends Controller
|
|||
'headers' => $headers,
|
||||
]);
|
||||
} catch (\GuzzleHttp\Exception\BadResponseException $e) {
|
||||
return redirect(route('micropub-client'))->with('error', 'There was a bad response from the micropub endpoint.');
|
||||
return redirect(route('micropub-client'))->with(
|
||||
'error',
|
||||
'There was a bad response from the micropub endpoint.'
|
||||
);
|
||||
}
|
||||
|
||||
return $response;
|
||||
|
|
|
@ -51,7 +51,12 @@ class NotesController extends Controller
|
|||
$note->longitude = $lnglat[0];
|
||||
$note->address = $note->place->name;
|
||||
$note->placeLink = '/places/' . $note->place->slug;
|
||||
$note->geoJson = $this->getGeoJson($note->longitude, $note->latitude, $note->place->name, $note->place->icon);
|
||||
$note->geoJson = $this->getGeoJson(
|
||||
$note->longitude,
|
||||
$note->latitude,
|
||||
$note->place->name,
|
||||
$note->place->icon
|
||||
);
|
||||
}
|
||||
$photoURLs = [];
|
||||
$photos = $note->getMedia();
|
||||
|
@ -151,7 +156,12 @@ class NotesController extends Controller
|
|||
$note->longitude = $lnglat[0];
|
||||
$note->address = $note->place->name;
|
||||
$note->placeLink = '/places/' . $note->place->slug;
|
||||
$note->geoJson = $this->getGeoJson($note->longitude, $note->latitude, $note->place->name, $note->place->icon);
|
||||
$note->geoJson = $this->getGeoJson(
|
||||
$note->longitude,
|
||||
$note->latitude,
|
||||
$note->place->name,
|
||||
$note->place->icon
|
||||
);
|
||||
}
|
||||
|
||||
$photoURLs = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue