Browse Source

Collection: remove more double parenthesis for PHP 5.6 compatibility

Simone Alers 7 years ago
parent
commit
fd1bafcbc4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Collection/CollectionTrait.php

+ 2 - 2
src/Collection/CollectionTrait.php

@@ -545,7 +545,7 @@ trait CollectionTrait
      */
     public function prepend($items)
     {
-        return ($this->newCollection($items))->append($this);
+        return $this->newCollection($items)->append($this);
     }
 
     /**
@@ -645,7 +645,7 @@ trait CollectionTrait
             $parents[$key][$nestingKey] = $children;
         };
 
-        return ($this->newCollection(new MapReduce($this->unwrap(), $mapper, $reducer)))
+        return $this->newCollection(new MapReduce($this->unwrap(), $mapper, $reducer))
             ->map(function ($value) use (&$isObject) {
                 /** @var \ArrayIterator $value */
                 return $isObject ? $value : $value->getArrayCopy();