From c9f6784f2e49232725ceb99730a4375e5190c744 Mon Sep 17 00:00:00 2001 From: Cosmo Date: Thu, 5 May 2016 12:04:07 +0800 Subject: [PATCH] Optimized getClientId() --- src/ECharts.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ECharts.php b/src/ECharts.php index 63421e1..e083433 100644 --- a/src/ECharts.php +++ b/src/ECharts.php @@ -146,9 +146,8 @@ private function quote($string) */ public function getClientId() { - $id = $this->options['id']; - if ($this->_clientId === null) { + $id = $this->options['id']; $this->_clientId = "echarts_{$id}"; }