Test Failed
Pull Request — master (#11)
by
unknown
02:35
created
src/Charcoal/Object/HierarchicalTrait.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * The object's hierarchy can be rebuilt with {@see self::hierarchy()}.
62 62
      *
63
-     * @return HierarchicalInterface Chainable
63
+     * @return HierarchicalTrait Chainable
64 64
      */
65 65
     public function resetHierarchy()
66 66
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      * Set this object's immediate parent.
74 74
      *
75 75
      * @param mixed $master The object's parent (or master).
76
-     * @return HierarchicalInterface Chainable
76
+     * @return HierarchicalTrait Chainable
77 77
      */
78 78
     public function setMaster($master)
79 79
     {
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 
293 293
     /**
294 294
      * @param array $children The children to set.
295
-     * @return HierarchicalInterface Chainable
295
+     * @return HierarchicalTrait Chainable
296 296
      */
297 297
     public function setChildren(array $children)
298 298
     {
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 
307 307
     /**
308 308
      * @param mixed $child The child object (or ident) to add.
309
-     * @return HierarchicalInterface Chainable
309
+     * @return HierarchicalTrait Chainable
310 310
      * @throws UnexpectedValueException The current object cannot be its own child.
311 311
      */
312 312
     public function addChild($child)
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
      * Add an object to the cache store.
512 512
      *
513 513
      * @param ModelInterface $obj The object to store.
514
-     * @return HierarchicalInterface Chainable
514
+     * @return HierarchicalTrait Chainable
515 515
      */
516 516
     private function addObjectToCache(ModelInterface $obj)
517 517
     {
Please login to merge, or discard this patch.
src/Charcoal/Object/HierarchicalCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             // Repair bad hierarchy.
74 74
             if ($object->hasMaster() && $object->getMaster() === $object->id()) {
75 75
                 $object->setMaster(0);
76
-                $object->update([ 'master' ]);
76
+                $object->update(['master']);
77 77
             }
78 78
 
79 79
             if ($object->hasMaster()) {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                 }
113 113
             }
114 114
         } else {
115
-            $start = (( $pageNum - 1 ) * $perPage);
115
+            $start = (($pageNum - 1) * $perPage);
116 116
             $end   = ($start + $perPage);
117 117
 
118 118
             foreach ($this->objects as $object) {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
                 }
226 226
             }
227 227
         } else {
228
-            $start = (( $pageNum - 1 ) * $perPage);
228
+            $start = (($pageNum - 1) * $perPage);
229 229
             $end   = ($start + $perPage);
230 230
 
231 231
             foreach ($childObjects[$parentObj->id()] as $object) {
Please login to merge, or discard this patch.