From 0c97680c2ead18100afae9f5e0d83c64124ad80b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 22 Jan 2020 21:37:01 +0300 Subject: [PATCH] contact trait styling --- app/Traits/Contacts.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Traits/Contacts.php b/app/Traits/Contacts.php index 35b40959e..b4c836ed6 100644 --- a/app/Traits/Contacts.php +++ b/app/Traits/Contacts.php @@ -18,17 +18,17 @@ trait Contacts return ($return == 'array') ? explode(',', $types) : $types; } - public function setCustomerType($new_type) + public function addCustomerType($new_type) { - $this->setType($new_type, 'customer'); + $this->addType($new_type, 'customer'); } - public function setVendorType($new_type) + public function addVendorType($new_type) { - $this->setType($new_type, 'vendor'); + $this->addType($new_type, 'vendor'); } - public function setType($new_type, $index) + public function addType($new_type, $index) { $types = explode(',', setting('contact.type.' . $index, $index));