From 923aac957cc28723c622570d46d2a915c75df06f Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 1 Aug 2016 09:15:36 +0200 Subject: Removed duplicate code --- classes/Contact.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/Contact.php') diff --git a/classes/Contact.php b/classes/Contact.php index 4a82ade..7689ef7 100644 --- a/classes/Contact.php +++ b/classes/Contact.php @@ -26,7 +26,7 @@ */ class Contact extends Model { /** {@inheritDoc} */ - public + public static $table = 'contact', $fillable_columns = ['clientId', 'name', 'email', 'address', 'address_2', 'postal_code', 'city', 'country', 'language']; @@ -35,7 +35,7 @@ class Contact extends Model { * @param $key {@inheritDoc} * @param $value {@inheritDoc} */ - protected function mutator($key, $value) { + protected static function mutator($key, $value) { switch ($key) { case 'language': if (!in_array($value, Correspondence::LANGUAGES)) { -- cgit v1.2.3