From ff625209abcdd2b0b619a611c1571e6991dac1f7 Mon Sep 17 00:00:00 2001 From: Jiang Qinghua Date: Sun, 12 Dec 2021 14:33:34 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Traits/ModelTree.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Traits/ModelTree.php b/src/Traits/ModelTree.php index e355da542..18c89291b 100755 --- a/src/Traits/ModelTree.php +++ b/src/Traits/ModelTree.php @@ -38,7 +38,7 @@ trait ModelTree */ public function getParentColumn() { - return property_exists($this,'parentColumn') ? $this->parentColumn : 'parent_id'; + return property_exists($this, 'parentColumn') ? $this->parentColumn : 'parent_id'; } /** @@ -48,7 +48,7 @@ public function getParentColumn() */ public function getTitleColumn() { - return property_exists($this,'titleColumn') ? $this->titleColumn : 'title'; + return property_exists($this, 'titleColumn') ? $this->titleColumn : 'title'; } /** @@ -58,7 +58,7 @@ public function getTitleColumn() */ public function getOrderColumn() { - return property_exists($this,'orderColumn') ? $this->orderColumn : 'order'; + return property_exists($this, 'orderColumn') ? $this->orderColumn : 'order'; } /** @@ -68,7 +68,7 @@ public function getOrderColumn() */ public function getDepthColumn() { - return property_exists($this,'depthColumn') ? $this->depthColumn : ''; + return property_exists($this, 'depthColumn') ? $this->depthColumn : ''; } /** @@ -76,7 +76,7 @@ public function getDepthColumn() */ public function getDefaultParentId() { - return property_exists($this,'defaultParentId') ? $this->defaultParentId : '0'; + return property_exists($this, 'defaultParentId') ? $this->defaultParentId : '0'; } /**