Completed
Pull Request — master (#15)
by Gabriel
03:36
created
src/Shared/Collection/AbstractCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     public function remove($key)
128 128
     {
129 129
         $key = (string) $key;
130
-        if ( ! isset($this->elements[$key]) && ! array_key_exists($key, $this->elements)) {
130
+        if (!isset($this->elements[$key]) && !array_key_exists($key, $this->elements)) {
131 131
             return null;
132 132
         }
133 133
 
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     final public function forAll(Closure $p)
271 271
     {
272 272
         foreach ($this->elements as $key => $element) {
273
-            if ( ! $p($key, $element)) {
273
+            if (!$p($key, $element)) {
274 274
                 return false;
275 275
             }
276 276
         }
Please login to merge, or discard this patch.
src/Version/Repository/VersionRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,12 +82,12 @@
 block discarded – undo
82 82
             return true; // nothing to do - exit early
83 83
         }
84 84
 
85
-        $mapToIds = function(VersionInterface $v) {
85
+        $mapToIds = function (VersionInterface $v) {
86 86
             return $v->getId();
87 87
         };
88 88
         /** @var CollectionInterface $migrated */
89 89
         /** @var CollectionInterface $notMigrated */
90
-        list($migrated, $notMigrated) = $versions->partition(function($i, VersionInterface $v) {
90
+        list($migrated, $notMigrated) = $versions->partition(function ($i, VersionInterface $v) {
91 91
             return $v->isMigrated();
92 92
         });
93 93
         $migratedIds = $migrated->map($mapToIds);
Please login to merge, or discard this patch.