Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
76 | 2 | public function addProperty( $property ) { |
|
77 | 2 | if ( count( $this->items ) > 0 ) { |
|
78 | 2 | foreach ( $this->items as $item ) { |
|
79 | 2 | $cur_vals = $item->getFieldValues( $property ); |
|
80 | 2 | $this->categorizeItem( $cur_vals, $item ); |
|
81 | } |
||
82 | 2 | $this->items = null; |
|
83 | } else { |
||
84 | 2 | foreach ( $this->tree as $i => $node ) { |
|
85 | 2 | $this->tree[$i]->addProperty( $property ); |
|
86 | } |
||
87 | } |
||
88 | 2 | } |
|
89 | |||
91 |