Completed
Pull Request — master (#1)
by Harry
03:50
created
tests/integration/Modify/HeadTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     {
209 209
         $file = m::mock(FileNodeInterface::class);
210 210
         $file->shouldReceive('__toString')
211
-             ->andReturn('some/file/here');
211
+                ->andReturn('some/file/here');
212 212
 
213 213
         $this->expectException(InvalidArgumentException::class);
214 214
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         $process = m::mock(Process::class)->makePartial();
221 221
         $process->shouldReceive('isSuccessful')->andReturn(false);
222 222
         $this->processFactory->shouldReceive('createProcess')
223
-                             ->andReturn($process);
223
+                                ->andReturn($process);
224 224
 
225 225
         $file = new LocalFile(static::$dir . 'failed_tail.test');
226 226
         $file->put('nothing interesting here');
Please login to merge, or discard this patch.
tests/integration/Modify/ReplaceTextTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     {
209 209
         $file = m::mock(FileNodeInterface::class);
210 210
         $file->shouldReceive('__toString')
211
-             ->andReturn('some/file/here');
211
+                ->andReturn('some/file/here');
212 212
 
213 213
         $this->expectException(InvalidArgumentException::class);
214 214
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         $process = m::mock(Process::class)->makePartial();
221 221
         $process->shouldReceive('isSuccessful')->andReturn(false);
222 222
         $this->processFactory->shouldReceive('createProcess')
223
-                             ->andReturn($process);
223
+                                ->andReturn($process);
224 224
 
225 225
         $file = new LocalFile(static::$dir . 'failed_tail.test');
226 226
         $file->put('nothing interesting here');
Please login to merge, or discard this patch.
src/Modify/Compress/CompressorTrait.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
         }
26 26
 
27 27
         $outputFile = $node->getClone()
28
-                           ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.' . $this->getExtension())
29
-                           ->setCompression($this->getName());
28
+                            ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.' . $this->getExtension())
29
+                            ->setCompression($this->getName());
30 30
 
31 31
         $this->log(LogLevel::INFO, "Compressing file: {file} into {target} using {compression}", [
32 32
             'file'        => $node,
Please login to merge, or discard this patch.
src/Modify/Compress/DeCompressorTrait.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
         }
26 26
 
27 27
         $outputFile = $node->getClone()
28
-                           ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename'])
29
-                           ->setCompression(CompressionFactory::TYPE_NONE);
28
+                            ->setPath($pathInfo['dirname'] . '/' . $pathInfo['filename'])
29
+                            ->setCompression(CompressionFactory::TYPE_NONE);
30 30
 
31 31
         $this->log(LogLevel::INFO, "DeCompressing file: {file} into {target} using {compression}", [
32 32
             'file'        => $node,
Please login to merge, or discard this patch.
tests/integration/Modify/Contract/MergeFilesTest.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $collection = m::mock(FileNodeCollectionInterface::class);
48 48
         $collection->shouldReceive('getIterator')
49
-                   ->andReturn([]);
49
+                    ->andReturn([]);
50 50
 
51 51
         $node = m::mock(LocalFile::class);
52 52
         static::assertTrue($this->merge->canContract($collection, $node));
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
         $collection = new FileNodeCollection();
58 58
         $file1 = m::mock(LocalFile::class);
59 59
         $file1->shouldReceive('exists')
60
-              ->andReturn(true);
60
+                ->andReturn(true);
61 61
         $file1->shouldReceive('getCompression')
62
-              ->andReturn(CompressionFactory::TYPE_NONE);
62
+                ->andReturn(CompressionFactory::TYPE_NONE);
63 63
         $collection->add($file1);
64 64
 
65 65
         $out = m::mock(LocalFile::class);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         $file2 = m::mock(FileNodeInterface::class);
70 70
         $file2->shouldReceive('getCompression')
71
-              ->andReturn(CompressionFactory::TYPE_NONE);
71
+                ->andReturn(CompressionFactory::TYPE_NONE);
72 72
         $collection->add($file2);
73 73
 
74 74
         static::assertFalse($this->merge->canContract($collection, $out));
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
         $collection = new FileNodeCollection();
80 80
         $file1 = m::mock(LocalFile::class);
81 81
         $file1->shouldReceive('exists')
82
-              ->andReturn(true);
82
+                ->andReturn(true);
83 83
         $file1->shouldReceive('getCompression')
84
-              ->andReturn(CompressionFactory::TYPE_NONE);
84
+                ->andReturn(CompressionFactory::TYPE_NONE);
85 85
         $collection->add($file1);
86 86
 
87 87
         $out = m::mock(LocalFile::class);
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
 
91 91
         $file2 = m::mock(LocalFile::class);
92 92
         $file2->shouldReceive('exists')
93
-              ->andReturn(false);
93
+                ->andReturn(false);
94 94
         $file2->shouldReceive('getCompression')
95
-              ->andReturn(CompressionFactory::TYPE_NONE);
95
+                ->andReturn(CompressionFactory::TYPE_NONE);
96 96
         $collection->add($file2);
97 97
 
98 98
         static::assertFalse($this->merge->canContract($collection, $out));
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
         $collection = new FileNodeCollection();
104 104
         $file1 = m::mock(LocalFile::class);
105 105
         $file1->shouldReceive('exists')
106
-              ->andReturn(true);
106
+                ->andReturn(true);
107 107
         $file1->shouldReceive('getCompression')
108
-              ->andReturn(CompressionFactory::TYPE_NONE);
108
+                ->andReturn(CompressionFactory::TYPE_NONE);
109 109
         $collection->add($file1);
110 110
 
111 111
         $out = m::mock(LocalFile::class);
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
 
115 115
         $file2 = m::mock(LocalFile::class);
116 116
         $file2->shouldReceive('exists')
117
-              ->andReturn(true);
117
+                ->andReturn(true);
118 118
         $file2->shouldReceive('getCompression')
119
-              ->andReturn(Gzip::NAME);
119
+                ->andReturn(Gzip::NAME);
120 120
         $collection->add($file2);
121 121
 
122 122
         static::assertFalse($this->merge->canContract($collection, $out));
@@ -127,9 +127,9 @@  discard block
 block discarded – undo
127 127
         $collection = new FileNodeCollection();
128 128
         $file = m::mock(LocalFile::class);
129 129
         $file->shouldReceive('exists')
130
-             ->andReturn(false);
130
+                ->andReturn(false);
131 131
         $file->shouldReceive('getCompression')
132
-             ->andReturn(CompressionFactory::TYPE_NONE);
132
+                ->andReturn(CompressionFactory::TYPE_NONE);
133 133
         $collection->add($file);
134 134
 
135 135
         $target = m::mock(LocalFile::class);
@@ -144,9 +144,9 @@  discard block
 block discarded – undo
144 144
         $collection = new FileNodeCollection();
145 145
         $file = m::mock(LocalFile::class);
146 146
         $file->shouldReceive('exists')
147
-             ->andReturn(true);
147
+                ->andReturn(true);
148 148
         $file->shouldReceive('getCompression')
149
-             ->andReturn(CompressionFactory::TYPE_NONE);
149
+                ->andReturn(CompressionFactory::TYPE_NONE);
150 150
         $collection->add($file);
151 151
 
152 152
         $target = m::mock(FileNodeInterface::class);
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     {
244 244
         $process = m::mock('Symfony\Component\Process\Process')->makePartial();
245 245
         $this->processFactory->shouldReceive('createProcess')
246
-                             ->andReturn($process);
246
+                                ->andReturn($process);
247 247
 
248 248
         $process->shouldReceive('isSuccessful')->andReturn(false);
249 249
 
Please login to merge, or discard this patch.
tests/unit/Format/FormatAwareTraitTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $this->formatAware->setFormat($format);
33 33
 
34 34
         $format->shouldReceive('getType')
35
-               ->andReturn('test_format');
35
+                ->andReturn('test_format');
36 36
 
37 37
         static::assertEquals('test_format', $this->formatAware->getFormatType());
38 38
     }
Please login to merge, or discard this patch.
tests/unit/Node/FileNodeTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
         $file = new FileNode($fileSystem, 'not/exists');
17 17
 
18 18
         $fileSystem->shouldReceive('has')
19
-                   ->with('not/exists')
20
-                   ->andReturn(false);
19
+                    ->with('not/exists')
20
+                    ->andReturn(false);
21 21
 
22 22
         static::assertEquals([], $file->getContents());
23 23
     }
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
         $newPath = new FileNode($fileSystem, 'some/target');
31 31
 
32 32
         $fileSystem->shouldReceive('copy')
33
-                   ->with($localFile->getPath(), $newPath->getPath())
34
-                   ->andReturn(false);
33
+                    ->with($localFile->getPath(), $newPath->getPath())
34
+                    ->andReturn(false);
35 35
 
36 36
         $this->expectException(CopyFailedException::class);
37 37
 
Please login to merge, or discard this patch.
src/Modify/Encoding/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.
tests/integration/Modify/Compress/FindCompressionTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
         $this->processFactory = m::mock(ProcessFactory::class)->makePartial();
39 39
         $this->compressionFactory = m::mock(CompressionFactory::class);
40 40
         $this->compressionFactory->shouldReceive('isCompression')
41
-                                 ->with('gzip')
42
-                                 ->andReturn(true);
41
+                                    ->with('gzip')
42
+                                    ->andReturn(true);
43 43
         $this->compressionFactory->shouldReceive('isCompression')
44
-                                 ->with('zip')
45
-                                 ->andReturn(true);
44
+                                    ->with('zip')
45
+                                    ->andReturn(true);
46 46
         $this->compressionFactory->shouldReceive('isCompression')
47
-                                 ->andReturn(false);
47
+                                    ->andReturn(false);
48 48
         $this->findCompression = new FindCompression($this->compressionFactory);
49 49
         $this->findCompression->setProcessFactory($this->processFactory);
50 50
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $process->shouldReceive('getOutput')->andReturn('text/plain; charset=utf-8 compressed-encoding=application/lzop; charset=binary; charset=binary');
97 97
 
98 98
         $this->processFactory->shouldReceive('createProcess')
99
-                             ->andReturn($process);
99
+                                ->andReturn($process);
100 100
 
101 101
         $file = new LocalFile(static::$dir . 'unknown_compression.test');
102 102
         $file->put('random stuff and things 2!');
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $process->shouldReceive('mustRun')->andThrow(new ProcessFailedException($process));
117 117
 
118 118
         $this->processFactory->shouldReceive('createProcess')
119
-                             ->andReturn($process);
119
+                                ->andReturn($process);
120 120
 
121 121
         $file = new LocalFile(static::$dir . 'failed_find_encoding_process.test');
122 122
         $file->put('random stuff and things 2!');
Please login to merge, or discard this patch.