Completed
Push — master ( 10b144...e9425e )
by Andrew
12:51
created
src/Traits/ManipulationTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
     /**
185 185
      * @param string|NodeList|\DOMNode|\Closure $input
186 186
      *
187
-     * @return string|self
187
+     * @return string|null
188 188
      */
189 189
     public function text($input = null) {
190 190
         if (is_null($input)) {
Please login to merge, or discard this patch.
src/Traits/TraversalTrait.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@
 block discarded – undo
353 353
      */
354 354
     public function contents() {
355 355
         $results = $this->collection()->reduce(function($carry, $node) {
356
-            if($node->isRemoved())
356
+            if ($node->isRemoved())
357 357
                 return $this->newNodeList();
358 358
             return $carry->merge(
359 359
                 $node->newNodeList($node->childNodes)
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -353,8 +353,9 @@
 block discarded – undo
353 353
      */
354 354
     public function contents() {
355 355
         $results = $this->collection()->reduce(function($carry, $node) {
356
-            if($node->isRemoved())
357
-                return $this->newNodeList();
356
+            if($node->isRemoved()) {
357
+                            return $this->newNodeList();
358
+            }
358 359
             return $carry->merge(
359 360
                 $node->newNodeList($node->childNodes)
360 361
             );
Please login to merge, or discard this patch.