Completed
Push — master ( 5033a3...4be7fb )
by Bartko
03:45
created
src/StefanoTree/NestedSet.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -413,12 +413,18 @@
 block discarded – undo
413 413
                     ->getRoots();
414 414
     }
415 415
 
416
+    /**
417
+     * @param integer $rootNodeId
418
+     */
416 419
     public function isValid($rootNodeId)
417 420
     {
418 421
         return $this->_getValidator()
419 422
                     ->isValid($rootNodeId);
420 423
     }
421 424
 
425
+    /**
426
+     * @param integer $rootNodeId
427
+     */
422 428
     public function rebuild($rootNodeId)
423 429
     {
424 430
         $this->_getValidator()
Please login to merge, or discard this patch.
tests/StefanoTreeTest/Unit/NestedSet/Adapter/Zend2Test.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-     * @return DbAdapter
64
+     * @return Mockery\MockInterface
65 65
      */
66 66
     private function getDbAdapterMock()
67 67
     {
Please login to merge, or discard this patch.
tests/StefanoTreeTest/Unit/NestedSet/Adapter/Zend1Test.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-     * @return \Zend_Db_Adapter_Pdo_Sqlite
61
+     * @return \Mockery\MockInterface
62 62
      */
63 63
     protected function getDbAdapterMock()
64 64
     {
Please login to merge, or discard this patch.
src/StefanoTree/NestedSet/Adapter/Zend1.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -527,6 +527,11 @@
 block discarded – undo
527 527
         return (0 < count($resultArray)) ? $resultArray : array();
528 528
     }
529 529
 
530
+    /**
531
+     * @param string $column
532
+     * @param integer $first
533
+     * @param integer $second
534
+     */
530 535
     protected function getWhereBetween($column, $first, $second)
531 536
     {
532 537
         $dbAdapter = $this->getDbAdapter();
Please login to merge, or discard this patch.
src/StefanoTree/NestedSet/Validator/Validator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      * @param bool $onlyValidate
80 80
      * @param int $left
81 81
      * @param int $level
82
-     * @return int|mixed
82
+     * @return integer
83 83
      * @throws TreeIsBrokenException if tree is broken and $onlyValidate is true
84 84
      */
85 85
     private function _rebuild(NodeInfo $parentNodeInfo, $onlyValidate = false, $left = 1, $level = 0)
Please login to merge, or discard this patch.