@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | ]); |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - $update[ 'id' ] = $child->id; |
|
| 88 | + $update['id'] = $child->id; |
|
| 89 | 89 | |
| 90 | 90 | if ($this->qb |
| 91 | 91 | ->table($this->table) |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | ->update($update = [ |
| 101 | 101 | 'record_right' => $right, |
| 102 | 102 | ]); |
| 103 | - $update[ 'id' ] = $child->id; |
|
| 103 | + $update['id'] = $child->id; |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | $i++; |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | */ |
| 216 | 216 | public function getNumOfParents($id) |
| 217 | 217 | { |
| 218 | - if($parents = $this->getParents($id)) { |
|
| 218 | + if ($parents = $this->getParents($id)) { |
|
| 219 | 219 | return $parents->count(); |
| 220 | 220 | } |
| 221 | 221 | |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | */ |
| 282 | 282 | public function getNumOfChilds($idParent, $direct = true) |
| 283 | 283 | { |
| 284 | - if($childs = $this->getChilds($idParent)) { |
|
| 284 | + if ($childs = $this->getChilds($idParent)) { |
|
| 285 | 285 | return $childs->count(); |
| 286 | 286 | } |
| 287 | 287 | |