From 226da99ae4789192574fd18852cc73b64d726550 Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Mon, 19 Feb 2018 14:13:49 +0800 Subject: [PATCH] Edit getfullname format for location #17 --- src/Ramcar/Location.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ramcar/Location.php b/src/Ramcar/Location.php index eae3e3a4..b83eeb56 100644 --- a/src/Ramcar/Location.php +++ b/src/Ramcar/Location.php @@ -95,7 +95,7 @@ trait Location public function getFullName() { - return $this->name . ' ' . $this->branch; + return $this->name . ($this->branch ? ' - ' . $this->branch : ''); } public function setAddress($address)