Helper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A treeUpperLeafs() 0 4 1
1
<?php
2
/**
3
 * @copyright Copyright (c) 2011 - 2015 Oleksandr Torosh (http://yonastudio.com)
4
 * @author Oleksandr Torosh <[email protected]>
5
 */
6
7
namespace Tree\Mvc;
8
9
use Phalcon\Mvc\User\Component;
10
use Tree\Model\Category;
11
12
class Helper extends Component
13
{
14
15
    public function treeUpperLeafs($root)
16
    {
17
        return Category::treeUpperLeafs($root);
18
    }
19
20
}