Completed
Push — master ( 8bc2ca...1a19ee )
by Harry
03:41
created
src/Finder/MetadataFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function findFiles(FileNodeCollectionInterface $files)
31 31
     {
32
-        return $files->filter(function (FileNode $file) {
32
+        return $files->filter(function(FileNode $file) {
33 33
             $metadata = $file->getMetadata();
34 34
             if ($metadata) {
35 35
                 return ($this->filter->matches($file->getMetadata()));
Please login to merge, or discard this patch.
src/Modify/Contract/MergeFiles.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         $this->log(LogLevel::INFO, "Merging files in collection $files into: {$target}");
69 69
 
70
-        $filePaths = $files->map(function (LocalFile $item) {
70
+        $filePaths = $files->map(function(LocalFile $item) {
71 71
             return $item->getPath();
72 72
         });
73 73
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         if (!$keepOld) {
107 107
             $this->log(LogLevel::DEBUG, "Deleting old files in collection $files");
108
-            $files->map(function (LocalFile $item) {
108
+            $files->map(function(LocalFile $item) {
109 109
                 if ($item->exists()) {
110 110
                     $item->delete();
111 111
                 }
Please login to merge, or discard this patch.
src/Node/FileNodeCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
             return null;
24 24
         }
25 25
 
26
-        $commonPath = $this->reduce(function ($commonPath, FileNodeInterface $file) {
26
+        $commonPath = $this->reduce(function($commonPath, FileNodeInterface $file) {
27 27
             if (is_null($commonPath)) {
28 28
                 return $file->getPath();
29 29
             }
Please login to merge, or discard this patch.
tests/integration/Modify/Contract/MergeFilesTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
             $file->getContents()
194 194
         );
195 195
 
196
-        $exists = $collection->filter(function (FileNodeInterface $item) {
196
+        $exists = $collection->filter(function(FileNodeInterface $item) {
197 197
             return $item->exists();
198 198
         });
199 199
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
             $file->getContents()
244 244
         );
245 245
 
246
-        $exists = $collection->filter(function (FileNodeInterface $item) {
246
+        $exists = $collection->filter(function(FileNodeInterface $item) {
247 247
             return $item->exists();
248 248
         });
249 249
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
             $file->getContents()
297 297
         );
298 298
 
299
-        $exists = $collection->filter(function (FileNodeInterface $item) {
299
+        $exists = $collection->filter(function(FileNodeInterface $item) {
300 300
             return $item->exists();
301 301
         });
302 302
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
 
330 330
         static::assertFalse(file_exists($collection->getAll()[0]->getDirectory()));
331 331
 
332
-        $exists = $collection->filter(function (FileNodeInterface $item) {
332
+        $exists = $collection->filter(function(FileNodeInterface $item) {
333 333
             return $item->exists();
334 334
         });
335 335
 
Please login to merge, or discard this patch.