Completed
Push — master ( 279d2c...857202 )
by Harry
03:11
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/Compress/AbstractCompressor.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
         }
41 41
 
42 42
         $outputFile = $node->getClone()
43
-                           ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.' . $this->getExtension())
44
-                           ->setCompression($this->getCompression());
43
+                            ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.' . $this->getExtension())
44
+                            ->setCompression($this->getCompression());
45 45
 
46 46
         $this->log(LogLevel::INFO, "Compressing file: {file} into {target} using {compression}", [
47 47
             'file'        => $node,
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
         }
77 77
 
78 78
         $outputFile = $node->getClone()
79
-                           ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename'])
80
-                           ->setCompression(CompressionType::NONE);
79
+                            ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename'])
80
+                            ->setCompression(CompressionType::NONE);
81 81
 
82 82
         $this->log(LogLevel::INFO, "DeCompressing file: {file} into {target} using {compression}", [
83 83
             'file'        => $node,
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/Modify/ConvertEncoding.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
         );
52 52
 
53 53
         $output = $file->getClone()
54
-                       ->setPath($pathInfo['dirname'] . '/' . $outputFileName)
55
-                       ->setEncoding($encoding);
54
+                        ->setPath($pathInfo['dirname'] . '/' . $outputFileName)
55
+                        ->setEncoding($encoding);
56 56
 
57 57
         $cmd = "iconv " .
58 58
             ($file->getEncoding() ? "--from-code={$file->getEncoding()} " : '') .
Please login to merge, or discard this patch.
src/Modify/Tail.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         $outputFilePath = $pathInfo['dirname'] . '/' . $outputFileName;
89 89
 
90 90
         $output = $file->getClone()
91
-                       ->setPath($outputFilePath);
91
+                        ->setPath($outputFilePath);
92 92
 
93 93
         $this->log(LogLevel::INFO, "Retrieving the last {lines} from file {file}", [
94 94
             'lines' => $this->lines,
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/FileInfoTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $process->shouldReceive('isSuccessful')->andReturn(false);
120 120
 
121 121
         $this->processFactory->shouldReceive('createProcess')
122
-                             ->andReturn($process);
122
+                                ->andReturn($process);
123 123
 
124 124
         $file = new LocalFile(static::$dir . 'failed_find_encoding_process.test');
125 125
         $file->put('random stuff and things 2!');
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         $process->shouldReceive('isSuccessful')->andReturn(false);
136 136
 
137 137
         $this->processFactory->shouldReceive('createProcess')
138
-                             ->andReturn($process);
138
+                                ->andReturn($process);
139 139
 
140 140
         $file = new LocalFile(static::$dir . 'failed_find_encoding_process.test');
141 141
         $file->put('random stuff and things 2!');
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         $process->shouldReceive('getOutput')->andReturn('text/plain; charset=utf-8 compressed-encoding=application/lzop; charset=binary; charset=binary');
154 154
 
155 155
         $this->processFactory->shouldReceive('createProcess')
156
-                             ->andReturn($process);
156
+                                ->andReturn($process);
157 157
 
158 158
         $file = new LocalFile(static::$dir . 'unknown_compression.test');
159 159
         $file->put('random stuff and things 2!');
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $process->shouldReceive('getOutput')->andReturn('some random stuff with no charset');
170 170
 
171 171
         $this->processFactory->shouldReceive('createProcess')
172
-                             ->andReturn($process);
172
+                                ->andReturn($process);
173 173
 
174 174
         $file = new LocalFile(static::$dir . 'unknown_compression.test');
175 175
         $file->put('random stuff and things 2!');
Please login to merge, or discard this patch.
tests/integration/Modify/Compress/GzipTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $process = m::mock(Process::class)->makePartial();
95 95
         $processFactory = m::mock(ProcessFactory::class);
96 96
         $processFactory->shouldReceive('createProcess')
97
-                       ->andReturn($process);
97
+                        ->andReturn($process);
98 98
         $this->gzip->setProcessFactory($processFactory);
99 99
         $process->shouldReceive('run')->once();
100 100
         $process->shouldReceive('isSuccessful')->once()->andReturn(false);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $process = m::mock(Process::class)->makePartial();
119 119
         $processFactory = m::mock(ProcessFactory::class);
120 120
         $processFactory->shouldReceive('createProcess')
121
-                       ->andReturn($process);
121
+                        ->andReturn($process);
122 122
         $this->gzip->setProcessFactory($processFactory);
123 123
         $process->shouldReceive('run')->once();
124 124
         $process->shouldReceive('isSuccessful')->once()->andReturn(false);
Please login to merge, or discard this patch.
tests/integration/Modify/Compress/ZipTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $process = m::mock(Process::class)->makePartial();
105 105
         $this->processFactory->shouldReceive('createProcess')
106
-                             ->andReturn($process);
106
+                                ->andReturn($process);
107 107
         $process->shouldReceive('run')->once();
108 108
         $process->shouldReceive('isSuccessful')->once()->andReturn(false);
109 109
         $process->shouldReceive('getCommandLine')->andReturn('');
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     {
126 126
         $process = m::mock(Process::class)->makePartial();
127 127
         $this->processFactory->shouldReceive('createProcess')
128
-                             ->andReturn($process);
128
+                                ->andReturn($process);
129 129
         $process->shouldReceive('run')->once();
130 130
         $process->shouldReceive('isSuccessful')->once()->andReturn(false);
131 131
         $process->shouldReceive('getCommandLine')->andReturn('');
Please login to merge, or discard this patch.