Merge branch 'develop' of github.com:jonnybarnes/jonnybarnes.uk into develop

This commit is contained in:
Jonny Barnes 2017-06-22 17:11:08 +01:00
commit 097a6fe1fc
2 changed files with 4 additions and 8 deletions

View file

@ -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');
}
}

View file

@ -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()