diff --git a/app/MicropubClient.php b/app/MicropubClient.php index 7388cf6d..449f0b29 100644 --- a/app/MicropubClient.php +++ b/app/MicropubClient.php @@ -25,7 +25,8 @@ class MicropubClient extends Model * * @return void */ - public function notes() { + public function notes() + { return $this->hasMany('App\Note', 'client_id', 'client_url'); } } diff --git a/app/Note.php b/app/Note.php index b64fc765..afa66b0e 100644 --- a/app/Note.php +++ b/app/Note.php @@ -41,7 +41,8 @@ class Note extends Model * * @var array? */ - public function client() { + public function client() + { return $this->belongsTo('App\MicropubClient', 'client_id', 'client_url'); } @@ -217,8 +218,6 @@ class Note extends Model return trim($latlng[0]); } - - return; } /** @@ -239,8 +238,6 @@ class Note extends Model return trim($latlng[1]); } - - return; } /** @@ -257,8 +254,6 @@ class Note extends Model if ($this->location !== null) { return $this->reverseGeoCode((float) $this->latitude, (float) $this->longitude); } - - return; } public function getTwitterAttribute()