Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph authored and StyleCIBot committed Dec 12, 2021
1 parent 6760e8d commit ff62520
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Traits/ModelTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

/**
Expand All @@ -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';
}

/**
Expand All @@ -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';
}

/**
Expand All @@ -68,15 +68,15 @@ public function getOrderColumn()
*/
public function getDepthColumn()
{
return property_exists($this,'depthColumn') ? $this->depthColumn : '';
return property_exists($this, 'depthColumn') ? $this->depthColumn : '';
}

/**
* @return string
*/
public function getDefaultParentId()
{
return property_exists($this,'defaultParentId') ? $this->defaultParentId : '0';
return property_exists($this, 'defaultParentId') ? $this->defaultParentId : '0';
}

/**
Expand Down

0 comments on commit ff62520

Please sign in to comment.