Completed
Branch master (40a2e1)
by Tilita
02:18
created
Base/AbstractAdapter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * Sets the raw branches
30 30
      * @param array $data
31
-     * @return \TreeBuilder\Base\Adapter
31
+     * @return AbstractAdapter
32 32
      */
33 33
     public function setRawData(array $data)
34 34
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * Sets the tree data
50 50
      * @param array $data
51
-     * @return \TreeBuilder\Base\Adapter
51
+     * @return AbstractAdapter
52 52
      */
53 53
     public function setTree(array $data)
54 54
     {
Please login to merge, or discard this patch.
Base/AbstractBranch.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
 
52 52
     /**
53 53
      * Set the Parent of the current branch
54
-     * @param \TreeBuilder\Base\Branch $item
55
-     * @return \TreeBuilder\Base\Branch
54
+     * @param Branch $item
55
+     * @return AbstractBranch
56 56
      */
57 57
     public function setParent(Branch $item)
58 58
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
     /**
104 104
      * Adds a new branch child
105
-     * @param \TreeBuilder\Base\Branch $item
105
+     * @param Branch $item
106 106
      */
107 107
     public function addChild(Branch $item)
108 108
     {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     /**
138 138
      * Set the branch depth
139 139
      * @param int $depth
140
-     * @return \TreeBuilder\Base\AbstractBranch
140
+     * @return AbstractBranch
141 141
      */
142 142
     public function setDepth($depth)
143 143
     {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     /**
158 158
      * Set Tree Left value
159 159
      * @param int $value
160
-     * @return \TreeBuilder\Base\AbstractBranch
160
+     * @return AbstractBranch
161 161
      */
162 162
     public function setLeft($value)
163 163
     {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     /**
179 179
      * Set Tree Right value
180 180
      * @param int $value
181
-     * @return \TreeBuilder\Base\AbstractBranch
181
+     * @return AbstractBranch
182 182
      */
183 183
     public function setRight($value)
184 184
     {
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     /**
199 199
      * Set the Leaf state
200 200
      * @param boolean $isLeaf
201
-     * @return \TreeBuilder\Base\AbstractBranch
201
+     * @return AbstractBranch
202 202
      */
203 203
     public function setIsLeaf($isLeaf) {
204 204
         $this->isLeaf = $isLeaf;
Please login to merge, or discard this patch.
Item/TreeItem.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Set the tree item id
38 38
      * @param int $value
39
-     * @return \TreeBuilder\Base\Branch
39
+     * @return TreeItem
40 40
      */
41 41
     public function setId($value)
42 42
     {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * Set the parent's id
58 58
      * @param int $value
59
-     * @return \TreeBuilder\Base\Branch
59
+     * @return TreeItem
60 60
      */
61 61
     public function setParentId($value)
62 62
     {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * Store data to be passed for the tree item
78 78
      * @param mixed $value
79
-     * @return \TreeBuilder\Base\Branch
79
+     * @return TreeItem
80 80
      */
81 81
     public function setData($value)
82 82
     {
Please login to merge, or discard this patch.
Tree.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * Delegate an adapter for the wanted output
108 108
      * @param Adapter $adapter
109
-     * @return \TreeBuilder\Tree
109
+     * @return Tree
110 110
      */
111 111
     public function registerAdapter(Adapter $adapter)
112 112
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * Set the build mode identified by local constants
119 119
      * @param int $value
120
-     * @return \TreeBuilder\Tree
120
+     * @return Tree
121 121
      */
122 122
     public function setBuildMode($value)
123 123
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@
 block discarded – undo
273 273
      */
274 274
     private function addLeftRight(array $items, $left = 1)
275 275
     {
276
-        $right = $left+1;
276
+        $right = $left + 1;
277 277
         foreach ($items as $item) {
278 278
             $item->setLeft($left);
279 279
             if ($item->hasChildren()) {
Please login to merge, or discard this patch.